Skip to content

Conversation

zml1206
Copy link
Contributor

@zml1206 zml1206 commented Aug 11, 2025

What changes were proposed in this pull request?

(Fixes: #10397)

How was this patch tested?

UT.

@github-actions github-actions bot added CORE works for Gluten Core VELOX CLICKHOUSE labels Aug 11, 2025
Copy link

#10397

@zml1206 zml1206 marked this pull request as draft August 11, 2025 04:16
@zml1206 zml1206 marked this pull request as ready for review August 12, 2025 06:36
Comment on lines +543 to +548
checkEvaluation(
TimestampAdd(
"DAY",
Literal(-1),
Literal(repeatedTime + 24 * MICROS_PER_HOUR, TimestampType)),
repeatedTime - MICROS_PER_HOUR)
Copy link
Contributor Author

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)

Comment on lines +559 to +564
checkEvaluation(
TimestampAdd(
"MONTH",
Literal(-1),
Literal(repeatedTime + 30 * MICROS_PER_DAY, TimestampType)),
repeatedTime - MICROS_PER_HOUR)
Copy link
Contributor Author

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)

Copy link

Run Gluten ClickHouse CI on ARM

@apache apache deleted a comment from github-actions bot Aug 12, 2025
@apache apache deleted a comment from github-actions bot Aug 12, 2025
@apache apache deleted a comment from github-actions bot Aug 12, 2025
@apache apache deleted a comment from github-actions bot Aug 12, 2025
Copy link

Run Gluten ClickHouse CI on ARM

@zml1206 zml1206 requested a review from zhouyuan August 12, 2025 13:18
@@ -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")
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@zml1206
Copy link
Contributor Author

zml1206 commented Aug 13, 2025

@jinchengchenghh Thanks, merge into main.

@zml1206 zml1206 merged commit a305ba4 into apache:main Aug 13, 2025
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLICKHOUSE CORE works for Gluten Core VELOX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[VL] Add timestampadd support
2 participants