dmitrybugakov commented on issue #12468:
URL: https://github.com/apache/datafusion/issues/12468#issuecomment-2430143245

   The query analyzer coerces types as expected.
   
   ```
   Projection: t1.v1
     Inner Join: Using CAST(t1.v1 AS Utf8View) = t2.v1
       SubqueryAlias: t1
         TableScan: table1 projection=[v1]
       SubqueryAlias: t2
         TableScan: table1_stringview projection=[v1]
   ```
   
   However, the `EliminateCrossJoin` optimizer rule converts this inner join 
into a cross join for some reason, which seems to be incorrect.
   
   
https://github.com/apache/datafusion/blob/818ce3f01efe1213a9a1eda5dff1542bb9d457f7/datafusion/optimizer/src/eliminate_cross_join.rs#L78


-- 
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]

Reply via email to