-
Notifications
You must be signed in to change notification settings - Fork 575
[GLUTEN-10397][VL] Add timestampadd support #10400
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
Conversation
checkEvaluation( | ||
TimestampAdd( | ||
"DAY", | ||
Literal(-1), | ||
Literal(repeatedTime + 24 * MICROS_PER_HOUR, TimestampType)), | ||
repeatedTime - MICROS_PER_HOUR) |
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.
Original test:
checkEvaluation(
TimestampAdd(
"DAY",
Literal(-1),
Literal(repeatedTime + 24 * MICROS_PER_HOUR, TimestampType)),
repeatedTime)
checkEvaluation( | ||
TimestampAdd( | ||
"MONTH", | ||
Literal(-1), | ||
Literal(repeatedTime + 30 * MICROS_PER_DAY, TimestampType)), | ||
repeatedTime - MICROS_PER_HOUR) |
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.
Original test:
checkEvaluation(
TimestampAdd(
"MONTH",
Literal(-1),
Literal(repeatedTime + 30 * MICROS_PER_DAY, TimestampType)),
repeatedTime)
Run Gluten ClickHouse CI on ARM |
fix fix fix fix
Run Gluten ClickHouse CI on ARM |
@@ -631,6 +631,7 @@ class ClickHouseTestSettings extends BackendTestSettings { | |||
.exclude("SPARK-37552: convert a timestamp_ntz to another time zone") | |||
.exclude("SPARK-38195: add a quantity of interval units to a timestamp") | |||
.exclude("SPARK-38284: difference between two timestamps in units") | |||
.exclude("SPARK-42635: timestampadd near daylight saving transition") |
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.
Why CH backend also exclude the test? What's the change for CH?
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.
Previously, CH only supported 3.3. This spark test was added in 3.4.
@jinchengchenghh Thanks, merge into main. |
What changes were proposed in this pull request?
(Fixes: #10397)
How was this patch tested?
UT.