方便更快捷的说明问题,可以按需填写(可删除)
使用环境:shardingsphere5.0.0
场景、问题:
聚合中使用distinct数据不正确
已进行操作:
SELECT
school_code,
count( DISTINCT diagnostician_id )
FROM
dw_naire_number_answer
GROUP BY
school_code
方便更快捷的说明问题,可以按需填写(可删除)
聚合中使用distinct数据不正确
SELECT
school_code,
count( DISTINCT diagnostician_id )
FROM
dw_naire_number_answer
GROUP BY
school_code
可以提供下 dw_naire_number_answer 的分片配置吗?我们复现下问题
dw_naire_number_answer:
actualDataNodes: ds${['bj12z','bj166z']}.dw_naire_number_answer
databaseStrategy:
standard:
shardingColumn: school_code
shardingAlgorithmName: database_inline
shardingAlgorithms:
database_inline:
type: INLINE
props:
algorithm-expression: ds${school_code}
收到,我尝试下复现这个问题
好的,修复完成后,可否通知我一声,或者在这里回复我一下
好的 修复完后我会同步下
已验证,现在正确了
感谢验证,欢迎继续参与社区哈