-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
Description
Moto seems to behave differently from AWS Glue when calling GetTable on a resource-link.
What I observe: Moto returns a structure with TargetTable
as expected, but without any schema/storage information (that is, it returns approximately what was sent in the Create/Update call).
What AWS does: The response includes some information from the target table as well (schema/storage at least). For some reason, the AWS documentation for this is under LakeFormation rather than Glue (I guess LF is the main use-case for resource links?). What appears to happen is:
- When a client calls GetTable on a table that is a resource link, Glue issues a second GetTable call against the target table.
- If that succeeds, it merges the target table's info into the response
- If it fails, it swallows the error and just returns the link info itself, much like Moto does now.