Cassandra
  1. Cassandra
  2. CASSANDRA-4171

cql3 ALTER TABLE foo WITH default_validation=int has no effect

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Fix Version/s: 1.1.0
    • Component/s: API, Core
    • Labels:

      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.

      1. 4171.txt
        1 kB
        Sylvain Lebresne

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Sylvain Lebresne
            Reporter:
            paul cannon
            Reviewer:
            Jonathan Ellis
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development