cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Holmberg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-10161) Composite case-sensitive primary key: first item is not quoted in DESCRIBE TABLE
Date Fri, 04 Sep 2015 22:14:46 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-10161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14731524#comment-14731524
] 

Adam Holmberg commented on CASSANDRA-10161:
-------------------------------------------

The 3.0 work-in-progress branch ("276") now contains the PYTHON-375 changes at [836eaae|https://github.com/datastax/python-driver/tree/836eaae07aacce73dc6d4805991027fe61a46037]

> Composite case-sensitive primary key: first item is not quoted in DESCRIBE TABLE
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-10161
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10161
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Julien Moreau
>            Assignee: Carl Yeksigian
>            Priority: Minor
>              Labels: cqlsh
>             Fix For: 2.1.x
>
>
> A table is created with case-sensitive composite primary key:
> {code}
> CREATE TABLE foo (
>  "Key1" text,
>  "Key2" text,
>  "Value" text
>  PRIMARY KEY ("Key1", "Key2")
> );
> {code}
> In the result of {{DESCRIBE TABLE foo;}}:
> {code}
> CREATE TABLE foo (
>  "Key1" text,
>  "Key2" text,
>  "Value" text
>  PRIMARY KEY (Key1, "Key2")
> );
> {code}
> {{Key1}} is not quoted.
> When trying to re-create the table with this description, there is an error:
> {code}
> InvalidRequest: code=2200 [Invalid query] message="Unknown definition key1 referenced
in PRIMARY KEY"
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message