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

cql3 ALTER TABLE ALTER TYPE has no effect

    XMLWordPrintableJSON

    Details

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

      Description

      running the following with cql3:

      CREATE TABLE test (foo text PRIMARY KEY, bar int);
      ALTER TABLE test ALTER bar TYPE float;
      

      does not actually change the column type of bar. It does under cql2.

      Note that on the current cassandra-1.1.0 HEAD, this causes an NPE, fixed by CASSANDRA-4163. But even with that applied, the ALTER shown here has no effect.

        Attachments

        1. 4170.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: