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

Prepared marker for collections inside UDT do not handle null values

    XMLWordPrintableJSON

    Details

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

      Description

      The fix for CASSANDRA-7472 does not handle null values. The following causes an NPE to be thrown:

      // CREATE TYPE phone (alias text, number text)
      // CREATE TYPE address (street text, phones set<phone>)
      // CREATE TABLE user (id int PRIMARY KEY, addr address)
      PreparedStatement ps = session.prepare("INSERT INTO user (id, addr) VALUES (1, { street: 'foo', phones: ? })");
      BoundStatement bs = ps.bind().setSet(0, null);
      session.execute(bs);
      

        Attachments

        1. 7685.txt
          1 kB
          Olivier Michallat

          Activity

            People

            • Assignee:
              omichallat Olivier Michallat
              Reporter:
              omichallat Olivier Michallat
              Authors:
              Olivier Michallat
              Reviewers:
              Sylvain Lebresne
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: