Details
-
Sub-task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
For some of the work I would like to do on HIVE-23149, it would be nice to visualize the output of the statement parser.
I have created a tool that spits out the parser tree in DOT file format. This allows it to be visualized using a plethora of tools.
To use it, compile the hive-parser test JAR and run it. The application takes a single command line argument of a String. The String is the SQL statement to parse:
HqlParser "SELECT 1"
I have attached an example of the output that I generated for a SELECT 1 statement: