Skip to content

Allow pickling PyExpr #1520

@ntjohnson1

Description

@ntjohnson1

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
I want to hold a PyExpr defining some item of interest then use multiprocessing. This tries to pickle your objects.

Describe the solution you'd like
Allow PyExpr to be pickleable.

Describe alternatives you've considered
Use lazy initialization with a factory that returns a pyexpr.

Additional context
A pyexpr can be related to custom registered items. One mitigation for this is to allow setting the global session context, but I'm not sure how this singleton value is managed with python multiprocessing. Additionally, I'm not sure if this means we need to pickle the SessionContext itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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