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

cqlsh copy cannot parse strings when counters are present

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 2.2.9, 3.0.11, 3.10
    • Component/s: Legacy/Tools
    • Labels:
      None
    • Severity:
      Normal

      Description

      We get parse error Failed to import 1 rows: ParseError - argument for 's' must be a string when using the following table and data:

      CREATE TABLE ks.test (
          object_id ascii,
          user_id timeuuid,
          counter_id ascii,
          count counter,
          PRIMARY KEY ((object_id, user_id), counter_id)
      )
      
      EVT:be3bd2d0-a68d-11e6-90d4-1b2a65b8a28a,f7ce3ac0-a66e-11e6-b58e-4e29450fd577,SA,2
      

      The problem is this line here, strings are serialized as unicode rather than ordinary strings but only for non-prepared statements (unsure why).

        Attachments

          Activity

            People

            • Assignee:
              stefania Stefania Alborghetti
              Reporter:
              stefania Stefania Alborghetti
              Authors:
              Stefania Alborghetti
              Reviewers:
              Benjamin Lerer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: