feichai0017 opened a new pull request, #20945: URL: https://github.com/apache/datafusion/pull/20945
## Summary This PR avoids inserting extraneous casts during function argument coercion when two nested types are structurally equivalent but differ only in nested field names or metadata. Specifically, it: - treats equivalent nested `DataType`s as matching during UDF argument coercion - avoids rewriting such arguments with unnecessary `CAST`s - adds regression coverage in both `datafusion-expr` and `datafusion-optimizer` Closes #19943. ## Tests - `cargo test -p datafusion-optimizer` - `./dev/rust_lint.sh` - `cargo test -p datafusion-expr` currently fails on an existing snapshot mismatch in `logical_plan::plan::tests::test_display_pg_json` on the current `main` baseline, unrelated to this change -- 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]
