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

Adding field to UDT definition breaks SELECT JSON

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 2.2.6, 3.0.4, 3.4
    • Component/s: Legacy/CQL
    • Labels:
      None
    • Environment:

      cqlsh 5.0.1 | Cassandra 2.2.4 | CQL spec 3.3.1 | Native protocol v4
      cqlsh 5.0.1 | Cassandra 3.3.0 | CQL spec 3.4.0 | Native protocol v4

    • Severity:
      Normal
    • Since Version:

      Description

      CREATE TYPE test_type ( i int);
      CREATE TABLE test_table ( 
           id int PRIMARY KEY, 
           model frozen<test_type>
      );
      INSERT INTO test_table JSON '{"id": 1, "model": {"i": 123}}';
      SELECT JSON * FROM test_table;
      

      success

      ALTER TYPE test_type ADD b boolean;
      SELECT JSON * FROM test_table;
      

      error

      ServerError: <ErrorMessage code=0000 [Server error] message="java.lang.ArrayIndexOutOfBoundsException: 1">
      

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              thobbs Tom Hobbs Assign to me
              Reporter:
              AlexanderFar Alexander
              Authors:
              Tom Hobbs
              Reviewers:
              Benjamin Lerer

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment