berkaysynnada commented on code in PR #10088:
URL: 
https://github.com/apache/arrow-datafusion/pull/10088#discussion_r1566832638


##########
datafusion/physical-expr/src/equivalence/projection.rs:
##########
@@ -67,6 +67,9 @@ impl ProjectionMapping {
                             // Conceptually, `source_expr` and `expression` 
should be the same.
                             let idx = col.index();
                             let matching_input_field = input_schema.field(idx);
+                            if col.name() != matching_input_field.name() {
+                                return 
Err(DataFusionError::Internal(format!("Input field name {} does not match with 
the projection expression {}",matching_input_field.name(),col.name())));
+                            }

Review Comment:
   This check does not exist before. Now, input field names and projection 
expressions must match.



-- 
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]

Reply via email to