Skip to content

MutableDict wrapper on ObjectType breaks forward/reverse type mapping #238

@coderabbitai

Description

@coderabbitai

Problem

The MutableDict.as_mutable() wrapper applied to ObjectTypeImpl is causing issues with forward and reverse type mapping procedures.

The problematic code is:

ObjectType = MutableDict.as_mutable(ObjectTypeImpl)

Reference:

# Designated name to refer to. `Object` is too ambiguous.
ObjectType = MutableDict.as_mutable(ObjectTypeImpl)

Impact

When using ObjectType in type mapping dictionaries, the MutableDict wrapper interferes with type resolution. This requires workarounds like using ObjectTypeImpl() directly instead of ObjectType.

Context

This issue was discovered while implementing history mode support in the Fivetran destination connector:

Workaround

Currently working around by using ObjectTypeImpl() directly in type mappings instead of ObjectType.


Reported by: @amotl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions