[SPARK-34679][DOCS] Add inferTimestamp option to JSON data source options table#56248
Open
brijrajk wants to merge 1 commit into
Open
[SPARK-34679][DOCS] Add inferTimestamp option to JSON data source options table#56248brijrajk wants to merge 1 commit into
brijrajk wants to merge 1 commit into
Conversation
…ions table The `inferTimestamp` JSON read option (default `false`) was absent from the Data Source Options table in sql-data-sources-json.md, despite being a documented option since Spark 3.0.1. Added the missing row after `timestampNTZFormat`, with a description matching the Scaladoc in JSONOptions.scala. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Added the missing `inferTimestamp` option to the Data Source Options table in
`docs/sql-data-sources-json.md`. The option was absent from the table despite
being available since Spark 3.0.1 and referenced in the migration guide.
The new row is placed after `timestampNTZFormat` (the options it relates to)
with the description matching the Scaladoc in `JSONOptions.scala`:
Why are the changes needed?
Users have no way to discover `inferTimestamp` from the official options
reference. The option is already mentioned in the migration guide
(`sql-migration-guide.md`) but was never added to the options table.
Fixes https://issues.apache.org/jira/browse/SPARK-34679
Does this PR introduce any user-facing change?
No. Documentation only.
How was this patch tested?
No code change — documentation only. Verified the option is defined in
`JSONOptions.scala` with `inferTimestamp` as the key name and `false` as the
default.
Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude (Anthropic)