【数据平台-dataworks】-问题总结

ODPS-0130071

  • 错误详情
ODPS-0130071:[3,6] Semantic analysis exception - column xxx cannot be resolved
ODPS-0130071:[4,6] Semantic analysis exception - column a cannot be resolved
ODPS-0130071:[5,6] Semantic analysis exception - column b cannot be resolved
ODPS-0130071:[6,6] Semantic analysis exception - column c cannot be resolved
ODPS-0130071:[7,6] Semantic analysis exception - column d cannot be resolved
ODPS-0130071:[8,6] Semantic analysis exception - column e cannot be resolved
ODPS-0130071:[9,18] Semantic analysis exception - column f cannot be resolved
ODPS-0130071:[10,9] Semantic analysis exception - column f cannot be resolved
ODPS-0130071:[10,34] Semantic analysis exception - column f cannot be resolved
ODPS-0130071:[1,24] Semantic analysis exception - wrong columns count 8 in data source, requires 9 columns (includes dynamic partitions if any)
  • 问题解析
    1、从报错信息中可以看到是查询的数据和数据库字段不匹配。
    2、select 查询的字段为定义。

  • 解决方案

    • 检查sql正确性
      • select 中字段是否在原表或者子查询都存在
      • insert 前select字段个数和原表是否匹配,注意分区问题

    上述是一般都能解决,本次问题sql正确,且在测试环境可以执行,在冒烟测试报错,再次查看平台日志

    set biz_id=70000_202407_9027_90100_1_xx_20083_305;
    set odps.idata.system.id=dataworks_scheduler;
    insert overwrite table cc partition(pdate)
    select 
         xx-- 1
        ,a-- 2
        ,b-- 3
        ,c-- 4
        ,d-- 5
        ,e-- 6
        ,substr(conv(f,10,16),-1,1) as f-- asda
        ,if(f< 16, 0, substr(conv(f,10,16),-2,1)) as f_p -- 加热;
    odpscmd process start...
    OK
    OK
    OK
    ....
    2024-07-18 09:06:41 start to get jobId:
    

    可以发现sql在日中打印不全,检查发现是由于select 字段注释中存在;导致代码解析时被中断,误认为已经结束,部分代码被提交,导致报错。删除;解决。

相关推荐

  1. 数据平台-dataworks】-问题总结

    2024-07-18 11:02:04       23 阅读
  2. 阿里云DataWorks数据治理实践

    2024-07-18 11:02:04       34 阅读
  3. 数据结构》复试问答题总结

    2024-07-18 11:02:04       31 阅读
  4. 数据库》复试问答题总结

    2024-07-18 11:02:04       36 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-18 11:02:04       70 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-18 11:02:04       74 阅读
  3. 在Django里面运行非项目文件

    2024-07-18 11:02:04       62 阅读
  4. Python语言-面向对象

    2024-07-18 11:02:04       72 阅读

热门阅读

  1. spring中的依赖注入

    2024-07-18 11:02:04       21 阅读
  2. 力扣212题:单词搜索 II

    2024-07-18 11:02:04       21 阅读
  3. Go语言学习

    2024-07-18 11:02:04       22 阅读
  4. Spring Boot集成ShardingSphere详解

    2024-07-18 11:02:04       21 阅读
  5. 石油与化工行业的工业互联网平台革新之路

    2024-07-18 11:02:04       23 阅读