Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmcsherry committed Nov 11, 2023
1 parent e7ee359 commit 44c7d5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/trace/implementations/ord.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub trait Layout {
}

/// A layout that uses vectors
pub struct Vector<U: Update, O: OrdOffset> {
pub struct Vector<U: Update, O: OrdOffset = usize> {
phantom: std::marker::PhantomData<(U, O)>,
}

Expand All @@ -99,7 +99,7 @@ impl<U: Update+Clone, O: OrdOffset> Layout for Vector<U, O> {
}

/// A layout based on timely stacks
pub struct TStack<U: Update, O: OrdOffset> {
pub struct TStack<U: Update, O: OrdOffset = usize> {
phantom: std::marker::PhantomData<(U, O)>,
}

Expand Down
6 changes: 3 additions & 3 deletions tests/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ use std::rc::Rc;
use timely::dataflow::operators::generic::OperatorInfo;
use timely::progress::{Antichain, frontier::AntichainRef};

use differential_dataflow::trace::implementations::ord::OrdValBatch;
use differential_dataflow::trace::implementations::ord::{OrdValBatch, Vector};
use differential_dataflow::trace::{Trace, TraceReader, Batch, Batcher};
use differential_dataflow::trace::cursor::Cursor;
use differential_dataflow::trace::implementations::spine_fueled::Spine;

pub type OrdValSpine<K, V, T, R> = Spine<Rc<OrdValBatch<K, V, T, R>>>;
pub type OrdValSpine<K, V, T, R> = Spine<Rc<OrdValBatch<Vector<((K, V), T, R)>>>>;

type IntegerTrace = OrdValSpine<u64, u64, usize, i64>;

fn get_trace() -> Spine<Rc<OrdValBatch<u64, u64, usize, i64>>> {
fn get_trace() -> Spine<Rc<OrdValBatch<Vector<((u64, u64), usize, i64)>>>> {
let op_info = OperatorInfo::new(0, 0, &[]);
let mut trace = IntegerTrace::new(op_info, None, None);
{
Expand Down

0 comments on commit 44c7d5a

Please sign in to comment.