cloud-fan commented on code in PR #47996:
URL: https://github.com/apache/spark/pull/47996#discussion_r1745561973
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/csv/CSVTable.scala:
##########
@@ -37,8 +37,13 @@ case class CSVTable(
userSpecifiedSchema: Option[StructType],
fallbackFileFormat: Class[_ <: FileFormat])
extends FileTable(sparkSession, options, paths, userSpecifiedSchema) {
- override def newScanBuilder(options: CaseInsensitiveStringMap):
CSVScanBuilder =
- CSVScanBuilder(sparkSession, fileIndex, schema, dataSchema, options)
+ override def newScanBuilder(options: CaseInsensitiveStringMap):
CSVScanBuilder = {
+ val finalOptions = this.options.asCaseSensitiveMap().asScala.filterNot {
+ case (k, _) => options.containsKey(k)
Review Comment:
do we need this? I think combining two maps will respect the keys in the
later map.
--
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]