GitHub user cxzl25 opened a pull request:

    https://github.com/apache/spark/pull/20593

    [SPARK-23230][SQL][BRANCH-2.2]When hive.default.fileformat is other kinds 
of file types, create textfile table cause a serde error

    When hive.default.fileformat is other kinds of file types, create textfile 
table cause a serde error.
    We should take the default type of textfile and sequencefile both as 
org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe.
    
    ```
    set hive.default.fileformat=orc;
    create table tbl( i string ) stored as textfile;
    desc formatted tbl;
    
    Serde Library org.apache.hadoop.hive.ql.io.orc.OrcSerde
    InputFormat  org.apache.hadoop.mapred.TextInputFormat
    OutputFormat  org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    ```
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cxzl25/spark default_serde_2.2

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/20593.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #20593
    
----
commit 979323a4e05cfdd5473369f5063967d69c40046c
Author: sychen <sychen@...>
Date:   2018-02-13T01:37:08Z

    When hive.default.fileformat is other kinds of file types,
    create textfile table cause a serde error

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to