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

frozen broken / frozen collections in frozen tuple type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.1.1
    • None
    • None
    • 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

              snazy Robert Stupp
              snazy Robert Stupp
              Robert Stupp
              Tom Hobbs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: