-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 week to UnwrapDateTruncInComparison #21408
base: master
Are you sure you want to change the base?
Add week to UnwrapDateTruncInComparison #21408
Conversation
Arguments.of("year", "<=", "2024-12-31", "<=", "2024-12-31")); | ||
} | ||
|
||
@ParameterizedTest |
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.
Avoid using ParameterizedTest. See how other similar tests are structured
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.
Changed to helper + one test a line. PTAL
|
||
@ParameterizedTest | ||
@MethodSource("compareParams") | ||
public void testDateCompareGreaterThanOrEquals(String unit, String compareOp, String target, String expectedOp, String limit) |
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.
Avoid abbreviations (e.g., expectedOp -> expectedOperator)
4bbbb07
to
edcb9fc
Compare
This pull request has gone a while without any activity. Tagging the Trino developer relations team: @bitsondatadev @colebow @mosabua |
edcb9fc
to
8165c64
Compare
@ebyhr independently we may want to update |
Description
Allow date_trunc optimization for
week
unitAdd unit tests
Additional context and related issues
Release notes
(X) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text: