fix: update glue data catalog client to include LakeFormation AccessDenied#359
Merged
Merged
Conversation
badab8b to
4c0a60c
Compare
…enied fix Lake Formation returns AccessDeniedException instead of EntityNotFoundException for resources that do not exist when the caller lacks CREATE_TABLE permission (anti-enumeration design). The upstream fix in aws-glue-data-catalog-client-for-apache-hive-metastore translates these exceptions to NoSuchObjectException in getDatabase() and getTable(), and treats them as not-found in tableExists(). The behaviour is opt-in via the aws.glue.lakeformation.access-denied-as-not-found config flag (default false) so stock behaviour is unchanged unless explicitly enabled. Every translation is logged at WARN to preserve observability of genuine permission errors. Rebuilt from branch/waggle-dance of the upstream repo (commit 4f36427). Co-authored-by: Claude Sonnet <noreply@anthropic.com>
4c0a60c to
bd4bbcb
Compare
abhimanyugupta07
approved these changes
Jun 25, 2026
rpoluri
approved these changes
Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lake Formation returns AccessDeniedException instead of EntityNotFoundException for resources that do not exist when the caller lacks CREATE_TABLE permission (anti-enumeration design).
The upstream fix in aws-glue-data-catalog-client-for-apache-hive-metastore translates these exceptions to NoSuchObjectException in getDatabase() and getTable(), and treats them as not-found in tableExists(). The behaviour is opt-in via the aws.glue.lakeformation.access-denied-as-not-found config flag (default false) so stock behaviour is unchanged unless explicitly enabled. Every translation is logged at WARN to preserve observability of genuine permission errors.
Origin PR Rebuilt from branch/waggle-dance of the upstream repo (commit 4f36427).