Skip to main content

check_query_policies

Function check_query_policies 

Source
pub(crate) fn check_query_policies(
    catalog: &Catalog,
    session: &Session,
    cluster_id: ClusterId,
    plan: impl Into<QueryPlanFeatures>,
) -> Result<(), AdapterError>
Expand description

Check before installing a temporary dataflow or issuing a fast-path read.

The catalog snapshot is the admission boundary. Policy changes apply to subsequent queries, not retroactively to work already being planned.