[ https://issues.apache.org/jira/browse/HIVE-23171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Mollitor updated HIVE-23171: ---------------------------------- Attachment: HIVE-23171.1.patch > Create Tool To Visualize Hive Parser Tree > ----------------------------------------- > > Key: HIVE-23171 > URL: https://issues.apache.org/jira/browse/HIVE-23171 > Project: Hive > Issue Type: Sub-task > Reporter: David Mollitor > Assignee: David Mollitor > Priority: Minor > Attachments: HIVE-23171.1.patch, HIVE-23171.1.patch, > HIVE-23171.1.patch, HIVE-23171.1.patch, select_1.png > > > 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: > {code:none} > HqlParser "SELECT 1" > {code} > I have attached an example of the output that I generated for a {{SELECT 1}} > statement: > > > !select_1.png! -- This message was sent by Atlassian Jira (v8.3.4#803005)