DataWorks在哪里查询数据服务里面api接口调用的异常日志?我开发了一个接口,每天第一次调用的时候就会报错,不知道在哪查日志?{
"data": null,
"errCode": 1108110622,
"requestId": "4B2490E8-80C6-4BA1-81DD-2AF7FBBA8910",
"errMsg": "Failed to query from data source:[PreparedStatementCallback; uncategorized SQLException for SQL [SELECT goodsTotalSales.goods_id AS \"goodsId\", goodsTotalSales.goods_name AS \"goodsName\", goodsTotalSales.goods_total_gmv AS \"gmv\", goodsTotalSales.goods_total_sales AS \"sales\", goodsTotalSales.sell_count AS \"sellCount\" , goodsTotalSales.goods_total_order_count AS \"orderCount\" , COALESCE(round(moreTwoUserCount.more_two_count 1.00 / (goodsTotalSales.goods_total_user_count 1.00), 2), 0) AS \"repurchaseRate\" FROM ( SELECT goods_id, max(goods_name) AS goods_name, sum(gmv) AS goods_total_gmv , sum(sales) AS goods_total_sales, sum(sell_count) AS sell_count , count(DISTINCT order_id) AS goods_total_order_count, count(DISTINCT user_id) AS goods_total_user_count FROM odps_wsnb_online_ds_dws_nbyx_sub_order WHERE project_code = ? AND time >= ? AND time <= ? GROUP BY goods_id ) goodsTotalSales LEFT JOIN ( SELECT goods_id, count(user_id) AS more_two_count FROM ( SELECT goods_id, user_id FROM odps_wsnb_online_ds_dws_nbyx_sub_order WHERE is_pay = 1 AND project_code = ? AND time >= ? AND time <= ? GROUP BY goods_id, user_id HAVING COUNT(DISTINCT order_id) >= 2 ) goodsUserGroupBy GROUP BY goodsUserGroupBy.goods_id ) moreTwoUserCount ON goodsTotalSales.goods_id = moreTwoUserCount.goods_id \n limit 10 offset 0]; SQL state [XX000]; error code [0]; ERROR: Query:[30012752601025000] Build desc failed: check permission for foreign table scan failed: canceling statement due to user request; nested exception is org.postgresql.util.PSQLException: ERROR: Query:[30012752601025000] Build desc failed: check permission for foreign table scan failed: canceling statement due to user request] ",
"apiLog": null
}
这是啥异常
看着是数据源配置的访问者身份没有权限 或者外表owner没有原表权限 ,此回答整理自钉群“DataWorks交流群(答疑@机器人)”
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
DataWorks基于MaxCompute/Hologres/EMR/CDP等大数据引擎,为数据仓库/数据湖/湖仓一体等解决方案提供统一的全链路大数据开发治理平台。