queryparser icon indicating copy to clipboard operation
queryparser copied to clipboard

Implement Hive clusterby/distributeby/sortby in AST

Open h4v0kh3l1 opened this issue 6 years ago • 0 comments

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.

h4v0kh3l1 avatar Dec 04 '18 19:12 h4v0kh3l1