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

Failing to format MAP type where the key is UDT and the value is another MAP

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Cannot Reproduce
    • Fix Version/s: 2.2.3
    • Component/s: Legacy/Tools
    • Labels:
      None
    • Environment:

      [cqlsh 5.0.1 | Cassandra 2.2.3 | CQL spec 3.3.1 | Native protocol v4]

    • Severity:
      Low

      Description

      A column defined as

      MAP<FROZEN<cycle>,FROZEN<MAP<TEXT,TEXT>>> STATIC

      with the UDT 'cycle' being

      CREATE TYPE kepler.cycle (
      machine TEXT,
      injection INT,
      cyclestamp TIMESTAMP
      );

      generates the following error in cqlsh:

      Failed to format value OrderedMapSerializedKey([(kepler_cycle(machine=u'PS', injection=1), OrderedMapSerializedKey([(u'selector', u'CPS.USER.MD8'), (u'seqnumber', u'21')]))]) : "kepler_cycle(machine=u'PS', injection=1)"

      (I left my actual in there, I doubt that's sensitive).

      The row shows

      OrderedMapSerializedKey([(kepler_cycle(machine=u'PS', injection=1), OrderedMapSerializedKey([(u'selector', u'CPS.USER.MD8'), (u'seqnumber', u'22')]))])

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chernals C├ędric Hernalsteens
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: