{ "extensionUris": [ { "extensionUriAnchor": 1, "uri": "/functions_arithmetic.yaml" } ], "extensions": [ { "extensionFunction": { "extensionUriReference": 1, "functionAnchor": 0, "name": "sum:i32" } } ], "relations": [ { "root": { "input": { "project": { "common": { "emit": { "outputMapping": [ 3 ] } }, "input": { "read": { "common": { "direct": { } }, "baseSchema": { "names": [ "D", "PART", "ORD" ], "struct": { "types": [ { "i32": { "typeVariationReference": 0, "nullability": "NULLABILITY_NULLABLE" } }, { "i32": { "typeVariationReference": 0, "nullability": "NULLABILITY_NULLABLE" } }, { "i32": { "typeVariationReference": 0, "nullability": "NULLABILITY_NULLABLE" } } ], "typeVariationReference": 0, "nullability": "NULLABILITY_REQUIRED" } }, "namedTable": { "names": [ "DATA" ] } } }, "expressions": [ { "windowFunction": { "functionReference": 0, "partitions": [ { "selection": { "directReference": { "structField": { "field": 1 } }, "rootReference": { } } } ], "sorts": [ { "expr": { "selection": { "directReference": { "structField": { "field": 2 } }, "rootReference": { } } }, "direction": "SORT_DIRECTION_ASC_NULLS_LAST" } ], "upperBound": { "unbounded": { } }, "lowerBound": { "preceding": { "offset": "1" } }, "phase": "AGGREGATION_PHASE_INITIAL_TO_RESULT", "outputType": { "i32": { "typeVariationReference": 0, "nullability": "NULLABILITY_NULLABLE" } }, "args": [], "arguments": [ { "value": { "selection": { "directReference": { "structField": { "field": 0 } }, "rootReference": { } } } } ], "invocation": "AGGREGATION_INVOCATION_ALL", "options": [], "boundsType": "BOUNDS_TYPE_ROWS" } } ] } }, "names": [ "LEAD_EXPR" ] } } ], "expectedTypeUrls": [] }