sparksql报错:expression ‘a.id‘ is neither present in the group by,nor is it an aggregate function.
今天在运行带有groupby的spark时候发生了报错,运行语句如下:selecta.idasmodel_id,a.modelasmodel_name,count(a.model)astotal,sum(b.token)astokenfromchatnio_qaasaleftjoinmodel_countasbona.model=b.modelgroupby(a.model)这里发生了一个报错:e