You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/09/13 06:27:19 UTC
[GitHub] [shardingsphere] RaigorJiang edited a comment on issue #12315: left join result in cross table merge
RaigorJiang edited a comment on issue #12315:
URL: https://github.com/apache/shardingsphere/issues/12315#issuecomment-917879808
Hello @448700174
I read your sharding algorithm `TenantIdShardingAlgorithm `, where:
`String actualTableName = logicTableName + "_" + tenantId;`
Does it mean that the suffix of the expected actual table name is consistent with tenant_id?
Then, for the last logic SQL, is the tenant_id entered is 12?
Should the expected routing result be only `FROM care_patrol_task_12 cpt,care_patrol_subtask_12 cps`?
> But another SQL can't work even I config as this.
SELECT
cps.id,
cpt.area_id,
cpt.area_name,
cps.start_time,
cps.end_time,
cps.schedule_count,
cps.done_count
FROM care_patrol_task cpt,care_patrol_subtask cps
WHERE cpt.tenant_id = #{tenantId}
and cpt.id = cps.task_id
AND cps.carer_id = #{carerId}
AND cps.status = #{status}
--
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