Yaohua628 commented on code in PR #36069:
URL: https://github.com/apache/spark/pull/36069#discussion_r842415241
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/csv/CSVOptions.scala:
##########
@@ -232,6 +232,12 @@ class CSVOptions(
val unescapedQuoteHandling: UnescapedQuoteHandling =
UnescapedQuoteHandling.valueOf(parameters
.getOrElse("unescapedQuoteHandling",
"STOP_AT_DELIMITER").toUpperCase(Locale.ROOT))
+ val ignoreCorruptFiles: Boolean =
parameters.get("ignoreCorruptFiles").map(_.toBoolean)
Review Comment:
Maybe we could have a common trait for those file-based options (CSVOptions,
JSONOptions, etc), and pass it to `FilePartitionReaderFactory `,
`FilePartitionReader `, WDYT?
--
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]