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

SQL COPY command: implement CSV format options

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: sql
    • Labels:
      None

      Description

      The following options can be implemented for the CSV format:

      • Line separator pattern
      • Field separator pattern
      • Set of quote characters
      • Escape sequence start character
      • Line comment character

      Escape sequences support is important for this feature. There is a draft code for handling escape sequences in a branch called ignite-7372 (see IGNITE-7372 for details).

      Syntax example:

      COPY
          ...
          FORMAT CSV
              [FIELDSEP='column-separators-regexp']
              [LINESEP='row-separators-regexp']
              [QUOTE='quote-chars']
              [ESCAPE='escape-char']
              [COMMENT='line-comment-char']
      

      We may also want:

      • Line comments handling
      • Spaces trimming
      • Empty lines skipping

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kirill.shirokov Kirill Shirokov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 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 - 20m
                  20m