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

frozen broken / frozen collections in frozen tuple type

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 2.1.1
    • Component/s: None
    • Labels:
      None
    • Severity:
      Normal

      Description

      CREATE TABLE foo (key int primary key, tup frozen<tuple<double, list<double>, set<text>, map<int, boolean>>>)

      Produces an NPE in CQL3Type.freeze(), because lists and sets have no keys.

      CREATE TABLE bar (key int primary key, tup frozen<tuple<double, frozen<list<double>>, frozen<set<text>>, frozen<map<int, boolean>>>>)

      Produces some NPEs that prevent the correct error message being printed.

      Simple patch attached.

        Attachments

        1. frozen-broken-patch.txt
          1 kB
          Robert Stupp

          Issue Links

            Activity

              People

              • Assignee:
                snazy Robert Stupp
                Reporter:
                snazy Robert Stupp
                Authors:
                Robert Stupp
                Reviewers:
                Tom Hobbs
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: