[
https://issues.apache.org/jira/browse/HIVE-4204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Phabricator updated HIVE-4204:
------------------------------
Attachment: HIVE-4204.D9549.1.patch
navis requested code review of "HIVE-4204 [jira] Support ellipsis for selecting
multiple columns".
Reviewers: JIRA
HIVE-4204 Support ellipsis for selecting multiple columns
Some UDF should take all columns starting from second or third one and in this
case, star argument(HIVE-3490) cannot be used. It's not pleasant to specify all
of them especially when the table has many of columns. For example,
select some_udtf(a2,a3,a4,a5,a6) as (a2,a3,a4,a5,a6) from table;
it can be simplified to
select some_udtf(a2...) as (a2,a3,a4,a5,a6) from table;
if HIVE-2608 would be committed, it can be simplified further
select some_udtf(a2...) from table;
TEST PLAN
EMPTY
REVISION DETAIL
https://reviews.facebook.net/D9549
AFFECTED FILES
ql/src/java/org/apache/hadoop/hive/ql/ErrorMsg.java
ql/src/java/org/apache/hadoop/hive/ql/exec/ColumnInfo.java
ql/src/java/org/apache/hadoop/hive/ql/parse/FromClauseParser.g
ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g
ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g
ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckCtx.java
ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java
ql/src/test/queries/clientnegative/allcolref_from_tablealias.q
ql/src/test/queries/clientpositive/allcolref_from.q
ql/src/test/results/clientnegative/allcolref_from_tablealias.q.out
ql/src/test/results/clientpositive/allcolref_from.q.out
MANAGE HERALD RULES
https://reviews.facebook.net/herald/view/differential/
WHY DID I GET THIS EMAIL?
https://reviews.facebook.net/herald/transcript/22845/
To: JIRA, navis
> Support ellipsis for selecting multiple columns
> -----------------------------------------------
>
> Key: HIVE-4204
> URL: https://issues.apache.org/jira/browse/HIVE-4204
> Project: Hive
> Issue Type: Improvement
> Components: Query Processor
> Reporter: Navis
> Assignee: Navis
> Priority: Trivial
> Attachments: HIVE-4204.D9549.1.patch
>
>
> Some UDF should take all columns starting from second or third one and in
> this case, star argument(HIVE-3490) cannot be used. It's not pleasant to
> specify all of them especially when the table has many of columns. For
> example,
> {noformat}
> select some_udtf(a2,a3,a4,a5,a6) as (a2,a3,a4,a5,a6) from table;
> {noformat}
> it can be simplified to
> {noformat}
> select some_udtf(a2...) as (a2,a3,a4,a5,a6) from table;
> {noformat}
> if HIVE-2608 would be committed, it can be simplified further
> {noformat}
> select some_udtf(a2...) from table;
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira