-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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-6115] Interval type specifier with zero fractional second precision does not pass validation #3563
Conversation
061d74d
to
e7f63c3
Compare
@@ -143,6 +143,10 @@ public static void checkActualAndReferenceFiles() { | |||
sql("select interval mgr hour as h from emp").ok(); | |||
} | |||
|
|||
@Test void testIntervalSecondNoFractionalPart() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is customary to add a comment with the JIRA issue that is being solved.
Please follow the other examples in this file that start with "Test case for".
Note that everything is important, including the last period.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed.
I am not a SQL expert, but if other dialects accept this, I think it's good. |
…ecision does not pass validation
e7f63c3
to
3a11c7a
Compare
What exactly do you mean regarding SQL dialects support? Since Calcite is a framework for building RDBMS query optimizers, I think it make sense for it to support this feature described in SQL standard, even if some databases would not support it. |
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 1 New issue |
Thanks a lot for review. BTW, do you have a power to trigger |
I am not aware of the Calcite CI running slow tests. I don't know how to do it. |
@LeonidChistov @mihaibudiu The slow tests are trigger by adding a label "slow-tests-needed", see here: calcite/.github/workflows/main.yml Lines 401 to 404 in 8c640da
|
@libenchao Thanks. Do I understand correctly that this test run is not required (in general) to merge a PR? |
They are not, but they will be run when the PR is merged, for changes to core functions that can have a broad impact I'd say it's recommended, in order to catch issues early on without waiting for the What is a "core function" is a fuzzy definition though, you can look for the If anyone has some more precise recommendations on this topic, I guess it would be a great addition to the developer's guide on the website. |
@asolimando thanks a lot for explanation. Could someone help now with merging the PR? |
No description provided.