GitHub user dilipbiswal opened a pull request:

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

    [SPARK-17620][SQL] hive.default.fileformat=orc does not set OrcSerde

    ## What changes were proposed in this pull request?
    Make sure the hive.default.fileformat is used to when creating the storage 
format metadata.
    
    Output
    ``` SQL
    scala> spark.sql("drop table tmp_default")
    res0: org.apache.spark.sql.DataFrame = []
    
    scala> spark.sql("SET hive.default.fileformat=orc")
    res1: org.apache.spark.sql.DataFrame = [key: string, value: string]
    
    scala> spark.sql("CREATE TABLE tmp_default(id INT)")
    res2: org.apache.spark.sql.DataFrame = []
    
    scala> spark.sql("DESC EXTENDED tmp_default").collect.foreach(println)
    [id,int,null]
    [,,]
    [# Detailed Table Information,CatalogTable(
        Provider: hive
        Properties: [transient_lastDdlTime=1474498431]
        Storage(Location: file:/tmp_default, InputFormat: 
org.apache.hadoop.hive.ql.io.orc.OrcInputFormat, OutputFormat: 
org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat, Serde: 
org.apache.hadoop.hive.ql.io.orc.OrcSerde, Properties: 
[serialization.format=1])),]
    
    ```
    
    ## How was this patch tested?
    Added new tests to HiveDDLCommandSuite
    


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

    $ git pull https://github.com/dilipbiswal/spark orc

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

    https://github.com/apache/spark/pull/15190.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 #15190
    
----
commit 042a94ec5c85afd36aadac70e32e7f3988819725
Author: Dilip Biswal <dbis...@us.ibm.com>
Date:   2016-09-21T22:50:29Z

    [SPARK-17620] hive.default.fileformat=orc does not set OrcSerde

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to