Dataphin代码任务报错"column XXX in source has incompatible type STRING with destination column XXX, which has type BIGINT"

更新时间:2021-11-16 07:52:00

问题描述

SQL代码任务在执行过程中报错"column XXX in source has incompatible type STRING with destination column XXX, which has type BIGINT"。计算源为Max Compute。

问题原因

数据类型不匹配。

解决方案

在sql开头添加如下参数设置:

set odps.sql.hive.compatible=true;

适用于

  • Dataphin-代码任务
  • 本页导读
  • 问题描述
  • 问题原因
  • 解决方案
  • 适用于
AI助理

点击开启售前

在线咨询服务

你好,我是AI助理

可以解答问题、推荐解决方案等