Skip to main content

check_purification

Function check_purification 

Source
pub fn check_purification(
    catalog: &impl SessionCatalog,
    session: &dyn SessionMetadata,
    source: Option<StatementSource>,
    resolved_ids: &ResolvedIds,
) -> Result<(), UnauthorizedError>
Expand description

Authorizes a statement for purification, which runs before planning and so escapes the check_plan gate. source is the existing source the statement would drive, as resolved by crate::pure::statement_source.

The requirements are the same ones planning enforces later, so a statement that passes here can still be rejected by check_plan, never the reverse.