Skip to content

[SPARK-47375][Doc][FollowUp] Fix a mistake in JDBC's preferTimestampNTZ option doc - #45510

Closed
gengliangwang wants to merge 2 commits into
apache:masterfrom
gengliangwang:reviseJdbcDoc
Closed

gengliangwang wants to merge 2 commits into
apache:masterfrom
gengliangwang:reviseJdbcDoc

Conversation

@gengliangwang

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Fix a mistake in JDBC's preferTimestampNTZ option doc

Why are the changes needed?

Fix a mistake in doc

Does this PR introduce any user-facing change?

No

How was this patch tested?

Just doc change

Was this patch authored or co-authored using generative AI tooling?

No

When the option is set to <code>true</code>, TIMESTAMP WITHOUT TIME ZONE type are inferred as Spark's TimestampNTZ type.
Otherwise, it is interpreted as Spark's Timestamp type(equivalent to TIMESTAMP WITHOUT LOCAL TIME ZONE).
This setting specifically affects only the inference of TIMESTAMP WITHOUT TIME ZONE data type. Both TIMESTAMP WITHOUT LOCAL TIME ZONE and TIMESTAMP WITH TIME ZONE data types are consistently interpreted as Spark's Timestamp type regardless of this setting.
Otherwise, it is interpreted as Spark's Timestamp type(equivalent to TIMESTAMP WITH LOCAL TIME ZONE).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo in L371 are inferred -> is inferred

@yaooqinn

Copy link
Copy Markdown
Member

It seems that we missed TIME [W/ W/O] TZ

@yaooqinn

Copy link
Copy Markdown
Member

Merged to master.

Thank you @gengliangwang @HyukjinKwon

@yaooqinn yaooqinn closed this in 63b79c1 Mar 14, 2024
yaooqinn pushed a commit that referenced this pull request Mar 14, 2024
…TZ option doc

### What changes were proposed in this pull request?

Fix a mistake in JDBC's preferTimestampNTZ option doc

### Why are the changes needed?

Fix a mistake in doc

### Does this PR introduce _any_ user-facing change?

No
### How was this patch tested?

Just doc change
### Was this patch authored or co-authored using generative AI tooling?

No

Closes #45510 from gengliangwang/reviseJdbcDoc.

Authored-by: Gengliang Wang <gengliang@apache.org>
Signed-off-by: Kent Yao <yao@apache.org>
(cherry picked from commit 63b79c1)
Signed-off-by: Kent Yao <yao@apache.org>
yaooqinn pushed a commit that referenced this pull request Mar 14, 2024
…TZ option doc

### What changes were proposed in this pull request?

Fix a mistake in JDBC's preferTimestampNTZ option doc

### Why are the changes needed?

Fix a mistake in doc

### Does this PR introduce _any_ user-facing change?

No
### How was this patch tested?

Just doc change
### Was this patch authored or co-authored using generative AI tooling?

No

Closes #45510 from gengliangwang/reviseJdbcDoc.

Authored-by: Gengliang Wang <gengliang@apache.org>
Signed-off-by: Kent Yao <yao@apache.org>
(cherry picked from commit 63b79c1)
Signed-off-by: Kent Yao <yao@apache.org>
@yaooqinn

Copy link
Copy Markdown
Member

Added to branch-3.4/3.5 too, according #45502 (comment)

@dongjoon-hyun dongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants