Skip to content

Conversation

@dqkqd
Copy link
Contributor

@dqkqd dqkqd commented Oct 23, 2025

Which issue does this PR close?

Rationale for this change

We disabled these tests because CI was failing on main.

The test: current_date() = cast(now() as date) was added in #18034
requires now to use configured timezone, but it is only available after #18017.

Since #18017 has been merged, these tests should be enable.

What changes are included in this PR?

This reverts commit a65a2cb.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Oct 23, 2025
Comment on lines +45 to +47
SELECT current_date() = cast(now() as date);
----
true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the failed test. See #18062 (comment)

This checks current_date must equal now::date after setting timezone = +05:00.

I verified CI passed around 2025-10-23 20:30PM UTC, which was 2025-10-24 01:30AM UTC+5.

(It had failed around 2025-10-14 20:03PM UTC = 2025-10-15 01:03AM UTC+5)

@dqkqd dqkqd marked this pull request as ready for review October 23, 2025 20:58
Copy link
Member

@Weijun-H Weijun-H left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @dqkqd

Copy link
Contributor

@zhuqi-lucas zhuqi-lucas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhuqi-lucas zhuqi-lucas added this pull request to the merge queue Oct 24, 2025
Merged via the queue into apache:main with commit 619123a Oct 24, 2025
28 checks passed
@zhuqi-lucas
Copy link
Contributor

Thank you @dqkqd and @Weijun-H !

tobixdev pushed a commit to tobixdev/datafusion that referenced this pull request Nov 2, 2025
## Which issue does this PR close?

- Relates apache#18062 
- Relates apache#18065

## Rationale for this change

We disabled these tests because CI was failing on main.

The test: `current_date() = cast(now() as date)` was added in apache#18034 
requires `now` to use configured timezone, but it is only available
after apache#18017.

Since apache#18017 has been merged, these tests should be enable.

## What changes are included in this PR?

This reverts commit a65a2cb.

## Are these changes tested?

Yes.

## Are there any user-facing changes?
No.
EeshanBembi pushed a commit to EeshanBembi/datafusion that referenced this pull request Nov 24, 2025
## Which issue does this PR close?

- Relates apache#18062 
- Relates apache#18065

## Rationale for this change

We disabled these tests because CI was failing on main.

The test: `current_date() = cast(now() as date)` was added in apache#18034 
requires `now` to use configured timezone, but it is only available
after apache#18017.

Since apache#18017 has been merged, these tests should be enable.

## What changes are included in this PR?

This reverts commit a65a2cb.

## Are these changes tested?

Yes.

## Are there any user-facing changes?
No.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants