infinidb做为利用mysql界面的插件式数据分析引擎,其在数据分析方面的速度,和对DML的支持,让ICE汗颜。在使用过程中,遇到了一些小问题,与大家分享下
1.针对varchar字段的条件查询,需要关注varchar字段的长度是否匹配
eg:字段acc_name长度为32,字段name长度为50
当出现如下查询的时候:select * from a where acc_name in (select name from b);
则查询出错,无法继续。
2.当某些字段出现空值的时候,count(distinct a) 报错
eg:SELECT COUNT(DISTINCT `acc_id`) FROM `login_2010_12` WHERE crdate >= UNIX_TIMESTAMP('2010-12-25') AND crdate < UNIX_TIMESTAMP('2010-12-26') AND `zone_code` = 21;
error:There was an internal error encountered in the Calpont Engine while processing this query. The query was cancelled. You may resubmit it if you like. The error came from BatchPrimitiveProcessor projectResult. Please check crit.log for more details.
原因是acc_id在入库时出现了空值,当在后面加入and acc_id >=0条件时,故障排除
阅读(2510) | 评论(1) | 转发(0) |