Skip to content

Commit b8453f2

Browse files
committed
tracking column names
1 parent 29671f8 commit b8453f2

File tree

164 files changed

+6695
-4249
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+6695
-4249
lines changed

misc/python/materialize/checks/all_checks/explain_catalog_item.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,22 +76,22 @@ def validate(self) -> Testdrive:
7676
7777
?[version>=13500] EXPLAIN OPTIMIZED PLAN AS VERBOSE TEXT FOR MATERIALIZED VIEW explain_mv2;
7878
materialize.public.explain_mv2:
79-
Filter (#1 = 7)
79+
Filter (#1{y} = 7)
8080
ReadStorage materialize.public.explain_item_t2
8181
8282
Source materialize.public.explain_item_t2
83-
filter=((#1 = 7))
83+
filter=((#1{y} = 7))
8484
8585
Target cluster: quickstart
8686
8787
8888
?[version<13500] EXPLAIN OPTIMIZED PLAN FOR MATERIALIZED VIEW explain_mv2;
8989
materialize.public.explain_mv2:
90-
Filter (#1 = 7)
90+
Filter (#1{y} = 7)
9191
ReadStorage materialize.public.explain_item_t2
9292
9393
Source materialize.public.explain_item_t2
94-
filter=((#1 = 7))
94+
filter=((#1{y} = 7))
9595
9696
Target cluster: quickstart
9797

src/adapter/src/catalog/apply.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,7 @@ impl CatalogState {
17531753
.variant
17541754
.index_by()
17551755
.into_iter()
1756-
.map(MirScalarExpr::Column)
1756+
.map(MirScalarExpr::column)
17571757
.collect(),
17581758
create_sql: index_sql(
17591759
index_item_name,

src/adapter/src/catalog/builtin_table_updates.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ impl CatalogState {
16611661
.expect("missing sql information for index key")
16621662
.to_ast_string_simple();
16631663
let (field_number, expression) = match key {
1664-
MirScalarExpr::Column(col) => {
1664+
MirScalarExpr::Column(col, _) => {
16651665
(Datum::UInt64(u64::cast_from(*col + 1)), Datum::Null)
16661666
}
16671667
_ => (Datum::Null, Datum::String(&key_sql)),

src/adapter/src/coord/peek.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl<T> PeekDataflowPlan<T> {
9595
let key = typ
9696
.default_key()
9797
.into_iter()
98-
.map(MirScalarExpr::Column)
98+
.map(MirScalarExpr::column)
9999
.collect::<Vec<_>>();
100100
let (permutation, thinning) = permutation_for_arrangement(&key, arity);
101101
Self {
@@ -397,7 +397,7 @@ pub fn create_fast_path_plan<T: Timestamp>(
397397
if !preserves_order(&col.scalar_type) {
398398
break;
399399
}
400-
let col_expr = MirScalarExpr::Column(idx);
400+
let col_expr = MirScalarExpr::column(idx);
401401

402402
let Some((literal, _)) = filters
403403
.iter()

src/adapter/src/optimize/peek.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ impl<'s> Optimize<LocalMirPlan<Resolved<'s>>> for Optimizer {
244244
let key = typ
245245
.default_key()
246246
.iter()
247-
.map(|k| MirScalarExpr::Column(*k))
247+
.map(|k| MirScalarExpr::column(*k))
248248
.collect();
249249

250250
// The assembled dataflow contains a view and an index of that view.

src/compute-types/src/plan/lowering.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ impl Context {
575575
// All columns of the constant input will be part of the arrangement key.
576576
let source_arrangement = (
577577
(0..key.len())
578-
.map(MirScalarExpr::Column)
578+
.map(MirScalarExpr::column)
579579
.collect::<Vec<_>>(),
580580
(0..key.len()).collect::<Vec<_>>(),
581581
Vec::<usize>::new(),

src/compute-types/src/plan/reduce.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ impl ReducePlan {
807807
/// that key a single arrangement.
808808
pub fn keys(&self, key_arity: usize, arity: usize) -> AvailableCollections {
809809
let key = (0..key_arity)
810-
.map(MirScalarExpr::Column)
810+
.map(MirScalarExpr::column)
811811
.collect::<Vec<_>>();
812812
let (permutation, thinning) = permutation_for_arrangement(&key, arity);
813813
AvailableCollections::new_arranged(vec![(key, permutation, thinning)], None)

src/compute-types/src/plan/threshold.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl ThresholdPlan {
126126
// Arrange the input by all columns in order.
127127
let mut all_columns = Vec::new();
128128
for column in 0..arity {
129-
all_columns.push(mz_expr::MirScalarExpr::Column(column));
129+
all_columns.push(mz_expr::MirScalarExpr::column(column));
130130
}
131131
let (permutation, thinning) = permutation_for_arrangement(&all_columns, arity);
132132
let ensure_arrangement = (all_columns, permutation, thinning);

src/compute/src/logging.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ impl PermutedRowPacker {
175175
let (_, value) = permutation_for_arrangement(
176176
&key.iter()
177177
.cloned()
178-
.map(MirScalarExpr::Column)
178+
.map(MirScalarExpr::column)
179179
.collect::<Vec<_>>(),
180180
variant.desc().arity(),
181181
);

src/compute/src/render/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ where
506506
) -> Self {
507507
let mut keys = Vec::new();
508508
for column in columns {
509-
keys.push(MirScalarExpr::Column(column));
509+
keys.push(MirScalarExpr::column(column));
510510
}
511511
Self::from_expressions(keys, arrangements)
512512
}

0 commit comments

Comments
 (0)