Skip to content

[Glue] Read-through behavior of Resource Links in glue metastore #8868

@wimlewis-amazon

Description

@wimlewis-amazon

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions