uber / queryparser

Parsing and analysis of Vertica, Hive, and Presto SQL.
MIT License
1.08k stars 147 forks source link

add toJSON instances for Resolved statements #5

Closed mhalverson closed 7 years ago

mhalverson commented 7 years ago

This will permit the implementation (externally) of a service endpoint "parseAndResolve" which returns a query's resolved AST.

There were a few toJSON instances that had to be implemented. In the future, we will catch missing toJSON-instances at compile time, thanks to the added explicit type examples on Vertica/Hive/Presto statements.