Skip to content

[SPARK-47394][SQL] Support TIMESTAMP WITH TIME ZONE for H2Dialect - #45516

Closed
yaooqinn wants to merge 1 commit into
apache:masterfrom
yaooqinn:SPARK-47394
Closed

yaooqinn wants to merge 1 commit into
apache:masterfrom
yaooqinn:SPARK-47394

Conversation

@yaooqinn

@yaooqinn yaooqinn commented Mar 14, 2024 •

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Following the guidelines of SPARK-47375, this PR supports TIMESTAMP WITH TIME ZONE for H2Dialect and maps it to TimestampType regardless of the option preferTimestampNTZ

https://www.h2database.com/html/datatypes.html#timestamp_with_time_zone_type

Why are the changes needed?

H2Dialect improvement, we currently don't have a default mapping for java.sql.Types.TIME_WITH_TIMEZONE, TIMESTAMP_WITH_TIMEZONE

Does this PR introduce any user-facing change?

no

How was this patch tested?

new tests

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

no

@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. Thank you, @yaooqinn .

@yaooqinn
yaooqinn deleted the SPARK-47394 branch March 14, 2024 14:53
@yaooqinn

Copy link
Copy Markdown
Member Author

Thank you @dongjoon-hyun

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.

2 participants