Uploaded image for project: 'Sqoop (READ-ONLY)'
  1. Sqoop (READ-ONLY)
  2. SQOOP-111

Sqoop Developer Guide inaccurately claims Hive does not support escaping of terminators

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 1.1.0
    • Fix Version/s: 1.2.0
    • Component/s: docs
    • Labels:
      None

      Description

      From the Sqoop Developer Guide:

      "Hive does not support enclosing and escaping characters. You must
      choose unambiguous field and record-terminating delimiters without the
      help of escaping and enclosing characters when working with Hive; this
      is a limitation of Hive's input parsing abilities."

      In fact, Hive does support the ability to define escaping characters:

      CREATE TABLE tab(a STRING, b STRING, c STRING)
      ROW FORMAT DELIMITED
      FIELDS TERMINATED BY ',' ESCAPED BY '
      '
      STORED AS TEXTFILE;

        Attachments

          Activity

            People

            • Assignee:
              arvind Arvind Prabhakar
              Reporter:
              carl Carl Steinbach
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: