You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Mauro Cazzari (Created) (JIRA)" <ji...@apache.org> on 2012/04/16 16:32:17 UTC
[jira] [Created] (HIVE-2954) The statement fails when a column part
of an ORDER BY is not specified in the SELECT.
The statement fails when a column part of an ORDER BY is not specified in the SELECT.
-------------------------------------------------------------------------------------
Key: HIVE-2954
URL: https://issues.apache.org/jira/browse/HIVE-2954
Project: Hive
Issue Type: Improvement
Components: SQL
Affects Versions: 0.8.1
Reporter: Mauro Cazzari
Given the following table:
CREATE TABLE `DBCSTB32` (`aaa` DOUBLE,`bbb` STRING,`ccc` STRING,`ddd` DOUBLE) ROW FORMAT
DELIMITED FIELDS TERMINATED BY '\001' STORED AS TEXTFILE;
The following statement fails:
select TXT_1`aaa`, TXT_1.`bbb`
from `DBCSTB32` TXT_1
order by TXT_1.`bbb` asc, TXT_1.`aaa` asc, TXT_1.`ccc` asc
ERROR: java.sql.SQLException: Query returned non-zero code: 10, cause: FAILED: Error in
semantic analysis: Line 1:104 Invalid column reference '`ccc`'
Adding `ccc` to the selected list of columns fixes the problem.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2954) The statement fails when a column part
of an ORDER BY is not specified in the SELECT.
Posted by "Phabricator (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Phabricator updated HIVE-2954:
------------------------------
Attachment: HIVE-2954.D2889.2.patch
navis updated the revision "HIVE-2954 [jira] The statement fails when a column part of an ORDER BY is not specified in the SELECT.".
Reviewers: JIRA
1. Moved clustern3.q, clustern4.q to clientpositive from clientnegative
REVISION DETAIL
https://reviews.facebook.net/D2889
AFFECTED FILES
ql/src/java/org/apache/hadoop/hive/ql/exec/ColumnInfo.java
ql/src/java/org/apache/hadoop/hive/ql/parse/RowResolver.java
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
ql/src/test/queries/clientpositive/clustern3.q
ql/src/test/queries/clientnegative/clustern3.q
ql/src/test/queries/clientpositive/clustern4.q
ql/src/test/queries/clientnegative/clustern4.q
ql/src/test/queries/clientpositive/orderby_not_selected.q
ql/src/test/results/clientnegative/clustern3.q.out
ql/src/test/results/clientnegative/clustern4.q.out
ql/src/test/results/clientpositive/clustern3.q.out
ql/src/test/results/clientpositive/clustern4.q.out
ql/src/test/results/clientpositive/orderby_not_selected.q.out
> The statement fails when a column part of an ORDER BY is not specified in the SELECT.
> -------------------------------------------------------------------------------------
>
> Key: HIVE-2954
> URL: https://issues.apache.org/jira/browse/HIVE-2954
> Project: Hive
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 0.8.1
> Reporter: Mauro Cazzari
> Assignee: Navis
> Attachments: HIVE-2954.D2889.1.patch, HIVE-2954.D2889.2.patch
>
>
> Given the following table:
> CREATE TABLE `DBCSTB32` (`aaa` DOUBLE,`bbb` STRING,`ccc` STRING,`ddd` DOUBLE) ROW FORMAT
> DELIMITED FIELDS TERMINATED BY '\001' STORED AS TEXTFILE;
> The following statement fails:
> select TXT_1`aaa`, TXT_1.`bbb`
> from `DBCSTB32` TXT_1
> order by TXT_1.`bbb` asc, TXT_1.`aaa` asc, TXT_1.`ccc` asc
> ERROR: java.sql.SQLException: Query returned non-zero code: 10, cause: FAILED: Error in
> semantic analysis: Line 1:104 Invalid column reference '`ccc`'
> Adding `ccc` to the selected list of columns fixes the problem.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2954) The statement fails when a column part
of an ORDER BY is not specified in the SELECT.
Posted by "Phabricator (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Phabricator updated HIVE-2954:
------------------------------
Attachment: HIVE-2954.D2889.1.patch
navis requested code review of "HIVE-2954 [jira] The statement fails when a column part of an ORDER BY is not specified in the SELECT.".
Reviewers: JIRA
DPAL-1110 The statement fails when a column part of an ORDER BY is not specified in the SELECT
Given the following table:
CREATE TABLE `DBCSTB32` (`aaa` DOUBLE,`bbb` STRING,`ccc` STRING,`ddd` DOUBLE) ROW FORMAT
DELIMITED FIELDS TERMINATED BY '\001' STORED AS TEXTFILE;
The following statement fails:
select TXT_1`aaa`, TXT_1.`bbb`
from `DBCSTB32` TXT_1
order by TXT_1.`bbb` asc, TXT_1.`aaa` asc, TXT_1.`ccc` asc
ERROR: java.sql.SQLException: Query returned non-zero code: 10, cause: FAILED: Error in
semantic analysis: Line 1:104 Invalid column reference '`ccc`'
Adding `ccc` to the selected list of columns fixes the problem.
TEST PLAN
EMPTY
REVISION DETAIL
https://reviews.facebook.net/D2889
AFFECTED FILES
ql/src/java/org/apache/hadoop/hive/ql/exec/ColumnInfo.java
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
ql/src/test/queries/clientpositive/orderby_not_selected.q
ql/src/test/results/clientpositive/orderby_not_selected.q.out
MANAGE HERALD DIFFERENTIAL RULES
https://reviews.facebook.net/herald/view/differential/
WHY DID I GET THIS EMAIL?
https://reviews.facebook.net/herald/transcript/6597/
Tip: use the X-Herald-Rules header to filter Herald messages in your client.
> The statement fails when a column part of an ORDER BY is not specified in the SELECT.
> -------------------------------------------------------------------------------------
>
> Key: HIVE-2954
> URL: https://issues.apache.org/jira/browse/HIVE-2954
> Project: Hive
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 0.8.1
> Reporter: Mauro Cazzari
> Assignee: Navis
> Attachments: HIVE-2954.D2889.1.patch
>
>
> Given the following table:
> CREATE TABLE `DBCSTB32` (`aaa` DOUBLE,`bbb` STRING,`ccc` STRING,`ddd` DOUBLE) ROW FORMAT
> DELIMITED FIELDS TERMINATED BY '\001' STORED AS TEXTFILE;
> The following statement fails:
> select TXT_1`aaa`, TXT_1.`bbb`
> from `DBCSTB32` TXT_1
> order by TXT_1.`bbb` asc, TXT_1.`aaa` asc, TXT_1.`ccc` asc
> ERROR: java.sql.SQLException: Query returned non-zero code: 10, cause: FAILED: Error in
> semantic analysis: Line 1:104 Invalid column reference '`ccc`'
> Adding `ccc` to the selected list of columns fixes the problem.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (HIVE-2954) The statement fails when a column
part of an ORDER BY is not specified in the SELECT.
Posted by "Navis (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Navis reassigned HIVE-2954:
---------------------------
Assignee: Navis
> The statement fails when a column part of an ORDER BY is not specified in the SELECT.
> -------------------------------------------------------------------------------------
>
> Key: HIVE-2954
> URL: https://issues.apache.org/jira/browse/HIVE-2954
> Project: Hive
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 0.8.1
> Reporter: Mauro Cazzari
> Assignee: Navis
>
> Given the following table:
> CREATE TABLE `DBCSTB32` (`aaa` DOUBLE,`bbb` STRING,`ccc` STRING,`ddd` DOUBLE) ROW FORMAT
> DELIMITED FIELDS TERMINATED BY '\001' STORED AS TEXTFILE;
> The following statement fails:
> select TXT_1`aaa`, TXT_1.`bbb`
> from `DBCSTB32` TXT_1
> order by TXT_1.`bbb` asc, TXT_1.`aaa` asc, TXT_1.`ccc` asc
> ERROR: java.sql.SQLException: Query returned non-zero code: 10, cause: FAILED: Error in
> semantic analysis: Line 1:104 Invalid column reference '`ccc`'
> Adding `ccc` to the selected list of columns fixes the problem.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira