Skip to content

Allow mapping custom types to encoding functions - #1307

Open
antbbn wants to merge 3 commits into
apache:trunkfrom
antbbn:custom-types-in-encoder
Open

antbbn wants to merge 3 commits into
apache:trunkfrom
antbbn:custom-types-in-encoder

Conversation

@antbbn

@antbbn antbbn commented Oct 12, 2026

Copy link
Copy Markdown

Using isinstance instead of a mapping based on type(value) allows the usage of custom types that extend known types in query templates (eg. pendulum timestamps extend datetime.datetime).

Using a list of tuples ensures deterministic evaluation handling for special cases like ValueSequence.

Using isinstance instead of a mapping based on `type(value)` allows
the usage of custom types that extend known types in query templates
(eg. pendulum timestamps extend datetime.datetime).
Using a list of tuples ensures deterministic evaluation handling for
special cases like ValueSequence.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant