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

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

    XMLWordPrintableJSON

Details

    • 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

              stefania Stefania Alborghetti
              snazy Robert Stupp
              Stefania Alborghetti
              Robert Stupp
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: