cda-group / arcon

State-first Streaming Applications in Rust
https://cda-group.github.io/arcon/
Apache License 2.0
175 stars 17 forks source link

Enforce ToArrow trait on relevant indexes #273

Open Max-Meldrum opened 2 years ago

Max-Meldrum commented 2 years ago

Related to #210.

One option is to force ToArrow trait on ArconType. But this would mean limiting what data can be sent through the dataflow. Instead the better option I think is to enforce ToArrow on state indexes as this is where it will be used.

pub trait IndexValue: Value + ToArrow {}
impl<T> IndexValue for T where T: Value + ToArrow {}