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

[CALCITE-6345] Intervals with more than 100 years are not supported #3743

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

mihaibudiu
Copy link
Contributor

No description provided.

@mihaibudiu
Copy link
Contributor Author

Does anyone want to comment on this PR?
The question is more about what the correct behavior should be. If we agree that this is the correct behavior, then we should take this PR.

@@ -870,8 +870,6 @@ public void subTestIntervalYearNegative() {

// Field value out of range
// (default, explicit default, alt, neg alt, max, neg max)
f.wholeExpr("INTERVAL '100' YEAR")
Copy link
Contributor

Choose a reason for hiding this comment

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

A small question, whether to put the supported cases separately in an executable single test instead of deleting them directly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is the suggestion to convert these into positive tests? I can do that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, recommend keeping the test case as positive tests

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 have added the removed tests back as positive tests, but I have kept them in the same place in the code.
I could move them to separate functions too if that's clearer.

@mihaibudiu mihaibudiu merged commit b4bcd3b into apache:main Apr 17, 2024
15 of 16 checks passed
@mihaibudiu mihaibudiu deleted the issue6345 branch April 17, 2024 20:09
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