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

Rename of field in user defined type causes ArrayIndexOutOfBoundsException in select JSON *

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Duplicate
    • None
    • Legacy/CQL
    • None
    • Normal

    Description

      Executing the attached error.cql causes java.lang.ArrayIndexOutOfBoundsException. This reproduces 100% of the time in my environment.

      nodetool -h localhost version
      objc[14803]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
      ReleaseVersion: 3.3

      cqlsh -f error.cql

      [json]
      -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      {"list_id": "3ae31af7-e72b-11e5-9f1c-77e17196cbff", "card_id": "b2f059bb-ecc0-11e5-937c-4760eea11554", "owner_id": "8c02459b-dcaf-42dd-874a-41e19ba15075", "book_name": "Hop on Pop (I Can Read It All By Myself)", "publication_info": {"author": "Dr. Seuss", "publisher": "Beginner Books / Random House", "creative_roles": [], "publication_date": "1963-02-12"}}

      (1 rows)
      twangs-MacBook-Pro:migrations twang$ cqlsh -f error.cql

      peer | release_version
      -----+----------------

      (0 rows)

      release_version
      -----------------
      3.3

      (1 rows)

      [json]
      -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      {"list_id": "3ae31af7-e72b-11e5-9f1c-77e17196cbff", "card_id": "b2f059bb-ecc0-11e5-937c-4760eea11554", "owner_id": "8c02459b-dcaf-42dd-874a-41e19ba15075", "book_name": "Hop on Pop (I Can Read It All By Myself)", "publication_info": {"author": "Dr. Seuss", "publisher": "Beginner Books / Random House", "creative_roles": [], "publication_date": "1963-02-12"}}

      (1 rows)
      error.cql:49:ServerError: <ErrorMessage code=0000 [Server error] message="java.lang.ArrayIndexOutOfBoundsException: 4">

      Attachments

        1. error.cql
          2 kB
          Timothy Wang
        2. cassandra_log_output.txt
          33 kB
          Timothy Wang

        Issue Links

          Activity

            People

              ifesdjeen Alex Petrov
              timgojurn Timothy Wang
              Alex Petrov
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: