Skip to content

fix: fix string to timestamp cast for UTC timestamps#3656

Draft
parthchandra wants to merge 3 commits intoapache:mainfrom
parthchandra:cast-timestamp
Draft

fix: fix string to timestamp cast for UTC timestamps#3656
parthchandra wants to merge 3 commits intoapache:mainfrom
parthchandra:cast-timestamp

Conversation

@parthchandra
Copy link
Contributor

@parthchandra parthchandra commented Mar 10, 2026

Which issue does this PR close?

Part of #376

Rationale for this change

Part of support for spark 4.0

What changes are included in this PR?

Adds missing Ansi support for cast string to timestamp. Also adds a new error explicitly reporting invalid input for cast to timestamp. (previously we were reporting invalid numeric format).
Also enables the tests for UTC timestamps.
The cast is still marked invalid because some timestamp formats are still not supported. Also, timezone handling is not complete.

How are these changes tested?

Updated unit test

@parthchandra parthchandra marked this pull request as draft March 10, 2026 21:03
@parthchandra parthchandra changed the title fix: fix error reporting for string to timestamp cast fix: fix string to timestamp cast for UTC timestamps Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant