You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Matthew Jacobs (JIRA)" <ji...@apache.org> on 2017/08/14 16:19:00 UTC

[jira] [Created] (IMPALA-5796) CTAS for Kudu table and WITH clause analysis exception

Matthew Jacobs created IMPALA-5796:
--------------------------------------

             Summary: CTAS for Kudu table and WITH clause analysis exception
                 Key: IMPALA-5796
                 URL: https://issues.apache.org/jira/browse/IMPALA-5796
             Project: IMPALA
          Issue Type: Bug
          Components: Frontend
    Affects Versions: Impala 2.9.0
            Reporter: Matthew Jacobs
            Assignee: Thomas Tauber-Marshall
            Priority: Critical


Creating a Kudu table with a CTAS query containing a WITH clause seems to be broken:

{code}
CREATE TABLE not_ok_1
PRIMARY KEY (int_col)
PARTITION BY HASH (int_col) PARTITIONS 4
stored as kudu
AS with src as (SELECT distinct int_col
FROM functional.alltypes
where int_col between 5 and 10)
select * from src;

ERROR: AnalysisException: Multiple primary keys specified. Composite primary keys can be specified using the PRIMARY KEY (col1, col2, ...) syntax at the end of the column definition.
{code}

I don't think we have any existing tests for CTAS into Kudu tables containing WITH clauses, so I'm not surprised that path is broken.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)