@@ -33,6 +33,7 @@ use mz_persist_types::{Codec, Codec64};
33
33
use proptest_derive:: Arbitrary ;
34
34
use serde:: { Deserialize , Serialize } ;
35
35
use timely:: PartialOrder ;
36
+ use timely:: order:: TotalOrder ;
36
37
use timely:: progress:: { Antichain , Timestamp } ;
37
38
use tokio:: runtime:: Handle ;
38
39
use tracing:: { Instrument , debug_span, warn} ;
@@ -113,7 +114,7 @@ impl<K, V, T, D> Subscribe<K, V, T, D>
113
114
where
114
115
K : Debug + Codec ,
115
116
V : Debug + Codec ,
116
- T : Timestamp + Lattice + Codec64 + Sync ,
117
+ T : Timestamp + TotalOrder + Lattice + Codec64 + Sync ,
117
118
D : Semigroup + Codec64 + Send + Sync ,
118
119
{
119
120
fn new ( snapshot_parts : Vec < LeasedBatchPart < T > > , listen : Listen < K , V , T , D > ) -> Self {
@@ -150,7 +151,7 @@ impl<K, V, T, D> Subscribe<K, V, T, D>
150
151
where
151
152
K : Debug + Codec ,
152
153
V : Debug + Codec ,
153
- T : Timestamp + Lattice + Codec64 + Sync ,
154
+ T : Timestamp + TotalOrder + Lattice + Codec64 + Sync ,
154
155
D : Semigroup + Codec64 + Send + Sync ,
155
156
{
156
157
/// Equivalent to `next`, but rather than returning a [`LeasedBatchPart`],
@@ -195,7 +196,7 @@ impl<K, V, T, D> Subscribe<K, V, T, D>
195
196
where
196
197
K : Debug + Codec ,
197
198
V : Debug + Codec ,
198
- T : Timestamp + Lattice + Codec64 + Sync ,
199
+ T : Timestamp + TotalOrder + Lattice + Codec64 + Sync ,
199
200
D : Semigroup + Codec64 + Send + Sync ,
200
201
{
201
202
/// Politely expires this subscribe, releasing its lease.
@@ -238,7 +239,7 @@ impl<K, V, T, D> Listen<K, V, T, D>
238
239
where
239
240
K : Debug + Codec ,
240
241
V : Debug + Codec ,
241
- T : Timestamp + Lattice + Codec64 + Sync ,
242
+ T : Timestamp + TotalOrder + Lattice + Codec64 + Sync ,
242
243
D : Semigroup + Codec64 + Send + Sync ,
243
244
{
244
245
async fn new ( mut handle : ReadHandle < K , V , T , D > , as_of : Antichain < T > ) -> Self {
@@ -328,8 +329,7 @@ where
328
329
// batch the last time we called this) that are strictly less_than the
329
330
// batch upper to compute a new since. For totally ordered times
330
331
// (currently always the case in mz) self.frontier will always have a
331
- // single element and it will be less_than upper, but the following
332
- // logic is (hopefully) correct for partially order times as well. We
332
+ // single element and it will be less_than upper. We
333
333
// could also abuse the fact that every time we actually emit is
334
334
// guaranteed by definition to be less_than upper to be a bit more
335
335
// prompt, but this would involve a lot more temporary antichains and
@@ -365,7 +365,7 @@ impl<K, V, T, D> Listen<K, V, T, D>
365
365
where
366
366
K : Debug + Codec ,
367
367
V : Debug + Codec ,
368
- T : Timestamp + Lattice + Codec64 + Sync ,
368
+ T : Timestamp + TotalOrder + Lattice + Codec64 + Sync ,
369
369
D : Semigroup + Codec64 + Send + Sync ,
370
370
{
371
371
/// Attempt to pull out the next values of this subscription.
@@ -440,7 +440,7 @@ impl<K, V, T, D> Listen<K, V, T, D>
440
440
where
441
441
K : Debug + Codec ,
442
442
V : Debug + Codec ,
443
- T : Timestamp + Lattice + Codec64 + Sync ,
443
+ T : Timestamp + TotalOrder + Lattice + Codec64 + Sync ,
444
444
D : Semigroup + Codec64 + Send + Sync ,
445
445
{
446
446
/// Fetches the contents of `part` and returns its lease.
@@ -525,7 +525,7 @@ impl<K, V, T, D> ReadHandle<K, V, T, D>
525
525
where
526
526
K : Debug + Codec ,
527
527
V : Debug + Codec ,
528
- T : Timestamp + Lattice + Codec64 + Sync ,
528
+ T : Timestamp + TotalOrder + Lattice + Codec64 + Sync ,
529
529
D : Semigroup + Codec64 + Send + Sync ,
530
530
{
531
531
pub ( crate ) async fn new (
@@ -939,7 +939,7 @@ impl<K, V, T, D> ReadHandle<K, V, T, D>
939
939
where
940
940
K : Debug + Codec + Ord ,
941
941
V : Debug + Codec + Ord ,
942
- T : Timestamp + Lattice + Codec64 + Sync ,
942
+ T : Timestamp + TotalOrder + Lattice + Codec64 + Sync ,
943
943
D : Semigroup + Ord + Codec64 + Send + Sync ,
944
944
{
945
945
/// Generates a [Self::snapshot], and fetches all of the batches it
@@ -1135,7 +1135,7 @@ impl<K, V, T, D> ReadHandle<K, V, T, D>
1135
1135
where
1136
1136
K : Debug + Codec + Ord ,
1137
1137
V : Debug + Codec + Ord ,
1138
- T : Timestamp + Lattice + Codec64 + Sync ,
1138
+ T : Timestamp + TotalOrder + Lattice + Codec64 + Sync ,
1139
1139
D : Semigroup + Codec64 + Send + Sync ,
1140
1140
{
1141
1141
/// Generates a [Self::snapshot], and streams out all of the updates
@@ -1188,7 +1188,7 @@ impl<K, V, T, D> ReadHandle<K, V, T, D>
1188
1188
where
1189
1189
K : Debug + Codec + Ord ,
1190
1190
V : Debug + Codec + Ord ,
1191
- T : Timestamp + Lattice + Codec64 + Ord + Sync ,
1191
+ T : Timestamp + TotalOrder + Lattice + Codec64 + Sync ,
1192
1192
D : Semigroup + Ord + Codec64 + Send + Sync ,
1193
1193
{
1194
1194
/// Test helper to generate a [Self::snapshot] call that is expected to
0 commit comments