cloud-fan commented on code in PR #36069:
URL: https://github.com/apache/spark/pull/36069#discussion_r845101632
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/csv/CSVPartitionReaderFactory.scala:
##########
@@ -45,7 +45,10 @@ case class CSVPartitionReaderFactory(
readDataSchema: StructType,
partitionSchema: StructType,
parsedOptions: CSVOptions,
- filters: Seq[Filter]) extends FilePartitionReaderFactory {
+ filters: Seq[Filter])
+ extends FilePartitionReaderFactory(
+ parsedOptions.ignoreCorruptFiles,
+ parsedOptions.ignoreMissingFiles) {
Review Comment:
We can avoid this change, if `CSVOptions` extends `SourceOptions`, and
`FilePartitionReaderFactory` simply get these two flags from the options.
--
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]