----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/22926/ -----------------------------------------------------------
Review request for hive. Bugs: HIVE-494 https://issues.apache.org/jira/browse/HIVE-494 Repository: hive-git Description ------- SELECT mytable[0], mytable[2] FROM some_table_name mytable; ...should return the first and third columns, respectively, from mytable regardless of their column names. The need for "names" specifically is kind of silly when they just get translated into numbers anyway. Diffs ----- ql/src/java/org/apache/hadoop/hive/ql/exec/ColumnInfo.java feb8558 ql/src/java/org/apache/hadoop/hive/ql/parse/FromClauseParser.g f448b16 ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g 9c001c1 ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java cb284d7 ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java e7da289 ql/src/test/queries/clientpositive/select_by_column_index.q PRE-CREATION ql/src/test/results/clientpositive/select_by_column_index.q.out PRE-CREATION Diff: https://reviews.apache.org/r/22926/diff/ Testing ------- Thanks, Navis Ryu