开发者社区 > 数据库 > 数据库管理工具 > 正文

DMS这个报错是什么意思?[语句1]:字段定义都是bigint啊,还需要转换么?

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):booleanimage.png 字段定义都是bigint啊,还需要转换么?

展开
收起
真的很搞笑 2023-06-18 14:58:10 89 0
1 条回答
写回答
取消 提交回答
  • 逻辑数仓查询失败,辛苦看下是什么原因,您好,这个是隐式类型转换的问题,后面会优化,建议先在 = 算子两端加显式的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数据管理用户交流群”

    2023-06-18 15:59:33
    赞同 展开评论 打赏

阿里云提供了一系列数据库管理工具,可以满足您在云上进行数据库管理的各种需求。包含数据传输服务DTS、数据库备份 DBS、数据库自治服务 DAS、数据管理 DMS。

相关产品

  • 数据管理
  • 热门讨论

    热门文章

    相关电子书

    更多
    金融行业高频交易数据管理解决方案 立即下载
    基于Spark的统一数据管理与数据探索平台 立即下载
    INFINIDATA:基于Spark的统一数据管理与探索平台 立即下载