Skip to content

feat: Add update_lance and delete_from_lance APIs #13

@Lucas61000

Description

@Lucas61000

Is your feature request related to a problem?

The Lance library natively supports dataset.update() and dataset.delete(), but daft-lance currently does not expose wrappers for these operations. Users who store data in Lance format through Daft have no way to update or delete rows without dropping down to the raw Lance API.

Describe the solution you'd like

Add two @PublicAPI functions following the existing daft-lance pattern:

  • update_lance(uri, updates, *, where=None, io_config=None) — thin wrapper around lance.dataset().update(), returns {"num_rows_updated": N}
  • delete_from_lance(uri, where, *, io_config=None) — thin wrapper around lance.dataset().delete()

Additional Context

Would you like to implement a fix?

Yes, already have an implementation ready.

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