Skip to content

Commit fcf31ae

Browse files
committed
wip
Signed-off-by: Joe Isaacs <[email protected]>
1 parent 3e6f139 commit fcf31ae

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

vortex-array/src/expr/analysis/annotation_union_set.rs renamed to vortex-array/src/expr/analysis/annotation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub type Annotations<'a, A> = HashMap<&'a Expression, HashSet<A>>;
3535
///
3636
/// Returns a map of each expression to all annotations that any of its descendent (child)
3737
/// expressions are annotated with.
38-
pub fn descendent_annotation_union_set<A: AnnotationFn>(
38+
pub fn descendent_annotations<A: AnnotationFn>(
3939
expr: &Expression,
4040
annotate: A,
4141
) -> Annotations<'_, A::Annotation> {

vortex-array/src/expr/analysis/immediate_access.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use vortex_utils::aliases::hash_set::HashSet;
99
use crate::expr::Expression;
1010
use crate::expr::analysis::AnnotationFn;
1111
use crate::expr::analysis::Annotations;
12-
use crate::expr::descendent_annotation_union_set;
12+
use crate::expr::descendent_annotations;
1313
use crate::expr::exprs::get_item::GetItem;
1414
use crate::expr::exprs::root::Root;
1515
use crate::expr::exprs::select::Select;
@@ -47,7 +47,7 @@ pub fn immediate_scope_accesses<'a>(
4747
expr: &'a Expression,
4848
scope: &'a StructFields,
4949
) -> FieldAccesses<'a> {
50-
descendent_annotation_union_set(expr, annotate_scope_access(scope))
50+
descendent_annotations(expr, annotate_scope_access(scope))
5151
}
5252

5353
/// This returns the immediate scope_access (as explained `immediate_scope_accesses`) for `expr`.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// SPDX-FileCopyrightText: Copyright the Vortex contributors
33

4-
pub mod annotation_union_set;
4+
pub mod annotation;
55
pub mod immediate_access;
66
mod labeling;
77
mod null_sensitive;
88

9-
pub use annotation_union_set::*;
9+
pub use annotation::*;
1010
pub use immediate_access::*;
1111
pub use labeling::*;
1212
pub use null_sensitive::*;

vortex-array/src/expr/transform/partition.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use crate::expr::Expression;
1818
use crate::expr::analysis::Annotation;
1919
use crate::expr::analysis::AnnotationFn;
2020
use crate::expr::analysis::Annotations;
21-
use crate::expr::analysis::descendent_annotation_union_set;
21+
use crate::expr::analysis::descendent_annotations;
2222
use crate::expr::exprs::get_item::get_item;
2323
use crate::expr::exprs::pack::pack;
2424
use crate::expr::exprs::root::root;
@@ -50,7 +50,7 @@ where
5050
FieldName: From<A::Annotation>,
5151
{
5252
// Annotate each expression with the annotations that any of its descendent expressions have.
53-
let annotations = descendent_annotation_union_set(&expr, annotate_fn);
53+
let annotations = descendent_annotations(&expr, annotate_fn);
5454

5555
// Now we split the original expression into sub-expressions based on the annotations, and
5656
// generate a root expression to re-assemble the results.

0 commit comments

Comments
 (0)