Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复聚合函数的问题 #1961

Merged
merged 2 commits into from Aug 16, 2018
Merged

修复聚合函数的问题 #1961

merged 2 commits into from Aug 16, 2018

Conversation

maxiaoguang64
Copy link
Contributor

@maxiaoguang64 maxiaoguang64 commented Aug 15, 2018

当某些分片数据为空时,使用聚合函数结果异常。
1、数字类型
分片1: select min(id) from user mysql单独执行返回null
分片2: select min(id) from user mysql单独执行返回200
mycat: select min(id) from user mycat执行返回0

1、非数字类型
分片1: select min(id) from user mysql单独执行返回null
分片2: select min(id) from user mysql单独执行返回‘200’
mycat: select min(id) from user mycat执行返回null或‘200’

修复聚合函数返回0的问题
修复非字符类型聚合函数返回null的问题
@maxiaoguang64 maxiaoguang64 changed the title 修复聚合函数返回0的问题 修复聚合函数的问题 Aug 15, 2018
@apachemycat apachemycat merged commit de2a8ee into MyCATApache:1.6 Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants