-
Notifications
You must be signed in to change notification settings - Fork 141
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
Fixed DateTimeFunctionTest.testWeekOfYearWithTimeType and YearWeekTestt.testYearWeekWithTimeType Test Failures #3235
Fixed DateTimeFunctionTest.testWeekOfYearWithTimeType and YearWeekTestt.testYearWeekWithTimeType Test Failures #3235
Conversation
…t.testYearWeekWithTimeType test failures Signed-off-by: Kenrick Yap <[email protected]>
core/src/test/java/org/opensearch/sql/expression/datetime/DateTimeFunctionTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Kenrick Yap <[email protected]>
@kenrickyap could this patch address the flaky test listed in and workaround by PR #3225? If yes, please update that test too. |
@LantaoJin I have tried to apply the same logic but for some reason the unit test is still failing after I remove the check for January and December. Will spend a little more time to find a solution! |
core/src/test/java/org/opensearch/sql/expression/datetime/DateTimeTestBase.java
Outdated
Show resolved
Hide resolved
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.
any update?
Signed-off-by: Kenrick Yap <[email protected]>
Have found fix for #3225. However, in finding the fix have identified inconsistency of behaviour between extract and yearweek implementation. Specifically, I believe it would be best to align the behaviour of extract and yearweek. However as the current test are failing and preventing other PRs from being merge, we should merge this ticket asap and aim to align function behaviour in another ticket |
@YANG-DB @acarbonetto @LantaoJin would we be able to review and merge this ticket? Currently the above unit tests are failing for #3230 |
This as a separate bug with reference to the work here. Aligning implementation for Will raise a BUG and get this moving forward as it is blocking further development. |
core/src/test/java/org/opensearch/sql/expression/datetime/DateTimeTestBase.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
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.
CI failed on BWC, doesn't seem related though
Execution failed for task ':integ-test:sqlBwcCluster#mixedClusterTask'.
> `cluster{:integ-test:sqlBwcCluster0}` failed to wait for cluster health yellow after 40 SECONDS
IO error while waiting cluster
503 Service Unavailable
No it is not. See: #3184 |
Description
Certain tests failed due to inconsistencies with how ISO 8601 and how opensearch sql calculates number of weeks since start of year. Specifically ISO 8601 calculates weeks using the following criteria:
Whereas YEARWEEK counts only full weeks, where weeks start on Sunday. To fix the discrepancy we find the first Sunday of the year and start counting weeks from that date.
Related Issues
Resolves #2477
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.