开发者社区 > 数据库 > 正文

DMS按照文档,加了Spark SQL任务将数据同步到OSS,执行失败,但是没有任何报错,为什么?

DMS这边按照文档,加了Spark SQL任务将数据同步到OSS,最终是执行失败了,但是没有任何报错,麻烦帮看下是什么原因? 图片.png 我的sql:CREATE TABLE oss.fulu_push_order ( service_order_id string COMMENT '订单', pid string COMMENT '父订单', root_pid string COMMENT '根订单', customer_order_no string COMMENT '外部订单', charge_account string COMMENT '账户', product_id bigint COMMENT '商品id', product_name string COMMENT '商品名称', buy_num string COMMENT '数量', order_type string COMMENT '类型', order_price float COMMENT '金额', pushed_at string COMMENT '推送时间', dt string comment '业务日期分区' ) partitioned by (dt) COMMENT '订单表';insert overwrite oss.fulu_push_order partition (dt = '${bizdate}')select a.service_order_id, b.pid, b.root_pid, a.customer_order_no, a.charge_account, a.product_id, a.product_name, a.buy_num, a.order_type, a.order_price, from_unixtime(a.pushed_at, '%Y-%m-%d %H:%i:%s') as pushed_atfrom neigou_store.sdb_yinyan_fulu_orders a LEFT JOIN neigou_server.server_orders b on a.service_order_id = b.order_id;

展开
收起
游客uu65yiq7myioi 2023-02-06 13:46:19 367 0
1 条回答
写回答
取消 提交回答
  • 是不是使用了不兼容的函数,或者提供日期格式有误?——该回答整理自钉群“阿里云DMS数据管理用户交流群”

    2023-02-06 20:06:21
    赞同 展开评论 打赏

数据库领域前沿技术分享与交流

相关电子书

更多
Hybrid Cloud and Apache Spark 立即下载
Scalable Deep Learning on Spark 立即下载
Comparison of Spark SQL with Hive 立即下载