[
https://issues.apache.org/jira/browse/TAJO-1556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14530325#comment-14530325
]
Hudson commented on TAJO-1556:
------------------------------
SUCCESS: Integrated in Tajo-master-build #694 (See
[https://builds.apache.org/job/Tajo-master-build/694/])
TAJO-1556: "insert into select" with reordered column list does not work.
(jihoonson: rev 9b3824b5f0c64af42bfcf0a6bb8d3555c22c5746)
* CHANGES
* tajo-core/src/test/java/org/apache/tajo/engine/query/TestInsertQuery.java
*
tajo-catalog/tajo-catalog-common/src/main/java/org/apache/tajo/catalog/Schema.java
* tajo-core/src/test/java/org/apache/tajo/engine/planner/TestLogicalPlanner.java
* tajo-plan/src/main/java/org/apache/tajo/plan/LogicalPlanner.java
*
tajo-core/src/test/resources/queries/TestInsertQuery/testInsertWithDifferentColumnOrder.sql
* tajo-core/src/test/resources/queries/TestInsertQuery/nation_diff_col_order.ddl
*
tajo-core/src/test/resources/results/TestInsertQuery/testInsertWithDifferentColumnOrder.result
> "insert into select" with reordered column list does not work.
> --------------------------------------------------------------
>
> Key: TAJO-1556
> URL: https://issues.apache.org/jira/browse/TAJO-1556
> Project: Tajo
> Issue Type: Bug
> Components: compilation
> Reporter: Yongjin Choi
> Assignee: Yongjin Choi
> Priority: Minor
> Fix For: 0.11.0, 0.10.1
>
> Attachments: TAJO-1556.patch, TAJO-1556_add_test.patch
>
>
> Using "insert into table1 (colums, ...) select " statement, users can fill
> part of table and tajo already had this feature.
> If columns are given in the same order as table definition, it seems to work
> well.
> Otherwise, the results are reversed.
> This bug can be reproduced easily as shown below (table1 is same as in
> http://tajo.apache.org/docs/0.8.0/getting_started/first_query.html).
> {code:sql}
> create table t1 (id int, name text, score float, type text);
> insert into t1 (type, name) select type, name from table1;
> default> select * from t1;
> id, name, score, type
> -------------------------------
> , a, , abc
> , b, , def
> {code}
> But, the expected result is as follows.
> {code:sql}
> default> select * from t1;
> id, name, score, type
> -------------------------------
> , abc, , a
> , def, , b
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)