kosiew commented on code in PR #19955:
URL: https://github.com/apache/datafusion/pull/19955#discussion_r2729985918
##########
datafusion/common/src/nested_struct.rs:
##########
@@ -323,7 +306,11 @@ fn validate_field_compatibility(
Ok(())
}
-fn has_one_of_more_common_fields(
+/// Check if two field lists have at least one common field by name.
+///
+/// This is useful for validating struct compatibility when casting between
structs,
+/// ensuring that source and target fields have overlapping names.
+pub fn has_one_of_more_common_fields(
Review Comment:
This function is re-used at
https://github.com/kosiew/datafusion/blob/f078129e90a3d7c68bfec0d79ea94c205ddfab92/datafusion/optimizer/src/simplify_expressions/expr_simplifier.rs#L662
--
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]