pub struct WindowPlanner;Expand description
High-level window planner that validates semantic names against metadata.
Converts WindowRequest (user-friendly semantic names) to WindowExecutionPlan
(SQL expressions ready for execution).
§Example
ⓘ
let request = WindowRequest { ... };
let metadata = FactTableMetadata { ... };
let plan = WindowPlanner::plan(request, metadata)?;
// plan now has SQL expressions like "dimensions->>'category'" instead of "category"Implementations§
Source§impl WindowPlanner
impl WindowPlanner
Sourcepub fn plan(
request: WindowRequest,
metadata: FactTableMetadata,
) -> Result<WindowExecutionPlan>
pub fn plan( request: WindowRequest, metadata: FactTableMetadata, ) -> Result<WindowExecutionPlan>
Convert high-level WindowRequest to executable WindowExecutionPlan.
§Arguments
request- High-level window request with semantic namesmetadata- Fact table metadata for validation and expression generation
§Errors
Returns error if:
- Referenced measures don’t exist in metadata
- Referenced filter columns don’t exist
- Window function field references are invalid
Auto Trait Implementations§
impl Freeze for WindowPlanner
impl RefUnwindSafe for WindowPlanner
impl Send for WindowPlanner
impl Sync for WindowPlanner
impl Unpin for WindowPlanner
impl UnsafeUnpin for WindowPlanner
impl UnwindSafe for WindowPlanner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more