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

INSERT statement fails when Tuple type is used as clustering column with default DESC order

    XMLWordPrintableJSON

Details

    • Critical

    Description

      When a column family is created and a Tuple is used on clustering column with default clustering order DESC, then the INSERT statement fails.

      For example, the following table will make the INSERT statement fail with error message "Invalid tuple type literal for tdemo of type frozen<tuple<timestamp, text>>" , although the INSERT statement is correct (works as expected when the default order is ASC)

      create table test_table (
      	id int,
      	tdemo tuple<timestamp, varchar>,
      	primary key (id, tdemo)
      ) with clustering order by (tdemo desc);
      

      Attachments

        1. fix_13717
          5 kB
          Jeff Jirsa
        2. example_queries.cql
          0.4 kB
          Anastasios Kichidis

        Activity

          People

            skonto Stavros Kontopoulos
            akichidis Anastasios Kichidis
            Stavros Kontopoulos
            Jason Brown
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: