You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Robert Stupp (JIRA)" <ji...@apache.org> on 2014/06/15 11:22:01 UTC

[jira] [Commented] (CASSANDRA-7399) cqlsh: describe table shows wrong data type for CompositeType

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

Robert Stupp commented on CASSANDRA-7399:
-----------------------------------------

Same for {{DynamicCompositeType}}:

{noformat}
CREATE TABLE compo.foo2 (
    id int PRIMARY KEY,
    comp 'org.apache.cassandra.db.marshal.DynamicCompositeType'<'a=>org.apache.cassandra.db.marshal.Int32Type', 'b=>org.apache.cassandra.db.marshal.UTF8Type'>
)
{noformat}

Should be:
{noformat}
CREATE TABLE compo.foo2 (
    id int PRIMARY KEY,
    comp 'org.apache.cassandra.db.marshal.DynamicCompositeType(a=>org.apache.cassandra.db.marshal.Int32Type, b=>org.apache.cassandra.db.marshal.UTF8Type)'
)
{noformat}


> cqlsh: describe table shows wrong data type for CompositeType
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-7399
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7399
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Robert Stupp
>
> {{DESCRIBE}} for {{CompositeType}} produces wrong output.
> Currently:
> {noformat}
> CREATE TABLE compo.comp (
>     id int PRIMARY KEY,
>     comp 'org.apache.cassandra.db.marshal.CompositeType'<int, text>
> )...
> {noformat}
> Correct:
> {noformat}
> CREATE TABLE compo.comp (
>     id int PRIMARY KEY,
>     comp 'org.apache.cassandra.db.marshal.CompositeType(Int32Type,UTF8Type)'
> )...
> {noformat}
> Means:
> 1. use normal brackets instead of {{<>}}
> 1. use C* type names instead of CQL3 names
> 1. move types inside quoted



--
This message was sent by Atlassian JIRA
(v6.2#6252)