bug很清楚了:left join 后边加了’and 别的表.字段’ ,select 中有sum(),会报:[8118] [HY000]: Failed to build executor。
如果是 inner join 则不会报错