LDM-A commented on code in PR #23918:
URL: https://github.com/apache/datafusion/pull/23918#discussion_r3659584322


##########
datafusion/core/src/physical_planner.rs:
##########
@@ -4142,7 +4142,7 @@ mod tests {
             .expect_err("planning error")
             .strip_backtrace();
 
-        insta::assert_snapshot!(e, @r#"Error during planning: Extension 
planner for NoOp created an ExecutionPlan with mismatched schema. LogicalPlan 
schema: DFSchema { inner: Schema { fields: [Field { name: "a", data_type: Int32 
}], metadata: {} }, field_qualifiers: [None], functional_dependencies: 
FunctionalDependencies { deps: [] } }, ExecutionPlan schema: Schema { fields: 
[Field { name: "b", data_type: Int32 }], metadata: {} }"#);
+        insta::assert_snapshot!(e, @r#"Error during planning: Extension 
planner for NoOp created an ExecutionPlan with mismatched schema. LogicalPlan 
schema: DFSchema { inner: Schema { fields: [Field { name: "a", data_type: Int32 
}], metadata: {} }, field_qualifiers: [None], functional_dependencies: 
FunctionalDependencies { deps: [], null_equalities: [] } }, ExecutionPlan 
schema: Schema { fields: [Field { name: "b", data_type: Int32 }], metadata: {} 
}"#);

Review Comment:
   For this as well if we make NullEquality part of FunctionalDependence 
instead of FunctionalDependencies it would create an easier to read error in my 
opinion



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

Reply via email to