Jiecheng Zhao created IMPALA-6398:
-------------------------------------

             Summary: Can we add comment in select list
                 Key: IMPALA-6398
                 URL: https://issues.apache.org/jira/browse/IMPALA-6398
             Project: IMPALA
          Issue Type: Wish
          Components: Frontend
            Reporter: Jiecheng Zhao


When we working, we always write code like
'''
CREATE TABLE xxxx AS
SELECT
  exp_of_a item_a - comment for a 
, exp_of_b item_b - comment for b
, exp_of_c item_c - comment for c
FROM ...
'''. 
Can we capture the comments of the item or design some syntax at these place 
and add these info to table column comment naturally? (instead of adding 
comment separately in current syntax) 

I have looked at the source code and found we should have nothing like this now.
[https://github.com/cloudera/Impala/blob/114ac271fa4ac991d7c3392128354c0d056cb975/fe/src/main/cup/sql-parser.cup#L2301]
h2.  



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

Reply via email to