jackwener commented on issue #2271: URL: https://github.com/apache/arrow-datafusion/issues/2271#issuecomment-1102600707
😅 `optimizer` of datafusion is strange.....We should put the `convert outer join to inner/right/left join` in the `rule`. We can infer `is not null` in the `on clause` or `where clause` and `is not null` can make `outer join` convert. Current: - `convert join` with `on clause` is in `parse_join() in `plan_from_tables()` - `convert join` with `where clause` is in `plan_selection()` This bug is because `parse_join()` use the cols from `extract_join_keys` directly. It's wrong. I have explained them carefully in https://github.com/apache/incubator-doris/pull/8910#issuecomment-1096159553 Easy way is just consider `AND`. Hope those information is helpful to person who want to fix this. -- 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]
