You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "GuiwenChen (via GitHub)" <gi...@apache.org> on 2024/12/29 14:53:55 UTC
[I] Can not support DML operation with multiple tables [shardingsphere]
GuiwenChen opened a new issue, #34204:
URL: https://github.com/apache/shardingsphere/issues/34204
## Bug Report
**For English only**, other languages will not accept.
Before report a bug, make sure you have:
- Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues).
- Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will **close it**.
Please answer these questions before submitting your issue. Thanks!
### Which version of ShardingSphere did you use?
5.5.1
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
### Expected behavior
supported
### Actual behavior
### Reason analyze (If you can)
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
When I run the following SQL:
`
UPDATE sync
SET
is_deleted = 1
WHERE
company_id = 2
AND sync.id IN (SELECT
s.id
FROM
sync s
WHERE
s.is_deleted = 0 AND s.company_id = 2
AND s.id != 2
AND s.id NOT IN (SELECT
synced_id
FROM
device_info
WHERE
company_id = 2)
AND s.id NOT IN (SELECT
synced_id
FROM
company_info
WHERE
company_id = 2)
LIMIT 500)
`
I only updated one table, but the condition is to query the other tables. Why is this error reported?
### Example codes for reproduce this issue (such as a github link).
--
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Can not support DML operation with multiple tables [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu closed issue #34204: Can not support DML operation with multiple tables
URL: https://github.com/apache/shardingsphere/issues/34204
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Can not support DML operation with multiple tables [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on issue #34204:
URL: https://github.com/apache/shardingsphere/issues/34204#issuecomment-2564760366
The difficulty of supporting this feature in sharding is relatively high, and its necessity is not significant.
Therefore, there are currently no plans to support it.
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Can not support DML operation with multiple tables [shardingsphere]
Posted by "GuiwenChen (via GitHub)" <gi...@apache.org>.
GuiwenChen commented on issue #34204:
URL: https://github.com/apache/shardingsphere/issues/34204#issuecomment-2565118180
无意冒犯,此问题之前已有人报告过:#28873。作为顶级项目,希望可以更好~
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Can not support DML operation with multiple tables [shardingsphere]
Posted by "GuiwenChen (via GitHub)" <gi...@apache.org>.
GuiwenChen commented on issue #34204:
URL: https://github.com/apache/shardingsphere/issues/34204#issuecomment-2565064562
Query other tables in the update operation is a very normal usage scenario, can you support it?
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org