apache / cloudberry

One advanced and mature open-source MPP (Massively Parallel Processing) database. Open source alternative to Greenplum Database.
https://cloudberry.apache.org
Apache License 2.0
462 stars 106 forks source link

[Bug] orca cannot generate a plan for query 'select t1.*, t2.* from t1 full join t2 on false where (t1.b < t1.b) is null' #723

Open fanfuxiaoran opened 4 days ago

fanfuxiaoran commented 4 days ago

Cloudberry Database version

create table t1(a int, b int);
create table t2(like t1);
select t1.*, t2.* from t1 full join t2 on false where (t1.b < t1.b) is null;

for query select t1.*, t2.* from t1 full join t2 on false where (t1.b < t1.b) is null; orca failed to generate a plan for it.

What happened

explain select t1.*, t2.* from t1 full join t2 on false where (t1.b < t1.b) is null;
LOG:  statement: explain select t1.*, t2.* from t1 full join t2 on false where (t1.b < t1.b) is null;
LOG:  2024-11-21 11:18:57:010057 CST,THD000,ERROR,"No plan has been computed for required properties",
2024-11-21 11:18:57:011228 CST,THD000,ERROR,"No plan has been computed for required properties",

What you think should happen instead

No response

How to reproduce

create table t1(a int, b int);
create table t2(like t1);
select t1.*, t2.* from t1 full join t2 on false where (t1.b < t1.b) is null;

Operating System

centos7

Anything else

No response

Are you willing to submit PR?

Code of Conduct

github-actions[bot] commented 4 days ago

Hey, @fanfuxiaoran welcome!🎊 Thanks for taking the time to point this out.🙌