alamb commented on code in PR #20237:
URL: https://github.com/apache/datafusion/pull/20237#discussion_r2783332696
##########
datafusion/sqllogictest/test_files/projection_pushdown.slt:
##########
@@ -969,10 +968,9 @@ query TT
EXPLAIN SELECT s['value'] + s['value'] as doubled FROM simple_struct WHERE id
> 2;
----
logical_plan
-01)Projection: __common_expr_1 + __common_expr_1 AS doubled
-02)--Projection: get_field(simple_struct.s, Utf8("value")) AS __common_expr_1
-03)----Filter: simple_struct.id > Int64(2)
-04)------TableScan: simple_struct projection=[id, s],
partial_filters=[simple_struct.id > Int64(2)]
+01)Projection: get_field(simple_struct.s, Utf8("value")) +
get_field(simple_struct.s, Utf8("value")) AS doubled
Review Comment:
this looks like a nicer plan to me (one less level of Projection)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]