[ https://issues.apache.org/jira/browse/HIVE-2256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071500#comment-13071500 ]
Hudson commented on HIVE-2256: ------------------------------ Integrated in Hive-trunk-h0.21 #852 (See [https://builds.apache.org/job/Hive-trunk-h0.21/852/]) HIVE-2256. Better error message in CLI on invalid column name (Sohan Jain via cws) cws : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1151280 Files : * /hive/trunk/ql/src/test/results/clientnegative/semijoin2.q.out * /hive/trunk/ql/src/test/results/clientnegative/semijoin3.q.out * /hive/trunk/ql/src/test/results/clientnegative/semijoin4.q.out * /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDAFPercentile.java * /hive/trunk/ql/src/test/results/clientnegative/regex_col_groupby.q.out * /hive/trunk/ql/src/test/results/clientnegative/clustern4.q.out * /hive/trunk/ql/src/test/results/compiler/errors/unknown_column4.q.out * /hive/trunk/ql/src/test/results/compiler/errors/unknown_column5.q.out * /hive/trunk/ql/src/test/results/clientnegative/input2.q.out * /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java * /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/RowResolver.java * /hive/trunk/ql/src/test/results/clientnegative/semijoin1.q.out > Better error message in CLI on invalid column name > -------------------------------------------------- > > Key: HIVE-2256 > URL: https://issues.apache.org/jira/browse/HIVE-2256 > Project: Hive > Issue Type: Improvement > Components: CLI, Diagnosability, Query Processor > Reporter: Sohan Jain > Assignee: Sohan Jain > Fix For: 0.8.0 > > Attachments: HIVE-2256.1.patch, HIVE-2256.2.patch > > > In the CLI, if a user inputs an incorrect column name, we currently just > print the bad column name in the query. Typically, the user needs to > "describe" the table to figure out the correct column. > This patch prints out a list of valid column and partition names in the table > when a user inputs an incorrect column name. > e.g., > {{Error in semantic analysis: Invalid table alias or column reference > 'col_does_not_exist' (possible column names are: col1, col2)}} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira