SELECT
hd.body_part,
hd.body_part_description,
hd.disease_category,
hd.disease_category_description,
COUNT( DISTINCT hd.req_id ) AS num
FROM
base_ting.detail_log hd
WHERE
AND hd.add_date >= "2024-08-01"
GROUP BY
body_part,
disease_category
通过group by body_part,disease_category 这两个字段之后,select 四个字段都固定了。还报错哈。SQL 错误 [1105] [HY000]: errCode = 2, detailMessage = body_part_description, disease_category_description not in aggregate's output
我现在的场景doris要复用mysql 之前的业务语句。只能挨个修改业务sql?