{ "extensionUris": [{ "extensionUriAnchor": 1, "uri": "/functions_boolean.yaml" }, { "extensionUriAnchor": 4, "uri": "/functions_arithmetic_decimal.yaml" }, { "extensionUriAnchor": 2, "uri": "/functions_datetime.yaml" }, { "extensionUriAnchor": 3, "uri": "/functions_comparison.yaml" }], "extensions": [{ "extensionFunction": { "extensionUriReference": 1, "name": "and:bool" } }, { "extensionFunction": { "extensionUriReference": 2, "functionAnchor": 1, "name": "gte:date_date" } }, { "extensionFunction": { "extensionUriReference": 2, "functionAnchor": 2, "name": "lt:date_date" } }, { "extensionFunction": { "extensionUriReference": 3, "functionAnchor": 3, "name": "gte:any_any" } }, { "extensionFunction": { "extensionUriReference": 3, "functionAnchor": 4, "name": "lte:any_any" } }, { "extensionFunction": { "extensionUriReference": 3, "functionAnchor": 5, "name": "lt:any_any" } }, { "extensionFunction": { "extensionUriReference": 4, "functionAnchor": 6, "name": "multiply:dec_dec" } }, { "extensionFunction": { "extensionUriReference": 4, "functionAnchor": 7, "name": "sum:dec" } }], "relations": [{ "root": { "input": { "aggregate": { "common": { "direct": { } }, "input": { "project": { "common": { "emit": { "outputMapping": [16] } }, "input": { "filter": { "common": { "direct": { } }, "input": { "read": { "common": { "direct": { } }, "baseSchema": { "names": ["L_ORDERKEY", "L_PARTKEY", "L_SUPPKEY", "L_LINENUMBER", "L_QUANTITY", "L_EXTENDEDPRICE", "L_DISCOUNT", "L_TAX", "L_RETURNFLAG", "L_LINESTATUS", "L_SHIPDATE", "L_COMMITDATE", "L_RECEIPTDATE", "L_SHIPINSTRUCT", "L_SHIPMODE", "L_COMMENT"], "struct": { "types": [{ "i64": { "nullability": "NULLABILITY_REQUIRED" } }, { "i64": { "nullability": "NULLABILITY_REQUIRED" } }, { "i64": { "nullability": "NULLABILITY_REQUIRED" } }, { "i64": { "nullability": "NULLABILITY_REQUIRED" } }, { "decimal": { "scale": 2, "precision": 15, "nullability": "NULLABILITY_REQUIRED" } }, { "decimal": { "scale": 2, "precision": 15, "nullability": "NULLABILITY_REQUIRED" } }, { "decimal": { "scale": 2, "precision": 15, "nullability": "NULLABILITY_REQUIRED" } }, { "decimal": { "scale": 2, "precision": 15, "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }, { "date": { "nullability": "NULLABILITY_REQUIRED" } }, { "date": { "nullability": "NULLABILITY_REQUIRED" } }, { "date": { "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }], "nullability": "NULLABILITY_REQUIRED" } }, "namedTable": { "names": ["LINEITEM"] } } }, "condition": { "scalarFunction": { "outputType": { "bool": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "scalarFunction": { "functionReference": 1, "outputType": { "bool": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 10 } }, "rootReference": { } } } }, { "value": { "cast": { "type": { "date": { "nullability": "NULLABILITY_REQUIRED" } }, "input": { "literal": { "fixedChar": "1994-01-01" } }, "failureBehavior": "FAILURE_BEHAVIOR_THROW_EXCEPTION" } } }] } } }, { "value": { "scalarFunction": { "functionReference": 2, "outputType": { "bool": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 10 } }, "rootReference": { } } } }, { "value": { "cast": { "type": { "date": { "nullability": "NULLABILITY_REQUIRED" } }, "input": { "literal": { "fixedChar": "1995-01-01" } }, "failureBehavior": "FAILURE_BEHAVIOR_THROW_EXCEPTION" } } }] } } }, { "value": { "scalarFunction": { "functionReference": 3, "outputType": { "bool": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 6 } }, "rootReference": { } } } }, { "value": { "literal": { "decimal": { "value": "BQAAAAAAAAAAAAAAAAAAAA==", "precision": 3, "scale": 2 } } } }] } } }, { "value": { "scalarFunction": { "functionReference": 4, "outputType": { "bool": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 6 } }, "rootReference": { } } } }, { "value": { "literal": { "decimal": { "value": "BwAAAAAAAAAAAAAAAAAAAA==", "precision": 3, "scale": 2 } } } }] } } }, { "value": { "scalarFunction": { "functionReference": 5, "outputType": { "bool": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 4 } }, "rootReference": { } } } }, { "value": { "cast": { "type": { "decimal": { "scale": 2, "precision": 15, "nullability": "NULLABILITY_REQUIRED" } }, "input": { "literal": { "i32": 24 } }, "failureBehavior": "FAILURE_BEHAVIOR_THROW_EXCEPTION" } } }] } } }] } } } }, "expressions": [{ "scalarFunction": { "functionReference": 6, "outputType": { "decimal": { "scale": 4, "precision": 19, "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 5 } }, "rootReference": { } } } }, { "value": { "selection": { "directReference": { "structField": { "field": 6 } }, "rootReference": { } } } }] } }] } }, "groupings": [{ }], "measures": [{ "measure": { "functionReference": 7, "phase": "AGGREGATION_PHASE_INITIAL_TO_RESULT", "outputType": { "decimal": { "scale": 4, "precision": 19, "nullability": "NULLABILITY_NULLABLE" } }, "invocation": "AGGREGATION_INVOCATION_ALL", "arguments": [{ "value": { "selection": { "directReference": { "structField": { } }, "rootReference": { } } } }] } }] } }, "names": ["REVENUE"] } }] }