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

cqlsh COPY FROM fails for null values with non-prepared statements

    Details

    • Severity:
      Low

      Description

      cqlsh's COPY FROM ... WITH PREPAREDSTATEMENTS = False fails if the row contains null values. Reason is that the ','.join(r) in make_non_prepared_batch_statement doesn't seem to handle None, which results in this error message.

      Failed to import 1 rows: TypeError - sequence item 2: expected string, NoneType found,  given up without retries
      

      Attached patch should fix the problem.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Stefania Stefania
                Reporter:
                snazy Robert Stupp
                Authors:
                Stefania
                Reviewers:
                Robert Stupp
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: