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

CQLSH COPY FROM attempts to parse null timestamp value representatives

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Duplicate
    • None
    • Legacy/Tools
    • None
    • OSX / [cqlsh 5.0.1 | Cassandra 3.5 | CQL spec 3.4.0 | Native protocol v4]

    • Normal

    Description

      CQLSH COPY FROM is broken when the table includes timestamp columns with null values

      create table foo (id uuid primary key, t timestamp);
      insert into foo (now(), null);
      copy foo to 'foo.csv';
      copy foo from 'foo.csv';

      ... borks with

      Failed to import 1 rows: ParseError - can't interpret '' as a date with format %Y-%m-%d %H:%M:%S.%f%z or as int, given up without retries
      Failed to process 1 rows; failed rows written to import_erdev_foo.err

      Attachments

        Issue Links

          Activity

            People

              stefania Stefania Alborghetti
              mccraigmccraig craig mcmillan
              Stefania Alborghetti
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: