Describe the bug
When two inputs carry the same schema-level metadata key with different values, a pure cross join (CrossJoinExec) over them feeding an aggregate fails with:
Internal error: Physical input schema should be the same as the one converted
from logical input schema. Differences:
- schema metadata differs: (physical) {"pandas": "RIGHT-SCHEMA"} vs (logical) {"pandas": "LEFT-SCHEMA"}
Hash/equijoins and filtered nested-loop joins on the same tables work; only the pure cross-product path is affected.
To Reproduce
No response
Expected behavior
No response
Additional context
xref: #16221 #21127
Describe the bug
When two inputs carry the same schema-level metadata key with different values, a pure cross join (CrossJoinExec) over them feeding an aggregate fails with:
Internal error: Physical input schema should be the same as the one converted
from logical input schema. Differences:
Hash/equijoins and filtered nested-loop joins on the same tables work; only the pure cross-product path is affected.
To Reproduce
No response
Expected behavior
No response
Additional context
xref: #16221 #21127