Skip to content

Consider adding __hash__ to GeometryExtensionType #76

@FBruzzesi

Description

@FBruzzesi

TL;DR from an issue spotted in narwhals (narwhals-dev/narwhals#3222).

Would you consider making the extension type hashable? We rely quite heavily on caching (via lru_cache) for mapping back and forth between datatypes.

This logic breaks if a pyarrow table has an (extension) dtype that does not implement an __hash__ method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions