You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Navis Ryu <na...@nexr.com> on 2014/07/01 10:43:12 UTC

Re: Review Request 22926: Select columns by index instead of name

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/22926/
-----------------------------------------------------------

(Updated July 1, 2014, 8:43 a.m.)


Review request for hive.


Changes
-------

Check ambiguous columns & added negative tests


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 (updated)
-----

  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 1d8d764 
  ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java e7da289 
  ql/src/test/queries/clientnegative/select_by_column_index_negative0.q PRE-CREATION 
  ql/src/test/queries/clientnegative/select_by_column_index_negative1.q PRE-CREATION 
  ql/src/test/queries/clientnegative/select_by_column_index_negative2.q PRE-CREATION 
  ql/src/test/queries/clientpositive/select_by_column_index.q PRE-CREATION 
  ql/src/test/results/clientnegative/select_by_column_index_negative0.q.out PRE-CREATION 
  ql/src/test/results/clientnegative/select_by_column_index_negative1.q.out PRE-CREATION 
  ql/src/test/results/clientnegative/select_by_column_index_negative2.q.out 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