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

Issue when modifying UDT

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.1.6
    • None
    • None
    • Normal

    Description

      I'm trying out the user defined types but ran into some issues when adding a column to an existing type.

      Unfortunately I had to scrap the entire cluster so I cannot access it any more.

      After creating the UDT i adde two tables using it. 1 was just using frozen<type>. The other was using both frozen<type> frozen map<String, type>.

      Then I realized I needed to add a new field to the user type. Then when I tried to put to any of the two tables (setting all fields to the UDT in the datastax java driver) I got this error message that I could not find anywhere else but in the cassandra code:

      com.datastax.driver.core.exceptions.InvalidQueryException: Invalid remaining data after end of UDT value

      I had to scrap my keyspace in order to be able to use it again. Could not even drop one of the tables.

      I know that they are frozen so we cannot modify the value of individual fields once they are written but we must be able to modify the schema right?

      Attachments

        1. 9148.txt
          2 kB
          Jeff Jirsa
        2. 9148-v2.txt
          7 kB
          Jeff Jirsa
        3. 9148-V3.txt
          7 kB
          Benjamin Lerer

        Issue Links

          Activity

            People

              jjirsa Jeff Jirsa
              OskarKjellin Oskar Kjellin
              Jeff Jirsa
              Benjamin Lerer
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: