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

when writing data into filesystem from queries ,the output files could contain a line of column names

    Details

    • Type: New Feature
    • Status: In Progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Query Processor
    • Labels:
      None

      Description

      For example :
      hive>desc src;
      key string
      value string

      hive>select * from src;
      1 10
      2 20

      hive>set hive.output.markschema=true;
      hive>insert overwrite local directory './test1' select * from src ;
      hive>!ls -l './test1';
      ./test1/_metadata
      ./test1/000000_0

      hive>!cat './test1/_metadata'
      key^Avalue

      hive>!cat './test1/000000_0';
      1^A10
      2^A20

        Attachments

        1. HIVE-4346-1.patch
          6 kB
          caofangkun
        2. HIVE-4346-3.patch
          8 kB
          caofangkun
        3. HIVE-4346-4.patch
          23 kB
          caofangkun

          Issue Links

            Activity

              People

              • Assignee:
                caofangkun caofangkun
                Reporter:
                caofangkun caofangkun
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: