You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "caofangkun (JIRA)" <ji...@apache.org> on 2013/06/07 08:43:20 UTC

[jira] [Updated] (HIVE-4346) when writing data into filesystem from queries ,the output files could contain a line of column names

     [ https://issues.apache.org/jira/browse/HIVE-4346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

caofangkun updated HIVE-4346:
-----------------------------

    Attachment: HIVE-4346-4.patch

https://reviews.apache.org/r/10474/

Could anybody  review this patch? 
                
> when writing data into filesystem from queries ,the output files could contain a line of column names 
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-4346
>                 URL: https://issues.apache.org/jira/browse/HIVE-4346
>             Project: Hive
>          Issue Type: New Feature
>          Components: Query Processor
>            Reporter: caofangkun
>            Assignee: caofangkun
>            Priority: Minor
>         Attachments: HIVE-4346-1.patch, HIVE-4346-3.patch, HIVE-4346-4.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira