开发者社区> 问答> 正文

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

已解决

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

展开
收起
提个问题! 2024-06-04 15:06:49 24 0
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/';
    2024-06-04 15:06:50
    赞同 1 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Data+AI时代大数据平台应该如何建设 立即下载
大数据AI一体化的解读 立即下载
极氪大数据 Serverless 应用实践 立即下载