Skip to content

Move local LanceTable pickle state onto LanceTable #3473

Description

@Xuanwo

Follow-up from #3432.

RemoteTable now carries __getstate__ / __setstate__ so it can be reopened after pickle/spawn and fork. Permutation still contains local LanceTable serialization helpers for native and in-memory tables, which makes the ownership of table pickling asymmetric.

We should move local table pickle support onto LanceTable itself so code that needs a picklable table can rely on the table abstraction instead of duplicating table-specific reopen logic.

Suggested scope:

  • Add __getstate__ / __setstate__ to LanceTable for persisted local tables.
  • Decide whether in-memory tables should inline Arrow data or remain unsupported by default.
  • Update Permutation to rely on table pickle support instead of local helper functions.
  • Preserve existing with_connection_factory as the escape hatch for custom worker-side connection setup.

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