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

cql3 ALTER TABLE foo WITH default_validation=int has no effect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.1.0
    • Legacy/CQL
    • 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

            slebresne Sylvain Lebresne
            thepaul paul cannon
            Sylvain Lebresne
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: