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

COPY FROM not handling newlines within field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Low
    • Resolution: Unresolved
    • 3.0.x
    • Legacy/CQL
    • None
    • CQL 5.0.1

    • Low

    Description

      When using Copy From to import data from a CSV file, if it comes across a row like like this:

      10.0, 10.0, 0.0, "UX JSY AIO PETE
      10% off Toys Catalogue 10.00% -1.00 ", "Canterbury"
      10.0, 10.0,......

      It will treat the newline after PETE as the end of the first row

      While this makes sense since it's treating each line as a new row, it's also supposed to treat content between "s as a field but instead finishes half way through a field. Shouldn't the fact that it's inside a field take precedence here and have it continue reading until it finds a closing "?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dsturrock David Sturrock
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: