Uh oh!
There was an error while loading. Please reload this page.
[SPARK-23230][SQL]When hive.default.fileformat is other kinds of file types, create textfile table cause a serde error - #20406
[SPARK-23230][SQL]When hive.default.fileformat is other kinds of file types, create textfile table cause a serde error#20406cxzl25 wants to merge 1 commit into
Conversation
….hadoop.hive.serde2.lazy.LazySimpleSerDe
gatorsmile
commented
Jan 27, 2018
ok to test |
gatorsmile
commented
Jan 27, 2018
Also cc @dongjoon-hyun |
SparkQA
commented
Jan 27, 2018
Test build #86736 has finished for PR 20406 at commit
|
cxzl25
commented
Feb 11, 2018
ping @gatorsmile@dongjoon-hyun It failed because it used the wrong SERDE |
dongjoon-hyun
commented
Feb 11, 2018
Thank you for contribution, @cxzl25 . Could you update the title based on your statement?
|
| assert(serde == Some("org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe")) | ||
| } | ||
| withSQLConf("hive.default.fileformat" -> "orc") { |
There was a problem hiding this comment.
Please test with all possible values which are supported by Spark.
There was a problem hiding this comment.
Actually, this PR does not need to improve the test coverage. What we really need to do is to confirm whether Hive's default serde are the ones added by this PR. Anybody can run it and post the results here?
There was a problem hiding this comment.
hive.default.serde
Default Value: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
Description: The default SerDe Hive will use for storage formats that do not specify a SerDe.
hive cli
set hive.default.fileformat=orc;
create table tbl( i string ) stored as textfile;
desc formatted tbl;
SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
InputFormat: org.apache.hadoop.mapred.TextInputFormat
OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
dongjoon-hyun
commented
Feb 12, 2018
Thank you for updating the title, @cxzl25 . |
LGTM Thanks! Merged to master/2.3 |
…e 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 ``` Author: sychen <sychen@ctrip.com> Closes#20406 from cxzl25/default_serde. (cherry picked from commit 4104b68) Signed-off-by: gatorsmile <gatorsmile@gmail.com>
gatorsmile
commented
Feb 13, 2018
Could you please submit a separate PR to 2.2? Thanks! |
cxzl25
commented
Feb 13, 2018
Thanks for your help , @dongjoon-hyun@gasparms . |
This is a trivial bug fix. I am fine if anybody wants to revert it from Spark 2.3.0, merge it back to Spark 2.3.1 later. |
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.