MaxCompute读外部表如何处理dataset only support pangu locat

已解决

MaxCompute读外部表如何处理dataset only support pangu location报错

展开
收起
阿里云服务支持 2022-12-08 10:38:32 196 分享 版权
1 条回答
写回答
取消 提交回答
  • 官方回答

    MaxCompute中创建外部表不支持建外表使用了like的方式,否则读外部表时会报错FAILED: ODPS-0130071:[0,0] Semantic analysis exception - physical plan generation failed: com.aliyun.odps.meta.exception.MetaException: java.io.IOException: com.aliyun.odps.metadata.common.MetadataException: dataset only support pangu location,需要转换创建外部表方式,如:

    create external table if not exists mc_oss_csv_external1 ( vehicleId int, recordId int, patientId int, calls int, locationLatitute double, locationLongtitue double, recordTime string, direction string )

    stored by 'com.aliyun.odps.CsvStorageHandler'

    with serdeproperties ( 'odps.properties.rolearn'='acs:ram::xxxxxx:role/aliyunodpsdefaultrole' )

    location 'oss://oss-cn-hangzhou-internal.aliyuncs.com/oss-mc-test/Demo1/';

    2022-12-08 10:46:38
    赞同 展开评论

MaxCompute(原ODPS)是一项面向分析的大数据计算服务,它以Serverless架构提供快速、全托管的在线数据仓库服务,消除传统数据平台在资源扩展性和弹性方面的限制,最小化用户运维投入,使您经济并高效的分析处理海量数据。

收录在圈子:
作为全球云计算的领先者,阿里云为全球230万企业提供着云计算服务,服务范围覆盖200多个国家和地区。我们致力于为企业、政府等组织机构提供安全可靠的云计算服务,给用户带来极速愉悦的服务体验。
还有其他疑问?
咨询AI助理