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

cql3 ALTER TABLE foo WITH default_validation=int has no effect

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 1.1.0
    • Component/s: Legacy/CQL
    • Labels:
    • Severity:
      Low

      Description

      running the following with cql3:

      CREATE TABLE test (foo text PRIMARY KEY) WITH default_validation=timestamp;
      ALTER TABLE test WITH default_validation=int;
      

      does not actually change the default validation type of the CF. It does under cql2.

      No error is thrown. Some properties can be successfully changed using ALTER WITH, such as comment and gc_grace_seconds, but I haven't tested all of them. It seems probable that default_validation is the only problematic one, since it's the only (changeable) property which accepts CQL typenames.

        Attachments

        1. 4171.txt
          1 kB
          Sylvain Lebresne

          Activity

            People

            • Assignee:
              slebresne Sylvain Lebresne
              Reporter:
              thepaul paul cannon
              Authors:
              Sylvain Lebresne
              Reviewers:
              Jonathan Ellis
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: