Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-14845

cassandra cpp driver 2.2.2 list type issue

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4.6
    • Fix Version/s: 5.6.0
    • Component/s: Cassandra
    • Labels:
      None

      Description

      Error encountered running easy cassandra against plugin using latest cpp-driver (2.2.2):

      Error: System error: 0: cassandra: While binding parameter list1: Invalid value type (processing query
      INSERT INTO tbl1 (name, value, boolval, r8, r4,d,ddd,u1,u2,a,set1,list1,map1) values (?,?,?,?,?,?,?,?,?,?,?,?,?) (0, 0), 0,
      From this code:
      String TargetCassandraHost := '10.176.152.200';
      Integer TargetCassandraPort := 9042;
      IMPORT cassandra;
      childrec := RECORD
      string name, integer4 value

      { default(99999) }

      , boolean boolval

      { default(true) }

      , real8 r8

      {default(99.99)}

      , real4 r4

      {default(999.99)}

      ,
      DATA d

      {default (D'999999')}

      , DECIMAL10_2 ddd

      {default(9.99)}

      ,
      UTF8 u1

      {default(U'9999 ß')}

      , UNICODE u2

      {default(U'9999 ßßßß')}

      , STRING a, SET OF STRING set1,
      SET OF INTEGER4 list1,
      END;

      init := DATASET(
      [

      {'name1', 1, true, 1.2, 3.4, D'aa55aa55', 1234567.89, U'Straße', U'Straße','Ascii',['one','two','two','three'],[5,4,4,3]}

      ], childrec);

      initialize(dataset(childrec) values) := EMBED(cassandra : server(TargetCassandraHost),user('rchapman'),keyspace('test'),batch('unlogged'))
      INSERT INTO tbl1 (name, value, boolval, r8, r4,d,ddd,u1,u2,a,set1,list1,map1) values (?,?,?,?,?,?,?,?,?,?,?,?,?);
      ENDEMBED;

      initialize(init);
      //removing list1 from the rec def and init dataset works without error.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                richardkchapman Richard Chapman
                Reporter:
                rpastrana Rodrigo Pastrana
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: