XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • 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:

       

       

      Attachments

        1. HIVE-23171.1.patch
          6 kB
          David Mollitor
        2. HIVE-23171.1.patch
          6 kB
          David Mollitor
        3. HIVE-23171.1.patch
          6 kB
          David Mollitor
        4. HIVE-23171.1.patch
          6 kB
          David Mollitor
        5. select_1.png
          13 kB
          David Mollitor

        Activity

          People

            belugabehr David Mollitor
            belugabehr David Mollitor
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: