westonpace commented on issue #12736:
URL: https://github.com/apache/datafusion/issues/12736#issuecomment-2613005807
I'm not sure if this is related or not but I encountered an error during
optimization:
```
Error: join_selection caused by Internal error: PhysicalOptimizer rule
'join_selection' failed, due to generate a different schema, original schema:
Schema { fields: [Field { name: "a", ... }], metadata:
{metadata_from_table_one}, new schema: Schema { fields: [Field { name: "a", ...
}], metadata: {metadata_from_table_two}. This was likely caused by a bug in
DataFusion's code and we would welcome that you file an bug report in our issue
tracker
```
I think the join operator is either returning the metadata from the first or
second input and so an optimization that swaps the join order results in the
output schema of the join operator changing and this causes the optimizer to
bail.
--
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]