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

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Cannot Reproduce
    • 2.2.3
    • Legacy/Tools
    • None
    • [cqlsh 5.0.1 | Cassandra 2.2.3 | CQL spec 3.3.1 | Native protocol v4]

    • 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

            Unassigned Unassigned
            chernals Cédric Hernalsteens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: