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
Since upgrade vitess v16.0 to v18.0.2,the join queries of cross keyspace are no longer supported.
for example: sharded corder keyspace and sharded customer keyspace
v 16.0:
mysql> select co.id,co.name from corder.tb1 co join customer.tb1 cu on cu.id=co.id where cu.id=1;
+------+------+
| id | name |
+------+------+
| 1 | ddd |
+------+------+
1 row in set (0.05 sec)
v18.0.2:
mysql> select co.id,co.name from corder.tb1 co join customer.tb1 cu on cu.id=co.id where cu.id=1;
ERROR 1235 (42000): VT12001: unsupported: cross-shard correlated subquery
main branch:
mysql> select co.id,co.name from corder.tb1 co join customer.tb1 cu on cu.id=co.id where cu.id=1;
ERROR 1235 (42000): VT12001: unsupported: cross-shard correlated subquery
ERROR:
mysql> select co.order_id, co.customer_id, co.price from corder.corder co left join customer.customer cu on co.customer_id=cu.customer_id where cu.customer_id=1;
ERROR 1235 (42000): VT12001: unsupported: cross-shard correlated subquery
Binary Version
[vitess@dev2 vitess-main]$ vtgate --version
vtgate version Version: 21.0.0-SNAPSHOT (Git revision branch '') built on Wed Jul 31 19:32:29 CST 2024 by vitess@dev2 using go1.22.5 linux/amd64
isredstar
changed the title
Bug Report: the join queries of cross keyspace are not longer supported in higher than 18.0
Bug Report: the join queries of cross keyspace are not longer supported higher version than release-16.0
Aug 1, 2024
isredstar
changed the title
Bug Report: the join queries of cross keyspace are not longer supported higher version than release-16.0
Bug Report: the join queries of cross keyspace are not longer supported in versions higher than release-16.0
Aug 1, 2024
Overview of the Issue
Since upgrade vitess v16.0 to v18.0.2,the join queries of cross keyspace are no longer supported.
for example: sharded corder keyspace and sharded customer keyspace
v 16.0:
mysql> select co.id,co.name from corder.tb1 co join customer.tb1 cu on cu.id=co.id where cu.id=1;
+------+------+
| id | name |
+------+------+
| 1 | ddd |
+------+------+
1 row in set (0.05 sec)
v18.0.2:
mysql> select co.id,co.name from corder.tb1 co join customer.tb1 cu on cu.id=co.id where cu.id=1;
ERROR 1235 (42000): VT12001: unsupported: cross-shard correlated subquery
main branch:
mysql> select co.id,co.name from corder.tb1 co join customer.tb1 cu on cu.id=co.id where cu.id=1;
ERROR 1235 (42000): VT12001: unsupported: cross-shard correlated subquery
Reproduction Steps
Reproduce it using vitess-tester:
vitess-tester -alsologtostderr -logtostderr -vschema=SrvVSchema_Test.json cross_keyspace_test.test
cross_keyspace_test.test:
SrvVSchema_Test.json:
ERROR:
mysql> select co.order_id, co.customer_id, co.price from corder.corder co left join customer.customer cu on co.customer_id=cu.customer_id where cu.customer_id=1;
ERROR 1235 (42000): VT12001: unsupported: cross-shard correlated subquery
Binary Version
[vitess@dev2 vitess-main]$ vtgate --version vtgate version Version: 21.0.0-SNAPSHOT (Git revision branch '') built on Wed Jul 31 19:32:29 CST 2024 by vitess@dev2 using go1.22.5 linux/amd64
Operating System and Environment details
Log Fragments
No response
The text was updated successfully, but these errors were encountered: