Skip to content

Commit c28d006

Browse files
authored
Update columnar, timely, differential (MaterializeInc#33938)
Update Columnar, Timely and Differential. --------- Signed-off-by: Moritz Hoffmann <[email protected]>
1 parent fdcb8ff commit c28d006

File tree

91 files changed

+1156
-1014
lines changed

Some content is hidden

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

91 files changed

+1156
-1014
lines changed

Cargo.lock

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/adapter-types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ mz-ore = { path = "../ore" }
1515
mz-repr = { path = "../repr" }
1616
mz-storage-types = { path = "../storage-types" }
1717
serde = "1.0.219"
18-
timely = "0.24.0"
18+
timely = "0.25.1"
1919
workspace-hack = { version = "0.0.0", path = "../workspace-hack", optional = true }
2020
tracing = "0.1.37"
2121

src/adapter/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ bytesize = "2.1.0"
2020
chrono = { version = "0.4.39", default-features = false, features = ["std"] }
2121
dec = "0.4.8"
2222
derivative = "2.2.0"
23-
differential-dataflow = "0.17.0"
23+
differential-dataflow = "0.18.0"
2424
enum-kinds = "0.5.1"
2525
fail = { version = "0.5.1", features = ["failpoints"] }
2626
futures = "0.3.31"
@@ -86,7 +86,7 @@ serde_plain = "1.0.2"
8686
sha2 = "0.10.9"
8787
smallvec = { version = "1.15.1", features = ["union"] }
8888
static_assertions = "1.1"
89-
timely = "0.24.0"
89+
timely = "0.25.1"
9090
tokio = { version = "1.44.1", features = ["rt", "time"] }
9191
tokio-postgres = { version = "0.7.8" }
9292
tokio-stream = "0.1.17"

src/catalog/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ bytesize = "2.1.0"
1919
chrono = { version = "0.4.39", default-features = false, features = ["std"] }
2020
clap = { version = "4.5.23", features = ["derive"] }
2121
derivative = "2.2.0"
22-
differential-dataflow = "0.17.0"
22+
differential-dataflow = "0.18.0"
2323
futures = "0.3.31"
2424
ipnet = "2.11.0"
2525
itertools = "0.14.0"
@@ -64,7 +64,7 @@ serde_plain = "1.0.2"
6464
static_assertions = "1.1"
6565
sha2 = "0.10.9"
6666
thiserror = "2.0.17"
67-
timely = "0.24.0"
67+
timely = "0.25.1"
6868
tokio = { version = "1.44.1" }
6969
tracing = "0.1.37"
7070
uuid = "1.18.1"

src/cluster/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ workspace = true
1313
anyhow = "1.0.100"
1414
async-trait = "0.1.89"
1515
crossbeam-channel = "0.5.15"
16-
differential-dataflow = "0.17.0"
16+
differential-dataflow = "0.18.0"
1717
futures = "0.3.31"
1818
lgalloc = "0.6.0"
1919
mz-cluster-client = { path = "../cluster-client" }
2020
mz-ore = { path = "../ore", features = ["async", "process", "tracing"] }
2121
mz-service = { path = "../service" }
2222
rand = "0.8.5"
2323
regex = "1.11.3"
24-
timely = "0.24.0"
24+
timely = "0.25.1"
2525
tokio = { version = "1.44.1", features = ["fs", "rt", "sync", "net"] }
2626
tracing = "0.1.37"
2727
uuid = "1.18.1"

src/compute-client/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async-trait = "0.1.89"
1515
bytesize = "2.1.0"
1616
chrono = { version = "0.4.39", default-features = false, features = ["std"] }
1717
derivative = "2.2.0"
18-
differential-dataflow = "0.17.0"
18+
differential-dataflow = "0.18.0"
1919
futures = "0.3.31"
2020
mz-build-info = { path = "../build-info" }
2121
mz-cluster-client = { path = "../cluster-client" }
@@ -36,7 +36,7 @@ prometheus = { version = "0.14.0", default-features = false }
3636
serde = { version = "1.0.219", features = ["derive"] }
3737
serde_json = "1.0.145"
3838
thiserror = "2.0.17"
39-
timely = "0.24.0"
39+
timely = "0.25.1"
4040
tokio = "1.44.1"
4141
tracing = "0.1.37"
4242
uuid = { version = "1.18.1", features = ["serde", "v4"] }

src/compute-types/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ publish = false
1010
workspace = true
1111

1212
[dependencies]
13-
columnar = "0.10.2"
13+
columnar = "0.11.0"
1414
columnation = "0.1.0"
15-
differential-dataflow = "0.17.0"
15+
differential-dataflow = "0.18.0"
1616
itertools = "0.14.0"
1717
mz-dyncfg = { path = "../dyncfg" }
1818
mz-expr = { path = "../expr" }
1919
mz-ore = { path = "../ore", features = ["tracing", "metrics"] }
2020
mz-repr = { path = "../repr", features = ["tracing"] }
2121
mz-storage-types = { path = "../storage-types" }
2222
serde = { version = "1.0.219", features = ["derive"] }
23-
timely = "0.24.0"
23+
timely = "0.25.1"
2424
tracing = "0.1.37"
2525
workspace-hack = { version = "0.0.0", path = "../workspace-hack", optional = true }
2626

src/compute/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ workspace = true
1313
anyhow = "1.0.100"
1414
async-stream = "0.3.6"
1515
bytesize = "2.1.0"
16-
columnar = "0.10.2"
16+
columnar = "0.11.0"
1717
crossbeam-channel = "0.5.15"
1818
dec = { version = "0.4.8", features = ["serde"] }
19-
differential-dataflow = "0.17.0"
20-
differential-dogs3 = "0.17.0"
19+
differential-dataflow = "0.18.0"
20+
differential-dogs3 = "0.18.0"
2121
futures = "0.3.31"
2222
itertools = "0.14.0"
2323
lgalloc = "0.6"
@@ -41,7 +41,7 @@ prometheus = { version = "0.14.0", default-features = false }
4141
scopeguard = "1.2.0"
4242
serde = { version = "1.0.219", features = ["derive"] }
4343
smallvec = { version = "1.15.1", features = ["serde", "union"] }
44-
timely = "0.24.0"
44+
timely = "0.25.1"
4545
tokio = { version = "1.44.1", features = ["fs", "rt", "sync", "net"] }
4646
tracing = "0.1.37"
4747
uuid = { version = "1.18.1", features = ["serde", "v4"] }

src/compute/src/command_channel.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ pub fn render<A: Allocate>(timely_worker: &mut TimelyWorker<A>) -> (Sender, Rece
128128
.sink(
129129
Exchange::new(|(idx, _, _)| u64::cast_from(*idx)),
130130
"command_channel::sink",
131-
move |input| {
132-
while let Some((_cap, data)) = input.next() {
131+
move |(input, _)| {
132+
input.for_each(|_time, data| {
133133
for (_idx, cmd, nonce) in data.drain(..) {
134134
let _ = output_tx.send((cmd, nonce));
135135
}
136-
}
136+
});
137137
},
138138
);
139139
}

src/compute/src/extensions/arrange.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use differential_dataflow::operators::arrange::arrangement::arrange_core;
1616
use differential_dataflow::operators::arrange::{Arranged, TraceAgent};
1717
use differential_dataflow::trace::implementations::spine_fueled::Spine;
1818
use differential_dataflow::trace::{Batch, Batcher, Builder, Trace, TraceReader};
19-
use differential_dataflow::{Collection, Data, ExchangeData, Hashable};
19+
use differential_dataflow::{Collection, Data, ExchangeData, Hashable, VecCollection};
2020
use timely::Container;
2121
use timely::dataflow::channels::pact::{Exchange, ParallelizationContract, Pipeline};
2222
use timely::dataflow::operators::Operator;
@@ -112,7 +112,7 @@ where
112112
}
113113
}
114114

115-
impl<G, K, V, R> MzArrange for Collection<G, (K, V), R>
115+
impl<G, K, V, R> MzArrange for VecCollection<G, (K, V), R>
116116
where
117117
G: Scope,
118118
G::Timestamp: Lattice,
@@ -138,7 +138,7 @@ where
138138
}
139139
}
140140

141-
impl<G, K, V, R, C> MzArrangeCore for Collection<G, (K, V), R, C>
141+
impl<G, C> MzArrangeCore for Collection<G, C>
142142
where
143143
G: Scope,
144144
G::Timestamp: Lattice,
@@ -167,10 +167,10 @@ where
167167
/// A specialized collection where data only has a key, but no associated value.
168168
///
169169
/// Created by calling `collection.into()`.
170-
pub struct KeyCollection<G: Scope, K, R = usize>(Collection<G, K, R>);
170+
pub struct KeyCollection<G: Scope, K, R = usize>(VecCollection<G, K, R>);
171171

172-
impl<G: Scope, K, R: Semigroup> From<Collection<G, K, R>> for KeyCollection<G, K, R> {
173-
fn from(value: Collection<G, K, R>) -> Self {
172+
impl<G: Scope, K, R: Semigroup> From<VecCollection<G, K, R>> for KeyCollection<G, K, R> {
173+
fn from(value: VecCollection<G, K, R>) -> Self {
174174
KeyCollection(value)
175175
}
176176
}
@@ -271,13 +271,13 @@ where
271271
let mut batches = BTreeMap::new();
272272

273273
move |input, output| {
274-
while let Some((time, data)) = input.next() {
274+
input.for_each(|time, data| {
275275
batches.extend(
276276
data.iter()
277277
.map(|batch| (Rc::as_ptr(batch), Rc::downgrade(batch))),
278278
);
279279
output.session(&time).give_container(data);
280-
}
280+
});
281281
let Some(trace) = trace.upgrade() else {
282282
return;
283283
};

0 commit comments

Comments
 (0)