Spark学习:实现Compact table command

52 阅读1分钟

实现compact table command

要求:添加添加 compact table 命令,用于合并小文件

一、修改SqlBase.g4

#statement下添加
| COMPACT TABLE target=tableIdentifier partitionSpec?
(INTO fileNum=INTEGER_VALUE FILES)?