Skip to content

Commit

Permalink
feat(hydroflow_lang): Add FloTypes to operators, for source check
Browse files Browse the repository at this point in the history
  • Loading branch information
MingweiSamuel committed Nov 26, 2024
1 parent 31be16a commit 76726ab
Show file tree
Hide file tree
Showing 70 changed files with 102 additions and 17 deletions.
8 changes: 4 additions & 4 deletions hydroflow_lang/src/graph/flat_graph_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use syn::{Error, Ident, ItemUse};
use super::ops::defer_tick::DEFER_TICK;
use super::ops::source_iter::SOURCE_ITER;
use super::ops::source_stream::SOURCE_STREAM;
use super::ops::FloType;
use super::{GraphEdgeId, GraphLoopId, GraphNode, GraphNodeId, HydroflowGraph, PortIndexValue};
use crate::diagnostic::{Diagnostic, Level};
use crate::graph::graph_algorithms;
Expand Down Expand Up @@ -937,10 +938,9 @@ impl FlatGraphBuilder {
let Some(_loop_id) = self.flat_graph.node_loop(node_id) else {
continue;
};
// TODO(mingwei): don't hardcode source names, add prop to `op_constraints`.
if SOURCE_STREAM.name == op_inst.op_constraints.name
|| SOURCE_ITER.name == op_inst.op_constraints.name
{

// Source operators must be at the top level.
if Some(FloType::Source) == op_inst.op_constraints.flo_type {
self.diagnostics.push(Diagnostic::spanned(
node.span(),
Level::Error,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/_lattice_fold_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ pub const _LATTICE_FOLD_BATCH: OperatorConstraints = OperatorConstraints {
num_args: 0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: Some(|| PortListSpec::Fixed(parse_quote! { input, signal })),
ports_out: None,
input_delaytype_fn: |_| Some(DelayType::MonotoneAccum),
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/_lattice_join_fused_join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ pub const _LATTICE_JOIN_FUSED_JOIN: OperatorConstraints = OperatorConstraints {
type_args: &(2..=2),
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: Some(|| super::PortListSpec::Fixed(parse_quote! { 0, 1 })),
ports_out: None,
input_delaytype_fn: |_| Some(DelayType::MonotoneAccum),
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/anti_join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub const ANTI_JOIN: OperatorConstraints = OperatorConstraints {
// to prevent reading uncleared data if this subgraph doesn't run.
// https://github.com/hydro-project/hydroflow/issues/1298
has_singleton_output: false,
flo_type: None,
ports_inn: Some(|| super::PortListSpec::Fixed(parse_quote! { pos, neg })),
ports_out: None,
input_delaytype_fn: |idx| match idx {
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/anti_join_multiset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub const ANTI_JOIN_MULTISET: OperatorConstraints = OperatorConstraints {
// to prevent reading uncleared data if this subgraph doesn't run.
// https://github.com/hydro-project/hydroflow/issues/1298
has_singleton_output: false,
flo_type: None,
ports_inn: Some(|| super::PortListSpec::Fixed(parse_quote! { pos, neg })),
ports_out: None,
input_delaytype_fn: |idx| match idx {
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/assert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pub const ASSERT: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/assert_eq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub const ASSERT_EQ: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pub const CHAIN: OperatorConstraints = OperatorConstraints {
num_args: 0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |idx| match idx {
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/cross_join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ pub const CROSS_JOIN: OperatorConstraints = OperatorConstraints {
type_args: &(0..=1),
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: Some(|| super::PortListSpec::Fixed(parse_quote! { 0, 1 })),
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/cross_join_multiset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pub const CROSS_JOIN_MULTISET: OperatorConstraints = OperatorConstraints {
type_args: &(0..=1),
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: Some(|| super::PortListSpec::Fixed(parse_quote! { 0, 1 })),
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/cross_singleton.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pub const CROSS_SINGLETON: OperatorConstraints = OperatorConstraints {
num_args: 0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: Some(|| super::PortListSpec::Fixed(parse_quote! { input, single })),
ports_out: None,
input_delaytype_fn: |idx| match idx {
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/defer_signal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pub const DEFER_SIGNAL: OperatorConstraints = OperatorConstraints {
num_args: 0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: Some(|| super::PortListSpec::Fixed(parse_quote! { input, signal })),
ports_out: None,
input_delaytype_fn: |_| Some(DelayType::Stratum),
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/defer_tick.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ pub const DEFER_TICK: OperatorConstraints = OperatorConstraints {
type_args: &(0..=1),
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| Some(DelayType::Tick),
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/defer_tick_lazy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub const DEFER_TICK_LAZY: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| Some(DelayType::TickLazy),
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/demux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ pub const DEMUX: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: Some(|| PortListSpec::Variadic),
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/demux_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ pub const DEMUX_ENUM: OperatorConstraints = OperatorConstraints {
type_args: RANGE_1,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: Some(|| PortListSpec::Variadic),
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/dest_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pub const DEST_FILE: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/dest_sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ pub const DEST_SINK: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/dest_sink_serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pub const DEST_SINK_SERDE: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/difference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pub const DIFFERENCE: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: Some(|| super::PortListSpec::Fixed(parse_quote! { pos, neg })),
ports_out: None,
input_delaytype_fn: |idx| match idx {
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/difference_multiset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pub const DIFFERENCE_MULTISET: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: Some(|| super::PortListSpec::Fixed(parse_quote! { pos, neg })),
ports_out: None,
input_delaytype_fn: |idx| match idx {
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/enumerate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pub const ENUMERATE: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pub const FILTER: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/filter_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pub const FILTER_MAP: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/flat_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pub const FLAT_MAP: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/flatten.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub const FLATTEN: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/fold.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ pub const FOLD: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: true,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| Some(DelayType::Stratum),
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/fold_keyed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ pub const FOLD_KEYED: OperatorConstraints = OperatorConstraints {
// to prevent reading uncleared data if this subgraph doesn't run.
// https://github.com/hydro-project/hydroflow/issues/1298
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| Some(DelayType::Stratum),
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/for_each.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pub const FOR_EACH: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pub const IDENTITY: OperatorConstraints = OperatorConstraints {
type_args: &(0..=1),
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/initialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pub const INITIALIZE: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/inspect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pub const INSPECT: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ pub const JOIN: OperatorConstraints = OperatorConstraints {
type_args: &(0..=1),
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: Some(|| super::PortListSpec::Fixed(parse_quote! { 0, 1 })),
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/join_fused.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ pub const JOIN_FUSED: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: Some(|| super::PortListSpec::Fixed(parse_quote! { 0, 1 })),
ports_out: None,
input_delaytype_fn: |_| Some(DelayType::Stratum),
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/join_fused_lhs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pub const JOIN_FUSED_LHS: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: Some(|| super::PortListSpec::Fixed(parse_quote! { 0, 1 })),
ports_out: None,
input_delaytype_fn: |idx| match idx {
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/join_fused_rhs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub const JOIN_FUSED_RHS: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: Some(|| super::PortListSpec::Fixed(parse_quote! { 0, 1 })),
ports_out: None,
input_delaytype_fn: |idx| match idx {
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/join_multiset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub const JOIN_MULTISET: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: Some(|| super::PortListSpec::Fixed(parse_quote! { 0, 1 })),
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/lattice_bimorphism.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ pub const LATTICE_BIMORPHISM: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: Some(|| super::PortListSpec::Fixed(parse_quote! { 0, 1 })),
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/lattice_fold.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pub const LATTICE_FOLD: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| Some(DelayType::MonotoneAccum),
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/lattice_reduce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pub const LATTICE_REDUCE: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| Some(DelayType::MonotoneAccum),
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pub const MAP: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
18 changes: 18 additions & 0 deletions hydroflow_lang/src/graph/ops/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ pub struct OperatorConstraints {
/// If true, [`WriteContextArgs::singleton_output_ident`] will be set to a meaningful value in
/// the [`Self::write_fn`] invocation.
pub has_singleton_output: bool,
/// Flo semantics type.
pub flo_type: Option<FloType>,

/// What named or numbered input ports to expect?
pub ports_inn: Option<fn() -> PortListSpec>,
Expand Down Expand Up @@ -541,3 +543,19 @@ impl OperatorCategory {
}
}
}

/// Operator type for Flo semantics.
#[derive(Clone, Copy, PartialOrd, Ord, PartialEq, Eq, Debug)]
pub enum FloType {
<<<<<<< HEAD

Check failure on line 550 in hydroflow_lang/src/graph/ops/mod.rs

View workflow job for this annotation

GitHub Actions / Check WebAssembly (pinned-nightly)

encountered diff marker

Check failure on line 550 in hydroflow_lang/src/graph/ops/mod.rs

View workflow job for this annotation

GitHub Actions / Docs (rustdoc)

encountered diff marker

Check failure on line 550 in hydroflow_lang/src/graph/ops/mod.rs

View workflow job for this annotation

GitHub Actions / Test Suite (WebAssembly) (pinned-nightly)

encountered diff marker
Source,
Windowing,
=======
/// A source operator, which must be at the top level.
Source,
/// A windowing operator, for moving data into a loop context.
Windowing,
/// An un-windowing operator, for moving data out of a loop context.
>>>>>>> a44ec015fac (feat(hydroflow_lang): Add `FloType`s to operators, for source check)

Check failure on line 559 in hydroflow_lang/src/graph/ops/mod.rs

View workflow job for this annotation

GitHub Actions / Check WebAssembly (pinned-nightly)

unknown start of token: `

Check failure on line 559 in hydroflow_lang/src/graph/ops/mod.rs

View workflow job for this annotation

GitHub Actions / Check WebAssembly (pinned-nightly)

unknown start of token: `

Check failure on line 559 in hydroflow_lang/src/graph/ops/mod.rs

View workflow job for this annotation

GitHub Actions / Docs (rustdoc)

unknown start of token: `

Check failure on line 559 in hydroflow_lang/src/graph/ops/mod.rs

View workflow job for this annotation

GitHub Actions / Docs (rustdoc)

unknown start of token: `

Check failure on line 559 in hydroflow_lang/src/graph/ops/mod.rs

View workflow job for this annotation

GitHub Actions / Test Suite (WebAssembly) (pinned-nightly)

unknown start of token: `

Check failure on line 559 in hydroflow_lang/src/graph/ops/mod.rs

View workflow job for this annotation

GitHub Actions / Test Suite (WebAssembly) (pinned-nightly)

unknown start of token: `
Unwindowing,
}
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/multiset_delta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ pub const MULTISET_DELTA: OperatorConstraints = OperatorConstraints {
// https://github.com/hydro-project/hydroflow/issues/1298
// If `'tick` lifetimes are added.
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/next_stratum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub const NEXT_STRATUM: OperatorConstraints = OperatorConstraints {
type_args: RANGE_0,
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| Some(DelayType::Stratum),
Expand Down
1 change: 1 addition & 0 deletions hydroflow_lang/src/graph/ops/null.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pub const NULL: OperatorConstraints = OperatorConstraints {
type_args: &(0..=1),
is_external_input: false,
has_singleton_output: false,
flo_type: None,
ports_inn: None,
ports_out: None,
input_delaytype_fn: |_| None,
Expand Down
Loading

0 comments on commit 76726ab

Please sign in to comment.