Skip to content

Commit 93a13cc

Browse files
adriangbclaude
andcommitted
test: apache#25329 filter case now evaluates the call once
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent bd62749 commit 93a13cc

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎datafusion/sqllogictest/test_files/volatile_evaluations.slt‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,8 @@ SELECT evaluations();
158158
----
159159
10
160160

161-
# https://github.com/apache/datafusion/issues/25329
162-
# Known bug: in a Filter, leaf extraction copies the call into the extracted
163-
# `get_field`, so it is evaluated two times. The count must be 10.
161+
# https://github.com/apache/datafusion/issues/25329: in a Filter, leaf
162+
# extraction must not copy the call into the extracted `get_field`.
164163
query I
165164
SELECT count(*) FROM (SELECT named_struct('x', a, 'y', a) AS s FROM t)
166165
WHERE counted_immutable(s) IS NOT NULL AND counted_immutable(s)['x'] > 5;
@@ -170,7 +169,7 @@ WHERE counted_immutable(s) IS NOT NULL AND counted_immutable(s)['x'] > 5;
170169
query I
171170
SELECT evaluations();
172171
----
173-
20
172+
10
174173

175174
statement ok
176175
DROP TABLE t;

0 commit comments

Comments
 (0)