queryparser
queryparser copied to clipboard
Implement Hive clusterby/distributeby/sortby in AST
Hive offers different ways to order the output, which are captured in the parser (https://github.com/uber/queryparser/blob/master/dialects/hive/src/Database/Sql/Hive/Parser.hs#L1422), but are dropped without representation in the AST.
Add a definition for Hive ASTs in https://github.com/uber/queryparser/blob/master/dialects/hive/src/Database/Sql/Hive/Type.hs, extending the HiveStandardSqlStatement constructor with these sorting definitions.