DMS这个报错是什么意思?[语句1]: SELECT t2
.order_no
, t2
.status
FROM dbl_rr_pro_1
.billing_center
.bc_b2c_tmp
AS t1
LEFT JOIN dbl_rr_pro2_1
.maybach_go
.os_order
AS t2
ON t1
.order_no
= t2
.order_no
TraceId: 0abb7edc16867135384432676e8d3e LOGIC_DW-900: Query failed (#0abb7edc16867135384432676e8d3e_1686713538848): line 6:78: Could not choose a best candidate operator. Explicit type casts must be added. Candidates are: * presto.default.$operator$equal(decimal(20,0),decimal(20,0)):boolean * presto.default.$operator$equal(real,real):boolean 字段定义都是bigint啊,还需要转换么?
逻辑数仓查询失败,辛苦看下是什么原因,您好,这个是隐式类型转换的问题,后面会优化,建议先在 = 算子两端加显式的cast解决: SELECT t2
.order_no
, t2
.status
FROM dbl_rr_pro_1
.billing_center
.bc_b2c_tmp
AS t1
LEFT JOIN dbl_rr_pro2_1
.maybach_go
.os_order
AS t2
ON cast(t1
.order_no
as bigint) = cast(t2
.order_no
as bigint),转换是可以的,此回答整理自钉群“阿里云DMS数据管理用户交流群”
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。