Skip to content

Commit

Permalink
chore: expose dataset field on TakeExec (#2425)
Browse files Browse the repository at this point in the history
expose dataset field

part of lancedb/sophon#1947

---------

Co-authored-by: Will Jones <[email protected]>
  • Loading branch information
chebbyChefNEQ and wjones127 authored May 31, 2024
1 parent 0429aa7 commit fbf3800
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rust/lance/src/io/exec/take.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,13 @@ impl TakeExec {
properties,
})
}

/// Get the dataset.
///
/// WARNING: Internal API with no stability guarantees.
pub fn dataset(&self) -> &Arc<Dataset> {
&self.dataset
}
}

impl ExecutionPlan for TakeExec {
Expand Down

0 comments on commit fbf3800

Please sign in to comment.