From 30e48352a0095e8d6d1e3ed8a983561cc73f7c27 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Tue, 27 Oct 2026 15:10:28 -0400 Subject: [PATCH] Update sqlite expectation for NOT IN list containing NULL apache/datafusion#26548 teaches EliminateFilter that `x NOT IN (..., NULL)` can never be TRUE, so the filter becomes an empty relation. The divide by zero inside the IN list is therefore never evaluated and the query now returns no rows, which matches the original sqlite expected result. Co-Authored-By: Claude Fable 5.1 --- data/sqlite/random/aggregates/slt_good_14.slt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/sqlite/random/aggregates/slt_good_14.slt b/data/sqlite/random/aggregates/slt_good_14.slt index 7e61c5b..98c9ff8 100644 --- a/data/sqlite/random/aggregates/slt_good_14.slt +++ b/data/sqlite/random/aggregates/slt_good_14.slt @@ -53879,9 +53879,9 @@ SELECT ALL + col1 + 2 * + + 15 - + col0 * + col1 AS col0 FROM tab2 -4821 -4928 -# Datafusion - Datafusion expected results: -query error DataFusion error: Arrow error: Divide by zero error +query III rowsort SELECT ALL * FROM tab0 WHERE ( + col2 / col2 * + col1 ) NOT IN ( col2 + - col0 / 0, - 1, + - CAST ( NULL AS INTEGER ) ) +---- query I rowsort label-8840 SELECT DISTINCT 68 + col2 + - + col2 / 51 * - 65 FROM tab0 AS cor0