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

    • Severity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: