StaticHasChecks whether SQL contains composition tokens. Convenience wrapper for callers that need a fast guard.
StaticResolveResolves only the composition step: the composed queries are rendered with the static arguments written in their composition tokens and assembled as CTEs; the outer SQL itself is not rendered (its own template tags stay as written). For callers that run SQL with compositions but no parameter values (GetData).
OptionalouterParams: Record<string, string>OptionalinlineDependencies: QueryDependencySpec[]Error when a composition of the outer SQL passes a value of the outer query: without rendering there is no value to pass. Use Run for those.
StaticRunRuns the full rendering pipeline.
Raw SQL with potential composition tokens and template expressions
Pipeline context (platform, user, parameters, paging, etc.)
Final SQL, applied parameters, composition metadata, and diagnostic trace
RenderPipeline is the one entry point that turns query SQL into the SQL that runs, with enforced ordering and a diagnostic trace. Every path uses it: saved queries, ad hoc SQL, TestQuerySQL, specs and data contexts.
Pipeline order (a data dependency, not a convention):
QueryTemplate.Validate, Refresh mode); a template with errors is refused.{% if SortField %} ORDER BY … {% endif %}decides whether there is an ORDER BY.