Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-12852

Comma in field is not supported by COPY command

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.8
    • 2.14
    • sql
    • None
    • Fixed parsing quoted delimiters in CSV fields content for SQL command COPY.
    • Release Notes Required

    Description

      CREATE TABLE test(a int,b varchar(100),c int,PRIMARY key(a));

      a.csv:
      1,"a,b",2

      COPY FROM '/data/a.csv' INTO test (a,b,c) FORMAT CSV;

      The copy command fails because there is a comma in the second field,but this is a fully legal and compliant CSV format

      Attachments

        Issue Links

          Activity

            People

              antkr Anton Kurbanov
              liyuj YuJue Li
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m