Cassandra
  1. Cassandra
  2. CASSANDRA-5017

Preparing UPDATE queries with collections returns suboptimal metadata

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Fix Version/s: 1.2.0 rc1
    • Component/s: None
    • Labels:
      None

      Description

      CQL3, binary protocol.

      collections (id int primary key, amap map<int, varchar>);

      preparing "UPDATE test.collections SET amap[?] = ? WHERE id = ?" returns the following metadata:
      [{column,<<"test">>,<<"collections">>,<<"amap">>,
      {map,int,varchar}},
      {column,<<"test">>,<<"collections">>,<<"amap">>,
      {map,int,varchar}},

      {column,<<"test">>,<<"collections">>,<<"id">>,int}

      ]

      Ideally it should return [int, varchar, int] types. Less ideally [

      {map, int, varchar}

      , int] and expect an encoded map with a single key-value pair. But certainly not what it currently returns.

        Issue Links

          Activity

          Aleksey Yeschenko created issue -
          Sylvain Lebresne made changes -
          Sylvain Lebresne made changes -
          Link This issue is duplicated by CASSANDRA-5018 [ CASSANDRA-5018 ]
          Sylvain Lebresne made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Fix Version/s 1.2.0 [ 12323243 ]
          Sylvain Lebresne made changes -
          Fix Version/s 1.2.0 rc1 [ 12323481 ]
          Fix Version/s 1.2.0 [ 12323243 ]
          Aleksey Yeschenko made changes -
          Reviewer iamaleksey
          Sylvain Lebresne made changes -
          Sylvain Lebresne made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Gavin made changes -
          Workflow no-reopen-closed, patch-avail [ 12736694 ] patch-available, re-open possible [ 12753694 ]
          Gavin made changes -
          Workflow patch-available, re-open possible [ 12753694 ] reopen-resolved, no closed status, patch-avail, testing [ 12758879 ]

            People

            • Assignee:
              Sylvain Lebresne
              Reporter:
              Aleksey Yeschenko
              Reviewer:
              Aleksey Yeschenko
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development