Skip to content

CI is failing on main / current_date() = cast(now() as date); #18062

@alamb

Description

@alamb

Describe the bug

An example failure:
https://github.com/apache/datafusion/actions/runs/18508018377/job/52742095719


running 1 test
test engines::conversion::tests::test_big_decimal_to_str ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running bin/sqllogictests.rs (target/ci/deps/sqllogictests-8bd1cd21eda5b184)
External error: 1 errors in file /__w/datafusion/datafusion/datafusion/sqllogictest/test_files/current_date_timezone.slt

1. query result mismatch:
[SQL] SELECT current_date() = cast(now() as date);
[Diff] (-expected|+actual)
-   true
+   false
at /__w/datafusion/datafusion/datafusion/sqllogictest/test_files/current_date_timezone.slt:44



Error: Execution("1 failures\n\nbacktrace:    0: sqllogictests::run_tests::{{closure}}\n   1: tokio::runtime::park::CachedParkThread::block_on::{{closure}}\n   2: tokio::runtime::park::CachedParkThread::block_on\n   3: tokio::runtime::context::blocking::BlockingRegionGuard::block_on\n   4: tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}\n   5: tokio::runtime::context::runtime::enter_runtime\n   6: tokio::runtime::scheduler::multi_thread::MultiThread::block_on\n   7: tokio::runtime::runtime::Runtime::block_on_inner\n   8: tokio::runtime::runtime::Runtime::block_on\n   9: sqllogictests::main\n  10: core::ops::function::FnOnce::call_once\n  11: std::sys::backtrace::__rust_begin_short_backtrace\n  12: std::rt::lang_start::{{closure}}\n  13: std::rt::lang_start_internal\n  14: std::rt::lang_start\n  15: main\n  16: <unknown>\n  17: __libc_start_main\n  18: _start\n")
error: test failed, to rerun pass `-p datafusion-sqllogictest --test sqllogictests`

To Reproduce

No response

Expected behavior

I expect CI to be clean

Additional context

Image

The test was introduced (but passed) in:

It first started failing in the next commit

So I am somewhat confused

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions