Skip to content

test: Port DateTimeUtilsSuite timestamp format tests in Comet#3780

Merged
parthchandra merged 2 commits intoapache:mainfrom
parthchandra:port-datetime-utils-suite-tests
Mar 24, 2026
Merged

test: Port DateTimeUtilsSuite timestamp format tests in Comet#3780
parthchandra merged 2 commits intoapache:mainfrom
parthchandra:port-datetime-utils-suite-tests

Conversation

@parthchandra
Copy link
Contributor

Which issue does this PR close?

Closes # #3776

Rationale for this change

Spark DateTimeUtilsSuite has many useful tests for string to date and string to timestamp casts which are not being called because they are in the sql/catalyst subproject and are not part of Comet CI.

What changes are included in this PR?

Adds a new test suite to replicate the relevant tests in Comet. The tests pass because the string to timestamp casts are currently marked as invalid and we fall back to Spark. Once all string formats are implemented and the casts are not marked incompatible, these tests will test the native implementation.
The tests currently use checkSparkAnswer and once all formats are supported the tests can be changed to use checkSparkAnswerAndOperator

How are these changes tested?

By running the tests themselves.

Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

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

Nice tests. Thanks @parthchandra

@parthchandra
Copy link
Contributor Author

Nice tests.

They're Spark tests :)

@parthchandra parthchandra merged commit 5f37dfc into apache:main Mar 24, 2026
120 checks passed
@parthchandra
Copy link
Contributor Author

Merged. Thank you @andygrove !

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.

2 participants