From 5b6853fd28bd6b0b9476acfd86daf0cc24945f07 Mon Sep 17 00:00:00 2001 From: comphead Date: Tue, 14 Oct 2025 16:22:41 -0700 Subject: [PATCH 1/2] chore: revert tests --- .../test_files/current_date_timezone.slt | 80 ++++++++++--------- 1 file changed, 41 insertions(+), 39 deletions(-) diff --git a/datafusion/sqllogictest/test_files/current_date_timezone.slt b/datafusion/sqllogictest/test_files/current_date_timezone.slt index 1b9c3cddeecec..c5f3babe8ea44 100644 --- a/datafusion/sqllogictest/test_files/current_date_timezone.slt +++ b/datafusion/sqllogictest/test_files/current_date_timezone.slt @@ -19,62 +19,64 @@ ## current_date with timezone tests ########## +# CI Fails https://github.com/apache/datafusion/issues/18062 + # Test 1: Verify current_date is consistent within the same query (default UTC) -query B -SELECT current_date() = current_date(); ----- -true +#query B +#SELECT current_date() = current_date(); +#---- +#true # Test 2: Verify alias 'today' works the same as current_date -query B -SELECT current_date() = today(); ----- -true +#query B +#SELECT current_date() = today(); +#---- +#true # Test 3: Set timezone to +05:00 and verify current_date is still stable -statement ok -SET datafusion.execution.time_zone = '+05:00'; +#statement ok +#SET datafusion.execution.time_zone = '+05:00'; -query B -SELECT current_date() = current_date(); ----- -true +#query B +#SELECT current_date() = current_date(); +#---- +#true #Test 4: Verify current_date matches cast(now() as date) in the same timezone -query B -SELECT current_date() = cast(now() as date); ----- -true +#query B +#SELECT current_date() = cast(now() as date); +#---- +#true # Test 5: Test with negative offset timezone -statement ok -SET datafusion.execution.time_zone = '-08:00'; +#statement ok +#SET datafusion.execution.time_zone = '-08:00'; query B -SELECT current_date() = today(); ----- -true +#SELECT current_date() = today(); +#---- +#true # Test 6: Test with named timezone (America/New_York) -statement ok -SET datafusion.execution.time_zone = 'America/New_York'; +#statement ok +#SET datafusion.execution.time_zone = 'America/New_York'; -query B -SELECT current_date() = current_date(); ----- -true +#query B +#SELECT current_date() = current_date(); +#---- +#true # Test 7: Verify date type is preserved -query T -SELECT arrow_typeof(current_date()); ----- -Date32 +#query T +#SELECT arrow_typeof(current_date()); +#---- +#Date32 # Test 8: Reset to UTC -statement ok -SET datafusion.execution.time_zone = '+00:00'; +#statement ok +#SET datafusion.execution.time_zone = '+00:00'; -query B -SELECT current_date() = today(); ----- -true +#query B +#SELECT current_date() = today(); +#---- +#true From f01969e13ca0a71cde6adbe6eccb9b54ed78b12c Mon Sep 17 00:00:00 2001 From: comphead Date: Tue, 14 Oct 2025 16:46:04 -0700 Subject: [PATCH 2/2] chore: revert tests --- .../test_files/current_date_timezone.slt | 82 +++++++++---------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/datafusion/sqllogictest/test_files/current_date_timezone.slt b/datafusion/sqllogictest/test_files/current_date_timezone.slt index c5f3babe8ea44..b30373acfaa0e 100644 --- a/datafusion/sqllogictest/test_files/current_date_timezone.slt +++ b/datafusion/sqllogictest/test_files/current_date_timezone.slt @@ -22,61 +22,61 @@ # CI Fails https://github.com/apache/datafusion/issues/18062 # Test 1: Verify current_date is consistent within the same query (default UTC) -#query B -#SELECT current_date() = current_date(); -#---- -#true +# query B +# SELECT current_date() = current_date(); +# ---- +# true # Test 2: Verify alias 'today' works the same as current_date -#query B -#SELECT current_date() = today(); -#---- -#true +# query B +# SELECT current_date() = today(); +# ---- +# true # Test 3: Set timezone to +05:00 and verify current_date is still stable -#statement ok -#SET datafusion.execution.time_zone = '+05:00'; +# statement ok +# SET datafusion.execution.time_zone = '+05:00'; -#query B -#SELECT current_date() = current_date(); -#---- -#true +# query B +# SELECT current_date() = current_date(); +# ---- +# true -#Test 4: Verify current_date matches cast(now() as date) in the same timezone -#query B -#SELECT current_date() = cast(now() as date); -#---- -#true +# Test 4: Verify current_date matches cast(now() as date) in the same timezone +# query B +# SELECT current_date() = cast(now() as date); +# ---- +# true # Test 5: Test with negative offset timezone -#statement ok -#SET datafusion.execution.time_zone = '-08:00'; +# statement ok +# SET datafusion.execution.time_zone = '-08:00'; -query B -#SELECT current_date() = today(); -#---- -#true +# query B +# SELECT current_date() = today(); +# ---- +# true # Test 6: Test with named timezone (America/New_York) -#statement ok -#SET datafusion.execution.time_zone = 'America/New_York'; +# statement ok +# SET datafusion.execution.time_zone = 'America/New_York'; -#query B -#SELECT current_date() = current_date(); -#---- -#true +# query B +# SELECT current_date() = current_date(); +# ---- +# true # Test 7: Verify date type is preserved -#query T -#SELECT arrow_typeof(current_date()); -#---- -#Date32 +# query T +# SELECT arrow_typeof(current_date()); +# ---- +# Date32 # Test 8: Reset to UTC -#statement ok -#SET datafusion.execution.time_zone = '+00:00'; +# statement ok +# SET datafusion.execution.time_zone = '+00:00'; -#query B -#SELECT current_date() = today(); -#---- -#true +# query B +# SELECT current_date() = today(); +# ---- +# true