akshatshenoi-db commented on code in PR #60689:
URL: https://github.com/apache/spark/pull/60689#discussion_r4624253980
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/CSVFileFormat.scala:
##########
@@ -44,8 +44,7 @@ case class CSVFileFormat() extends TextBasedFileFormat with
DataSourceRegister {
options: Map[String, String],
path: Path): Boolean = {
val parsedOptions = getCsvOptions(sparkSession, options)
- // A tar archive is decompressed/unpacked as a sequential stream, so it
must be read as a
- // single split rather than carved into byte ranges.
+ // An archive is read as one sequential stream (entry by entry), so it is
never split.
Review Comment:
Done in 2844ef2d057. All five `isSplitable` comments (Avro, CSV, JSON, text,
XML) now use the suggested sentence.
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/text/TextFileFormat.scala:
##########
@@ -118,9 +118,6 @@ case class TextFileFormat()
SerializableConfiguration.broadcast(sparkSession.sparkContext,
hadoopConf)
val perFileReader = readToUnsafeMem(broadcastedHadoopConf, requiredSchema,
textOptions)
val archiveReader = readArchive(broadcastedHadoopConf, requiredSchema,
textOptions)
- // A tar archive (always a single split, see `isSplitable`) is streamed
entry by entry when
- // archive reads are enabled; otherwise the file is read directly. Archive
scanning is wired
Review Comment:
Done in 2844ef2d057. The note is back, in the `readArchive` scaladoc of
`TextFileFormat`, where the Avro, JSON and XML readers keep theirs.
--
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]