Github user jinxing64 commented on a diff in the pull request:
https://github.com/apache/spark/pull/19652#discussion_r148749862
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala ---
@@ -1485,21 +1487,27 @@ class SparkSqlAstBuilder(conf: SQLConf) extends
AstBuilder(conf) {
case null =>
// Use default (serde) format.
- val name = conf.getConfString("hive.script.serde",
- "org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe")
+ val name = if (isInFormat) {
+ conf.getConfString("hive.script.serde",
+ "org.apache.hadoop.hive.serde2.DelimitedJSONSerDe")
--- End diff --
`DelimitedJSONSerDe` doesn't support deserialize.
Use `DelimitedJSONSerDe` for input SerDe and `LazySimpleSerDe` for output
SerDe.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]