Skip to content

Commit

Permalink
fix(datashed): do not discover datashed if a index is given (#128)
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Wagner <n.wagner@dnb.de>
  • Loading branch information
nwagner84 authored Feb 5, 2025
1 parent 55c2dc0 commit ba9b778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/datashed/src/commands/select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ fn read_filter_list(path: PathBuf) -> DatashedResult<DataFrame> {

impl Select {
pub(crate) fn execute(self) -> DatashedResult<()> {
let datashed = Datashed::discover()?;
let index = if let Some(path) = self.index {
IpcReader::new(File::open(path)?)
.memory_mapped(None)
.finish()?
} else {
let datashed = Datashed::discover()?;
datashed.index()?
};

Expand Down

0 comments on commit ba9b778

Please sign in to comment.