explain should give meaningful column names
-------------------------------------------

                 Key: HIVE-153
                 URL: https://issues.apache.org/jira/browse/HIVE-153
             Project: Hadoop Hive
          Issue Type: Improvement
          Components: Query Processor
            Reporter: Zheng Shao


Currently explain uses numbers like "1" to represent the columns.
It will be much better to print out the real name of the columns.

hive> explain FROM table a SELECT a.country as b, count(1) as c WHERE 
a.ds='2008-12-09' GROUP BY a.country;

...
            Select Operator
              expressions:
                    expr: country
                    type: string
                    expr: ds
                    type: string
              Filter Operator
                predicate:
                    expr: (1 = '2008-12-09')
                    type: boolean
                Reduce Output Operator
                  key expressions:
                        expr: 0
                        type: string
                  sort order: +
                  Map-reduce partition columns:
                        expr: rand()
                        type: double
                  tag: -1
                  value expressions:
                        expr: 1
                        type: int



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to