开发者社区 > 大数据与机器学习 > 大数据开发治理DataWorks > 正文

DataWorks在哪里查询数据服务里面api接口调用的异常日志?

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
}
image.png
这是啥异常

展开
收起
真的很搞笑 2024-05-03 07:54:51 49 0
1 条回答
写回答
取消 提交回答
  • 看着是数据源配置的访问者身份没有权限 或者外表owner没有原表权限 ,此回答整理自钉群“DataWorks交流群(答疑@机器人)”

    2024-05-03 09:34:11
    赞同 1 展开评论 打赏

DataWorks基于MaxCompute/Hologres/EMR/CDP等大数据引擎,为数据仓库/数据湖/湖仓一体等解决方案提供统一的全链路大数据开发治理平台。

相关产品

  • 大数据开发治理平台 DataWorks
  • 热门讨论

    热门文章

    相关电子书

    更多
    PostgresChina2018_赖思超_PostgreSQL10_hash索引的WAL日志修改版final 立即下载
    Kubernetes下日志实时采集、存储与计算实践 立即下载
    日志数据采集与分析对接 立即下载