You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2017/03/10 20:08:04 UTC

[jira] [Updated] (KUDU-1271) Column ordering constraint in Kudu

     [ https://issues.apache.org/jira/browse/KUDU-1271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Todd Lipcon updated KUDU-1271:
------------------------------
    Priority: Major  (was: Critical)

> Column ordering constraint in Kudu
> ----------------------------------
>
>                 Key: KUDU-1271
>                 URL: https://issues.apache.org/jira/browse/KUDU-1271
>             Project: Kudu
>          Issue Type: Improvement
>          Components: master
>    Affects Versions: 0.5.0
>         Environment: Cloudera CDH 5.4.x
>            Reporter: Abhi Basu
>
> I get this error when I am attempting to create a Kudu table as a select from an existing Impala/Hive table. The last column of the table is rowid (int) that is going to be used as primary key for this table. 
> Error: llegalArgumentException: Got out-of-order primary key column: Column name: rowid, type:
> SQL example:
> CREATE TABLE newtable_kudu
> TBLPROPERTIES(
>  'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
>   'kudu.table_name' = 'newtable_kudu',
>   'kudu.master_addresses' = 'hostname:7051',
>   'kudu.key_columns' = 'rowid'
>  ) AS SELECT * FROM oldtable_impala;



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)