wgy8283335 opened a new issue #12581:
URL: https://github.com/apache/shardingsphere/issues/12581
## Feature Request
### Describe the feature you would like.
SqlNodeConvertEngine.convert() can not parse SQL with subquery correctly.
So, we should add some logic when processing the subquery.
SqlNodeConverter in
'org.apache.shardingsphere.infra.optimize.core.convert.converter' could not
parse subquery.
For example:
SELECT_SQL_SUBQUERY_WHERE_EXISTS =
"SELECT t_order_federate.order_id, t_order_federate.user_id "
+ "FROM t_order_federate "
+ "WHERE EXISTS (SELECT * FROM t_user_info WHERE
t_order_federate.user_id = t_user_info.user_id)";
SELECT_SQL_SUBQUERY_FROM =
"SELECT t_order_federate.order_id, t_order_federate.user_id,
u.user_id "
+ "FROM t_order_federate, (SELECT * FROM t_user_info) as
u "
+ "WHERE t_order_federate.user_id = u.user_id ";
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]