非醒。 2021-10-12 14:13 采纳率: 0%
浏览 96

presto,报错line 7:27: All COALESCE operands must be the same type: decimal(22,4)

case coalesce(t3.volume,'')
when '' then t2.volume
else t3.volume
end as transaction_volume
,case coalesce(t3.area,'')
when '' then t2.area
else t3.area
end as transaction_area
,case coalesce(t3.sets,'')
when '' then t2.sets
else t3.sets
end as transaction_sets
,case when coalesce(t2.mdm_building_id,'') != '' then 0
when coalesce(t3.mdm_building_id,'') != '' then 1
end as received_flag

  • 写回答

1条回答 默认 最新

  • 「已注销」 2021-10-13 14:21
    关注

    必须用相同得大小啊

    评论
    编辑
    预览

    报告相同问题?

    手机看
    程序员都在用的中文IT技术交流社区

    程序员都在用的中文IT技术交流社区

    专业的中文 IT 技术社区,与千万技术人共成长

    专业的中文 IT 技术社区,与千万技术人共成长

    关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

    关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

    客服 返回
    顶部