Skip to content

Commit 0edfed4

Browse files
authored
Update SparkSqlParser.scala
1 parent 814f679 commit 0edfed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ class SparkSqlAstBuilder(conf: SQLConf) extends AstBuilder {
13401340
val name = conf.getConfString("hive.script.serde",
13411341
"org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe")
13421342
val props = Seq("field.delim" -> "\t")
1343-
val recordHandler = defaultRecordHandler(configKey)
1343+
val recordHandler = Try(conf.getConfString(configKey, configValue)).toOption
13441344
(Nil, Option(name), props, recordHandler)
13451345
}
13461346

0 commit comments

Comments
 (0)