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

when output hive table query to HDFS file,users should have a separator of their own choice

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.11.0
    • None
    • CLI
    • None
    • java version "1.6.0_24"
      OpenJDK Runtime Environment (IcedTea6 1.11.11.90) (rhel-1.62.1.11.11.90.el6_4-x86_64)
      OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

    Description

      HIVE-3682 allows user to store output of Hive query to a local file along with delimiters and separators of their choice.
      e.g. insert overwrite local directory '/users/home/XYZ' row format delimited FIELDS TERMINATED BY ',' SELECT * from table_name;

      Storing query output with default separator(\001) to HDFS is possible.
      e.g. insert overwrite directory '/user/xYZ/security' SELECT * from table_name;

      But user can not store output of Hive query to a HDFS directory with delimiters and separators of their choice.
      e.g. insert overwrite directory '/user/xYZ/security' row format delimited FIELDS TERMINATED BY ',' SELECT * from table_name; (Gives ERROR)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sourabhpotnis sourabh potnis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: