shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

5.1.1 not support mysql subquery ?

Open williamXinCC opened this issue 1 year ago • 9 comments

SELECT person_id, open_id FROM sf_person WHERE tenant_id = #{tenantId} and person_id IN (SELECT person_id FROM sf_person_unit WHERE tenant_id = #{tenantId} and unit_id IN (SELECT unit_id FROM sf_unit and building_id IN #{item} and tenant_id = #{tenantId} )and type !=4 and status = 1 and exclusive_state =1 )

williamXinCC avatar Jul 09 '22 04:07 williamXinCC

Hi @williamXinCC Please provide us your configurations, DDL, actual SQL and errors.

TeslaCN avatar Jul 09 '22 05:07 TeslaCN

image image image image

williamXinCC avatar Jul 09 '22 06:07 williamXinCC

Is also never use my custom StandardShardingAlgorithm

williamXinCC avatar Jul 09 '22 06:07 williamXinCC

The other question, after 4.1.1 upgrade to 5.1.2,the project startup very very slow, so i change to 5.1.1 return to normal

williamXinCC avatar Jul 09 '22 06:07 williamXinCC

The other question, after 4.1.1 upgrade to 5.1.2,the project startup very very slow, so i change to 5.1.1 return to normal

This sub-problem is resolved in https://github.com/apache/shardingsphere/issues/18691 .

linghengqian avatar Jul 09 '22 06:07 linghengqian

Could you paste the SQL and codes in text format? Screenshots doesn't help us to reproduce this issue.

TeslaCN avatar Jul 10 '22 03:07 TeslaCN

Hi, a critical calcite issue has been resolved, refer to https://issues.apache.org/jira/plugins/servlet/mobile#issue/CALCITE-35. I think we have good reason to upgrade to calcite 1.31.0 now. 👨‍🔧

linghengqian avatar Aug 08 '22 20:08 linghengqian

Hi @williamXinCC @linghengqian Has this issue been resolved after the calcite upgrade?

RaigorJiang avatar Sep 14 '22 15:09 RaigorJiang

  • My local test looks normal, and the issue does not give a reproducible example to test. For more issues with Calcite, I think we can move to https://github.com/apache/shardingsphere/issues/20982 .

linghengqian avatar Sep 15 '22 14:09 linghengqian

Hello , this issue has not received a reply for several days. This issue is supposed to be closed.

github-actions[bot] avatar Oct 08 '22 16:10 github-actions[bot]

OK, thank you @linghengqian , so I just close this issue now.

RaigorJiang avatar Oct 14 '22 05:10 RaigorJiang