Files
turso/core/incremental/mod.rs
Glauber Costa b419db489a Implement the DBSP merge operator
The Merge operator is a stateless operator that merges two deltas.
There are two modes: Distinct, where we merge together values that
are the same, and All, where we preserve all values. We use the rowid of
the hashable row to guarantee that: In Distinct mode, the rowid is set
to 0 in both sides. If they values are the same, they will hash to the
same thing. For All, the rowids are different.

The merge operator is used for the UNION statement, which is a
cornerstone of Recursive CTEs.
2025-09-21 21:00:27 -03:00

14 lines
274 B
Rust

pub mod aggregate_operator;
pub mod compiler;
pub mod cursor;
pub mod dbsp;
pub mod expr_compiler;
pub mod filter_operator;
pub mod input_operator;
pub mod join_operator;
pub mod merge_operator;
pub mod operator;
pub mod persistence;
pub mod project_operator;
pub mod view;