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

cqlsh copy cannot parse strings when counters are present

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.2.9, 3.0.11, 3.10
    • Legacy/Tools
    • None
    • 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

            stefania Stefania Alborghetti
            stefania Stefania Alborghetti
            Stefania Alborghetti
            Benjamin Lerer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: