Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for date_part on columns + timestamps with / without timezones #13732

Merged
merged 4 commits into from
Dec 12, 2024

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Dec 11, 2024

Which issue does this PR close?

Rationale for this change

It wasn't clear to me that there is coverage for date_part with timestamps that are:

  1. Have an explicit, UTC timezone
  2. Have an explicit, non UTC timezone

What changes are included in this PR?

Add coverage for:

  1. Timestamps an explicit, UTC timezone
  2. Timestamps a, non UTC timezone
  3. Add new tests from Simplify type signatures using TypeSignatureClass for mixed type function signature #13372

Are these changes tested?

Only tests

Are there any user-facing changes?

No, only tests

Copy link
Member

@findepi findepi left a comment

Choose a reason for hiding this comment

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

LGTM

@vgapeyev can PTAL?

@@ -876,3 +1070,5 @@ true

query error DataFusion error: Internal error: unit Nanosecond not supported
SELECT (date_part('nanosecond', now()) = EXTRACT(nanosecond FROM now()))


Copy link
Member

Choose a reason for hiding this comment

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

git encourages against trailing empty lines
We could add file ending normalization to slt --complete mode.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the trailing whitespace in bc90fcc

@jayzhan211
Copy link
Contributor

I test with #13372 and all test here pass

@alamb alamb merged commit aeddbd9 into apache:main Dec 12, 2024
25 checks passed
@alamb alamb deleted the alamb/new_date_part_tests branch December 12, 2024 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants