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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to