You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Brian Hausmann (JIRA)" <ji...@apache.org> on 2019/03/05 17:53:00 UTC

[jira] [Created] (IMPALA-8283) Creating a Kudu table from an existing Kudu table doesn't take the primary key order specified

Brian Hausmann created IMPALA-8283:
--------------------------------------

             Summary: Creating a Kudu table from an existing Kudu table doesn't take the primary key order specified
                 Key: IMPALA-8283
                 URL: https://issues.apache.org/jira/browse/IMPALA-8283
             Project: IMPALA
          Issue Type: Bug
            Reporter: Brian Hausmann


When trying to create a new Kudu table from an existing Kudu table with a different primary key order, Impala takes the primary key structure from the existing Kudu Table instead of the new key order specified in the create table statement.

 

Example:

table1: (a string, b string, c string, d boolean) primary key (a, b, c) partition by hash (a) stored as kudu

create table newtable primary key (b, a, c) partition by hash (a) stored as kudu as Select * from table1

 

Result: newtable is created with the same primary key order (a, b, c) as table1 instead of specified (b, a, c) order

 

The workaround for this was to create an empty table with the correct key structure and field order and then insert the data into the table



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org