Skip to content

Commit

Permalink
follow up 1919
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-isaacs committed Jan 13, 2025
1 parent 99eb574 commit a4a51c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion vortex-layout/src/layouts/struct_/eval_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ impl ExprEvaluator for StructReader {
let field_readers: Vec<_> = partitioned
.partitions
.iter()
// TODO(joe): remove field from self.child
.map(|partition| self.child(&partition.name.clone()))
.try_collect()?;

Expand Down
2 changes: 1 addition & 1 deletion vortex-layout/src/layouts/struct_/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl StructReader {
.get(name)
.ok_or_else(|| vortex_err!("Field {} not found in struct layout", name))?;

// TODO: think about a hashmap for large |fields|.
// TODO: think about a Hashmap<FieldName, OnceLock<Arc<dyn LayoutReader>>> for large |fields|.
self.field_readers[idx].get_or_try_init(|| {
let child_layout = self
.layout
Expand Down

0 comments on commit a4a51c4

Please sign in to comment.