LakeFormation 不支持访问位置不是表位置子路径的分区的数据

问题描述

我正在查询使用湖形成共享的胶水表并收到此错误

HIVE_UNKNowN_ERROR: com.amazonaws.services.lakeformation.model.AWSLakeFormationException: Error retrieving data access credentials for (table: arn:aws:glue:us-east-1:xxxxxxxxxx:table/yyyyyyyy/zzzzzzz,partition: {Values: [1,1598859287382,SNAPSHOT]}). LakeFormation does not support accessing data for partitions with location that is not sub-path of table location. (Service: null; Status Code: 403; Error Code: null; Request ID: null; Proxy: null)

解决方法

您好像手动添加了一个分区,该分区不在父表中设置的位置下。您可以阅读有关 here 的更多信息。