lance-format/lance

Remove duplicate datafusion code

Open

#5,671 opened on Jan 9, 2026

View on GitHub
 (2 comments) (0 reactions) (1 assignee)Rust (695 forks)github user discovery
good first issue

Repository metrics

Stars
 (6,582 stars)
PR merge metrics
 (Avg merge 6d 1h) (219 merged PRs in 30d)

Description

OneShotPartitionStream is defined in two places

  • rust/lance-datafusion/src/exec.rs
  • rust/lance/src/datafusion/dataframe.rs

In addition to this struct, there is a SessionContextExt defined in each of these. From a dependency graph it looks like lance-datafusion is the place we should have a single definition of these and then remove references to the other. The one issue I see is that the SessionContextExt in lance is more complete than the one in lance-datafusion.

Contributor guide