Github user dongjoon-hyun commented on a diff in the pull request:
https://github.com/apache/spark/pull/19499#discussion_r155399571
--- Diff: sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveUtils.scala
---
@@ -106,7 +106,7 @@ private[spark] object HiveUtils extends Logging {
.doc("When set to true, the built-in ORC reader and writer are used to
process " +
"ORC tables created by using the HiveQL syntax, instead of Hive
serde.")
.booleanConf
- .createWithDefault(false)
+ .createWithDefault(true)
--- End diff --
On the JIRA, there is a result on 2.1.1 and 2.2.0. And the following is the
result on 2.2.1.
```scala
scala> sql("set spark.sql.hive.convertMetastoreOrc=true")
scala> spark.table("default.test").printSchema
root
|-- id: long (nullable = true)
|-- name: string (nullable = true)
|-- state: string (nullable = true)
scala> spark.version
res2: String = 2.2.1
```
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]