You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# FilterExec can track equality of non-column expressions.
1390
+
# plan below shouldn't have a SortExec because given column 'a' is ordered.
1391
+
# 'CAST(ROUND(b) as INT)' is also ordered. After filter is applied.
1392
+
query TT
1393
+
EXPLAIN SELECT *
1394
+
FROM annotated_data_finite2
1395
+
WHERE CAST(ROUND(b) as INT) = a
1396
+
ORDER BY CAST(ROUND(b) as INT);
1397
+
----
1398
+
logical_plan
1399
+
Sort: CAST(round(CAST(annotated_data_finite2.b AS Float64)) AS Int32) ASC NULLS LAST
1400
+
--Filter: CAST(round(CAST(annotated_data_finite2.b AS Float64)) AS Int32) = annotated_data_finite2.a
1401
+
----TableScan: annotated_data_finite2 projection=[a0, a, b, c, d], partial_filters=[CAST(round(CAST(annotated_data_finite2.b AS Float64)) AS Int32) = annotated_data_finite2.a]
1402
+
physical_plan
1403
+
SortPreservingMergeExec: [CAST(round(CAST(b@2 AS Float64)) AS Int32) ASC NULLS LAST]
1404
+
--CoalesceBatchesExec: target_batch_size=8192
1405
+
----FilterExec: CAST(round(CAST(b@2 AS Float64)) AS Int32) = a@1
0 commit comments