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

SQL COPY command: implement NULL escape sequence handling

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      There should be a way to specify NULL field value in a file, which we import via COPY command.

      A popular solution among vendors for CSV format is to have a special escape sequence for a NULL value in a field: \N for example.

      We need to have a possibility to enable/disable null escape sequence handling for all fields or on per-field basis.

      Syntax example:

      COPY
          ...
          FORMAT CSV
              ...
              [NULL='null-sequence']
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kirill.shirokov Kirill Shirokov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: