Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-634

ctrl-A is the only output delimiter used, regardless of the Hive table structure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 0.3.0
    • None
    • None

    Description

      No matter what the table format, INSERT OVERWRITE LOCAL DIRECTORY will always use ctrl-A delimiters ('\001' ).

      INSERT OVERWRITE LOCAL DIRECTORY '/mnt/daily_timelines' SELECT * FROM daily_timelines;

      where daily_timelines is defined as tab delimited

      CREATE TABLE daily_timelines (
      page_id BIGINT,
      dates STRING,
      pageviews STRING,
      total_pageviews BIGINT)
      ROW FORMAT DELIMITED
      FIELDS TERMINATED BY '\t'
      STORED AS TEXTFILE;

      This page also indicates Hive uses a fixed delimiter, and should be updated:

      http://wiki.apache.org/hadoop/Hive/LanguageManual/DML

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              peteskomoroch Peter Skomoroch
              Votes:
              9 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: