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

CREATE TABLE fails if there is a column called "default" with Cassandra 3.11.2

    XMLWordPrintableJSON

Details

    • Low

    Description

      My project is upgrading from Cassandra 2.1 to 3.11. We have a table whose column name is "default". The Cassandra 3.11.2 is rejecting it. I don't see "default" as a keyword in the CQL spec. 

      To reproduce, try adding the following:

      CREATE TABLE simple (
          simplekey text PRIMARY KEY,
          default text // THIS IS REJECTED
      );
      

      I get this error:

      SyntaxException: line 3:4 mismatched input 'default' expecting ')' (...    simplekey text PRIMARY KEY,    [default]...)
      

      Attachments

        Activity

          People

            adelapena Andres de la Peña
            aklages Andy Klages
            Andres de la Peña
            Benjamin Lerer
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: