Skip to content

CrossJoinExec merges schema metadata inconsistently with the logical plan #23434

Description

@fangchenli

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions