Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3465

Add support for missing Cassandra 3.x data types

    XMLWordPrintableJSON

    Details

      Description

      Currently cassandra-adapter covers only part of the [data types available in Cassandra 3.x|http://cassandra.apache.org/doc/latest/cql/types.html], the scope of the ticket is to extend the coverage and support all data types.

      Current status:

      CQL Data Type SQL Data Type Java Class Supported
      custom ANY N/A N
      duration ANY N/A N
      uuid CHAR java.lang.String Y
      timeuuid CHAR java.lang.String Y
      ascii VARCHAR java.lang.String Y
      text VARCHAR java.lang.String Y
      varchar VARCHAR java.lang.String Y
      int (cint) INTEGER int Y
      varint INTEGER int Y
      bigint BIGINT long Y
      double (cdouble) DOUBLE double Y
      float (cfloat) REAL float Y
      decimal DOUBLE double Y
      blob VARBINARY N/A N
      boolean BOOLEAN N/A N
      counter BIGINT N/A N
      date DATE N/A N
      inet ANY N/A N
      list ARRAY N/A N
      map MAP N/A N
      set MULTISET N/A N
      smallint SMALLINT N/A N
      time BIGINT N/A N
      timestamp TIMESTAMP N/A N
      tinyint TINYINT N/A N
      tuple STRUCTURED N/A N
      udt MAP N/A N

      Second column is derived from org.apache.calcite.adapter.cassandra.CassandraSchema.getRelDataType(...),
      third column fromĀ org.apache.calcite.adapter.cassandra.currentRowField(...).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                asolimando Alessandro Solimando
                Reporter:
                asolimando Alessandro Solimando
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m