zettadb / kunlun

KunlunBase is a distributed relational database management system(RDBMS) with complete NewSQL capabilities and robust transaction ACID guarantees and is compatible with standard SQL. Applications which used PostgreSQL or MySQL can work with KunlunBase as-is without any code change or rebuild because KunlunBase supports both PostgreSQL and MySQL connection protocols and DML SQL grammars. MySQL DBAs can quickly work on a KunlunBase cluster because we use MySQL as storage nodes of KunlunBase. KunlunBase can elastically scale out as needed, and guarantees transaction ACID under error conditions, and KunlunBase fully passes TPC-C, TPC-H and TPC-DS test suites, so it not only support OLTP workloads but also OLAP workloads. Application developers can use KunlunBase to build IT systems that handles terabytes of data, without any effort on their part to implement data sharding, distributed transaction processing, distributed query processing, crash safety, high availability, strong consistency, horizontal scalability. All these powerful features are provided by KunlunBase. KunlunBase supports powerful and user friendly cluster management, monitor and provision features, can be readily used as DBaaS.
http://www.kunlunbase.com
Apache License 2.0
143 stars 20 forks source link

Illegal pushdown of placeholdervar; table alias conflict #566

Open jd-zhang opened 2 years ago

jd-zhang commented 2 years ago

Issue migrated from trac ticket # 250

component: computing nodes | priority: major

2021-11-25 11:25:19: smith created the issue


abc=# explain verbose select * from t1 left join (select coalesce(b,1) as a from t1 where t1.a=1)t2 on t2.a = 1; QUERY PLAN



RemoteJoin Left Join (cost=0.00..0.00 rows=0 width=230) Output: t1.a, t1.b, t1.c, "RemoteJoin".a Filter: ((COALESCE(t1_1.b, 1) # 1) AND (t11.a1)) Shard: 1 Remote SQL: select t1.a, t1.b, t1.c, Coalesce(t1.b,1) from ( abc$$public.t1 t1 LEFT JOIN abc$$_public.t1 t1 ON ( Coalesce(t1.b,1) # 1) AND (t1.a1)) where ( Coalesce(t1.b,1) = 1 ) AND (t1.a = 1) (4 rows)

abc=# select * from t1 left join (select coalesce(b,1) as a from t1 where t1.a=1)t2 on t2.a = 1; ERROR: Kunlun-db: MySQL storage node (1, 3) returned error: 1066, Not unique table/alias: 't1'. abc=#

jd-zhang commented 2 years ago

2021-11-26 16:16:23: @david-zhao changed component from DBA GUI to computing nodes

jd-zhang commented 2 years ago

2021-11-26 16:16:23: @david-zhao

jd-zhang commented 2 years ago

2021-11-26 16:16:23: @david-zhao set owner to david

jd-zhang commented 2 years ago

2021-11-26 16:16:23: @david-zhao changed severity from trivial to normal

jd-zhang commented 2 years ago

2021-12-10 14:16:40: @david-zhao

jd-zhang commented 2 years ago

2021-12-10 14:16:40: @david-zhao changed owner from david to smith

jd-zhang commented 2 years ago

2021-12-10 14:16:40: @david-zhao changed status from new to assigned

jd-zhang commented 2 years ago

2021-12-16 11:32:39: smith changed status from assigned to accepted