Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-2445

Support SQL data types in CQL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.8 beta 1
    • None
    • None
    • Normal

    Description

      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 in CQL CREATE statements, because there is ambiguity otherwise (in particular with "int").

      Attachments

        1. 2445.txt
          15 kB
          Jonathan Ellis
        2. ASF.LICENSE.NOT.GRANTED--v1-0001-CASSANDRA-2445-update-documentation.txt
          19 kB
          Eric Evans

        Activity

          People

            jbellis Jonathan Ellis
            jbellis Jonathan Ellis
            Jonathan Ellis
            Eric Evans
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: