Expand description
Set Operations Executor
Provides UNION, INTERSECT, and EXCEPT operations for query results.
§Operations
- UNION: Combines results from two queries (with deduplication)
- UNION ALL: Combines results without deduplication
- INTERSECT: Returns only rows that appear in both queries
- EXCEPT: Returns rows from the first query that don’t appear in the second
§Implementation
Uses hash-based algorithms for O(n+m) performance where n and m are the sizes of the input result sets.
Structs§
- SetOp
Stats - Statistics for set operations
Enums§
- SetOp
Type - Type of set operation
Functions§
- execute_
set_ op - Execute a set operation on two binding vectors
- set_
except - EXCEPT operation (set difference)
- set_
intersect - INTERSECT operation
- set_
union - UNION operation