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

"separatorChar" has no effect in "CREATE TABLE AS SELECT" statement

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0, 2.0.0
    • Component/s: Query Planning
    • Labels:
      None

      Description

      To replicate:

      CREATE TABLE separator_test 
      ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'
      WITH SERDEPROPERTIES ("separatorChar" = "|","quoteChar"="\"","escapeChar"="
      ") 
      STORED AS TEXTFILE
      AS
      SELECT * FROM sample_07;
      

      Then

      hadoop fs -cat /user/hive/warehouse/separator_test/*
      "53-3032","Truck drivers, heavy and tractor-trailer","1693590","37560"
      "53-3033","Truck drivers, light or delivery services","922900","28820"
      "53-3041","Taxi drivers and chauffeurs","165590","22740"
      

      The separator is till "," not "|" as specified.

        Attachments

        1. HIVE-10771.1.patch
          3 kB
          Yongzhi Chen

          Issue Links

            Activity

              People

              • Assignee:
                ychena Yongzhi Chen
                Reporter:
                ychena Yongzhi Chen
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: