Github user liancheng commented on the pull request:

    https://github.com/apache/spark/pull/7210#issuecomment-123663287
  
    @watermen  To be more specific, I was talking about something like this:
    
    ```sql
    CREATE TABLE t1 (key INT, value STRING)
    ROW FORMAT DELIMITED FIELDS TERMINATED BY ','
    STORED AS
        INPUTFORMAT 'org.apache.hadoop.mapred.lib.CombineTextInputFormat'
        OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat'
    ;
    ```
    
    Tested this against Hive 0.13.1 + Hadoop 2.4.1. Made a test file 
`/tmp/test.txt`:
    
    ```
    1,hello
    2,world
    ```
    
    Load it into `t1` and query it:
    
    ```
    hive> LOAD DATA LOCAL INPATH '/tmp/test.txt' INTO TABLE t1;
    ...
    
    hive> SELECT * FROM t1;
    OK
    1       hello
    2       world
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to