-----------------------------------!!SQL Failed!!-----------------------------------
Error Code: DPN.Os.LogicalTableTranslateFailed
Error Message: Logical table translate failed: com.alibaba.dt.oneservice.api.exception.OsBizException: Logical table translate failed: com.alibaba.dt.oneservice.api.exception.OsBizException: Failed to validate Table DIM_NF_SHOP Partition 20220829 Consistent of Column: [SHOP_ID]
com.alibaba.dt.oneservice.api.exception.OsBizException: Logical table translate failed:
com.alibaba.dt.oneservice.api.exception.OsBizException: Logical table translate failed:
com.alibaba.dt.oneservice.api.exception.OsBizException:
Failed to validate Table DIM_NF_SHOP Partition 20220829 Consistent of Column: [SHOP_ID]
at com.alibaba.dt.oneservice.api.exception.OsBizException$Builder.build(OsBizException.java:114)
Dataphin中代码任务运行报错“Logical table translate failed:Failed to validate Table XXX Partition XXX Consistent of Column: [XXX]”
更新时间:
问题描述
Dataphin中代码任务运行报错“Logical table translate failed:Failed to validate Table XXX Partition XXX Consistent of Column: [XXX]”
完整的报错信息如下:
问题原因
该问题是因为逻辑表解析有问题导致。一般需要反馈Dataphin官方答疑,提交后台技术定位分析。
但是如果有以下使用情况,仅需为逻辑表指定分区即可:代码中有引用查询逻辑表数据,并没有为逻辑表指定分区时,会取所有分区。
这种情况也会出现报错中提示的分区值和代码中其他表传递的分区值不一致的情况。
解决方案
给代码中逻辑表指定分区之后,问题解决。
适用于
- Dataphin
反馈
- 本页导读
文档反馈