Cassandra
  1. Cassandra
  2. CASSANDRA-5028

Native protocol prepared INSERT broken

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Fix Version/s: 1.2.0 rc1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Cassandra 1.2.0-beta3-SNAPSHOT (b86f75d)

      Description

      b4f2f201 breaks prepared inserts via the native protocol (a regression from 1.2.0-beta2).

      cassandra.Exec("INSERT INTO tests (id, content) VALUES (?, ?)", 1, "test")
      
      Error: Invalid definition for id, not a collection type
      
      cqlsh> CREATE KEYSPACE test WITH replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
      cqlsh> USE test;
      cqlsh:test> CREATE TABLE tests (id bigint PRIMARY KEY, content text);
      

      Repro code: https://gist.github.com/edafe5383c81c22aed5a

        Issue Links

          Activity

          Gavin made changes -
          Workflow patch-available, re-open possible [ 12753693 ] reopen-resolved, no closed status, patch-avail, testing [ 12758878 ]
          Gavin made changes -
          Workflow no-reopen-closed, patch-avail [ 12736923 ] patch-available, re-open possible [ 12753693 ]
          Sylvain Lebresne made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Duplicate [ 3 ]
          Sylvain Lebresne made changes -
          Link This issue duplicates CASSANDRA-5016 [ CASSANDRA-5016 ]
          Brandon Williams made changes -
          Fix Version/s 1.2.0 rc1 [ 12323481 ]
          Brandon Williams made changes -
          Assignee Sylvain Lebresne [ slebresne ]
          Jonathan Rudenberg made changes -
          Field Original Value New Value
          Description b4f2f201 breaks prepared inserts via the native protocol (a regression from 1.2.0-beta2).

          {noformat}
          cassandra.Exec("INSERT INTO tests (id, content) VALUES (?, ?)", 1, "test")

          Error: Invalid definition for id, not a collection type
          {noformat}

          {noformat}
          cqlsh> CREATE KEYSPACE test WITH replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
          cqlsh> USE test;
          cqlsh:test> CREATE TABLE tests (id bigint PRIMARY KEY, content text);
          {noformat}


          Repro code: https://gist.github.com/edafe5383c81c22aed5a
          b4f2f201 breaks prepared inserts via the native protocol (a regression from 1.2.0-beta2).


          {noformat}
          cassandra.Exec("INSERT INTO tests (id, content) VALUES (?, ?)", 1, "test")

          Error: Invalid definition for id, not a collection type
          {noformat}

          {noformat}
          cqlsh> CREATE KEYSPACE test WITH replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
          cqlsh> USE test;
          cqlsh:test> CREATE TABLE tests (id bigint PRIMARY KEY, content text);
          {noformat}


          Repro code: https://gist.github.com/edafe5383c81c22aed5a
          Jonathan Rudenberg created issue -

            People

            • Assignee:
              Sylvain Lebresne
              Reporter:
              Jonathan Rudenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development