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

CQL3 ALTER TABLE command causes NPE

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.1.0
    • None
    • INFO 16:07:11,757 Cassandra version: 1.1.0-rc1-SNAPSHOT
      INFO 16:07:11,757 Thrift API version: 19.30.0
      INFO 16:07:11,758 CQL supported versions: 2.0.0,3.0.0-beta1 (default: 2.0.0)

    • Normal

    Description

      To reproduce the problem:

      ./cqlsh --cql3
      Connected to Test Cluster at localhost:9160.
      [cqlsh 2.2.0 | Cassandra 1.1.0-rc1-SNAPSHOT | CQL spec 3.0.0 | Thrift protocol 19.30.0]
      Use HELP for help.

      cqlsh> CREATE KEYSPACE test34 WITH strategy_class = 'org.apache.cassandra.locator.SimpleStrategy' AND strategy_options:replication_factor='1';

      cqlsh> USE test34;

      cqlsh:test34> CREATE TABLE users (
      ... password varchar,
      ... gender varchar,
      ... session_token varchar,
      ... state varchar,
      ... birth_year bigint,
      ... pk varchar,
      ... PRIMARY KEY (pk)
      ... );

      cqlsh:test34> ALTER TABLE users ADD coupon_code varchar;
      TSocket read 0 bytes

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            thepaul paul cannon Assign to me
            khahn K. B. Hahn
            paul cannon
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment