Skip to content

Commit 3146102

Browse files
committed
Do not infer schema when reading Hive serde table with native data source
1 parent 6170e40 commit 3146102

File tree

1 file changed

+2
-1
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/internal

1 file changed

+2
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ object SQLConf {
584584
}
585585

586586
val HIVE_CASE_SENSITIVE_INFERENCE = buildConf("spark.sql.hive.caseSensitiveInferenceMode")
587+
.internal()
587588
.doc("Sets the action to take when a case-sensitive schema cannot be read from a Hive " +
588589
"table's properties. Although Spark SQL itself is not case-sensitive, Hive compatible file " +
589590
"formats such as Parquet are. Spark SQL must use a case-preserving schema when querying " +
@@ -596,7 +597,7 @@ object SQLConf {
596597
.stringConf
597598
.transform(_.toUpperCase(Locale.ROOT))
598599
.checkValues(HiveCaseSensitiveInferenceMode.values.map(_.toString))
599-
.createWithDefault(HiveCaseSensitiveInferenceMode.INFER_AND_SAVE.toString)
600+
.createWithDefault(HiveCaseSensitiveInferenceMode.NEVER_INFER.toString)
600601

601602
val OPTIMIZER_METADATA_ONLY = buildConf("spark.sql.optimizer.metadataOnly")
602603
.internal()

0 commit comments

Comments
 (0)