shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

can not find owner from table when select from a,b with where condition

Open zero2hj opened this issue 6 years ago • 2 comments

Bug Report

This type SQL select from (subquery)a, (subquery)b where a.id=b.aid will report the error below. It should work as join ... on. Will this be fixed? Thx image

Which version of ShardingSphere did you use?

master

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

proxy

Expected behavior

Actual behavior

Reason analyze (If you can)

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

Example codes for reproduce this issue (such as a github link).

zero2hj avatar Sep 08 '20 07:09 zero2hj

It's doesn't support now, and no plan for enhancement. refer: https://shardingsphere.apache.org/document/current/cn/features/sharding/use-norms/sql/#%E4%B8%8D%E6%94%AF%E6%8C%81%E7%9A%84sql

kimmking avatar Sep 08 '20 08:09 kimmking

@kimmking sorry I don't figure out which one belongs to my case in your ref. Besides how about this one select from (subquery)a join (subquery)b on a.id = b.id where a.id=?. Report the same error. will this be fixed?

zero2hj avatar Sep 08 '20 11:09 zero2hj