lance-format / lance-format/lance

Migrate LanceScanExec to native DataFusion partitions

Open
#7,084 0 comments 0 reactions 1 assignee View on GitHub

@wjones127 is already working on this.

Since Jun 4, 2026.

enhancement
Dominant language
Rust
Stars
7.1k
Forks
852
Avg merge
3d 18h
Merged PRs (30d)
272

Description

LanceScanExec outputs a single partition and manages I/O parallelism internally via try_buffered. It should be migrated to output N partitions (where N = target_partitions from the session config).

Rather than statically splitting fragments across partitions upfront, each partition should pull from a shared work queue of fragment reads. This avoids stragglers from uneven fragment sizes — a partition that finishes a small fragment quickly picks up the next available one rather than sitting idle.

This follows the same shared-queue pattern already used by FilteredReadExec in MultiplePartitions mode (Arc<AsyncMutex<task_stream>>).

Depends on #7081 (EnforceDistribution) to handle exchange nodes downstream automatically.
Part of the migration tracked in #6967.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.