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

Minor: add a test for current_time (no args) #10509

Merged
merged 1 commit into from
May 15, 2024

Conversation

alamb
Copy link
Contributor

@alamb alamb commented May 14, 2024

Which issue does this PR close?

N/A

Rationale for this change

While working with @tisonkun on #10392 I realized there was no test coverage for the current_time form (with no parens). I added a test and a fix to that branch but I want to make sure we don't accidentally break it before that PR lands

What changes are included in this PR?

  1. Add sqllogictest for current_time syntax

Are these changes tested?

All tests

Are there any user-facing changes?

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label May 14, 2024

# Test current_time without parentheses
query B
select current_time = current_time;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is somewhat 🤯 that current_time doesn't require ()

Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

Thank you! LGTM.

Copy link
Contributor

@jayzhan211 jayzhan211 left a comment

Choose a reason for hiding this comment

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

👍

@alamb alamb merged commit 405a5f6 into apache:main May 15, 2024
23 checks passed
findepi pushed a commit to findepi/datafusion that referenced this pull request Jul 16, 2024
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