akshatshenoi-db opened a new pull request, #60689: URL: https://github.com/apache/spark/pull/60689
### What changes were proposed in this pull request? A comment-only cleanup of the archive read code: `SupportsArchiveFormat`, the CSV, JSON, XML, text, Avro, Parquet, ORC and binaryFile sources that use it, and their test suites. No code changes. **Comments that went stale as the feature grew beyond tar and CSV are corrected:** - Tar-only wording (for example "a tar archive (`.tar`/`.tar.gz`/`.tgz`)") in code that tar, zip and 7z share. - `FileSourceOptions.archiveFormatEnabled` said that only the CSV data source honors the flag. - Notes written for the streaming zip reader that stopped being true when zip moved to `ZipFile` (SPARK-58394): a `BinaryFileFormat` comment about entries of unknown size, the lazy-open comment in `openZipStream`, and three comments in the zip tests and test utilities. - An inline comment in `AvroUtils` saying Avro has no DSv2 reader. - The `JsonUtils.sample` doc, which named a line-delimited archive inference path that no longer exists. - Test docs that named the wrong formats or tests: three hook docs in `ArchiveReadSuiteBase`, and the class docs of `XMLArchiveReadBase` and `TextArchiveReadBase`. **Inline `//` comments that restate the code next to them are removed or shortened**, such as the comment above each `if (archiveFormatEnabled && isArchivePath(...))` dispatch and the test comments that repeat the test name. Scaladoc is left as it is, apart from the corrections above. ### Why are the changes needed? The stale comments describe behavior the code no longer has, which misleads anyone reading or extending the archive reader. The redundant ones add noise to code that eight formats share. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? No tests were added, since only comments change. I checked that by comparing every touched file before and after with comments stripped: the remaining code is identical. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Isaac This pull request and its description were written by Isaac. -- 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]
