szehon-ho commented on code in PR #47370:
URL: https://github.com/apache/spark/pull/47370#discussion_r1679926575
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/rules.scala:
##########
@@ -50,7 +52,11 @@ class ResolveSQLOnFile(sparkSession: SparkSession) extends
Rule[LogicalPlan] {
private def resolveDataSource(unresolved: UnresolvedRelation): DataSource = {
val ident = unresolved.multipartIdentifier
- val dataSource = DataSource(sparkSession, paths = Seq(ident.last),
className = ident.head)
+ val dataSource = DataSource(
+ sparkSession,
+ paths = Seq(ident.last),
+ className = ident.head,
+ options = unresolved.options.asCaseSensitiveMap.asScala.toMap)
Review Comment:
I think we can remove `.asCaseSensitiveMap`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]