You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for non-column key for equijoin when eliminating cross join to inner join #4442
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Currently datafusion support to rewrite cross join to inner join. For example:
select*from test0 as t0 cross join test1 as t1 wheret0.a=t1.a;
select*from test0 as t0 cross join test1 as t1 wheret0.b=t1.b;
...
But only when the join keys are column, so the following sql will not rewrite to inner join.
select*from test0 as t0 cross join test1 as t1 wheret0.a+1=t1.a*2;
select*from test0 as t0 cross join test1 as t1 wheret0.a*2=t1.a-1;
...
Describe the solution you'd like
Add support for non-column key for equijoin when eliminating cross join to inner join
changed the title [-]Add support for non-column key for equijoin in eliminating cross join to inner join [/-][+]Add support for non-column key for equijoin when eliminating cross join to inner join [/+]on Nov 30, 2022
Activity
[-]Add support for non-column key for equijoin in eliminating cross join to inner join [/-][+]Add support for non-column key for equijoin when eliminating cross join to inner join [/+]