Skip to main content

nested_type_is_emitted

Function nested_type_is_emitted 

Source
pub fn nested_type_is_emitted(
    analyzed: &AnalyzedQuery,
    supported: &[NestedStructDef],
    prefix: &str,
    sql_name: &str,
) -> bool
Expand description

Whether sql_name is reachable from a nested-aggregate struct the backend actually emitted a definition for.

The supported filter is what keeps a degraded backend’s output byte-identical: a type reachable only through a nested struct that was rewritten back to plain json must not be emitted at all.