Paul Rogers created IMPALA-7968:
-----------------------------------

             Summary: Convert Analyzer AST to JSON for test verification
                 Key: IMPALA-7968
                 URL: https://issues.apache.org/jira/browse/IMPALA-7968
             Project: IMPALA
          Issue Type: Improvement
          Components: Frontend
    Affects Versions: Impala 3.1.0
            Reporter: Paul Rogers
            Assignee: Paul Rogers


The FE code provides the {{PlannerTest}} which parses a SQL statement, analyzes 
it, plans the query, and writes selected portions of the plan to a file to be 
compared with a "golden" copy. Very helpful.

At present, the Analyzer itself has no such test framework. This ticket asks to 
provide one. Key pieces:

* JSON serializer to write the AST to JSON in a compact format for testing.
* Potentially a YAML form of the above if the JSON grows too bulky
* Serialization code in the AST objects to produce the JSON
* Additions to the PlannerTest framework to add an AST section and an AST test 
framework
* The actual AST tests



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org

Reply via email to