cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-2445) Support SQL data types in CQL
Date Sat, 09 Apr 2011 21:41:05 GMT
Support SQL data types in CQL
-----------------------------

                 Key: CASSANDRA-2445
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2445
             Project: Cassandra
          Issue Type: Bug
            Reporter: Jonathan Ellis
            Assignee: Jonathan Ellis
             Fix For: 0.8


We should support SQL data types where possible:

(sql -> cassandra)
varint -> int
bigint -> long
varchar, text -> utf8
ascii -> ascii (not strictly correct -- sql defines collations for this -- but close enough
for a 1.0)
uuid -> uuid (see CASSANDRA-2233)
bytea -> bytes

IMO the right thing to do is _only_ support the SQL types from CQL, because there is ambiguity
otherwise (in particular with "int").

I believe the only changes needed is to the comparatorType definition in Cql.g and to the
corresponding Map in CreateColumnFamilyStatement.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message