{ "extensionUris": [{ "extensionUriAnchor": 1, "uri": "/functions_boolean.yaml" }, { "extensionUriAnchor": 3, "uri": "/functions_string.yaml" }, { "extensionUriAnchor": 5, "uri": "/functions_arithmetic_decimal.yaml" }, { "extensionUriAnchor": 4, "uri": "/functions_datetime.yaml" }, { "extensionUriAnchor": 2, "uri": "/functions_comparison.yaml" }], "extensions": [{ "extensionFunction": { "extensionUriReference": 1, "name": "and:bool" } }, { "extensionFunction": { "extensionUriReference": 2, "functionAnchor": 1, "name": "equal:any_any" } }, { "extensionFunction": { "extensionUriReference": 3, "functionAnchor": 2, "name": "like:str_str" } }, { "extensionFunction": { "extensionUriReference": 4, "functionAnchor": 3, "name": "extract:req_date" } }, { "extensionFunction": { "extensionUriReference": 5, "functionAnchor": 4, "name": "subtract:dec_dec" } }, { "extensionFunction": { "extensionUriReference": 5, "functionAnchor": 5, "name": "multiply:dec_dec" } }, { "extensionFunction": { "extensionUriReference": 5, "functionAnchor": 6, "name": "sum:dec" } }], "relations": [{ "root": { "input": { "sort": { "common": { "direct": { } }, "input": { "aggregate": { "common": { "direct": { } }, "input": { "project": { "common": { "emit": { "outputMapping": [50, 51, 52] } }, "input": { "filter": { "common": { "direct": { } }, "input": { "cross": { "common": { "direct": { } }, "left": { "cross": { "common": { "direct": { } }, "left": { "cross": { "common": { "direct": { } }, "left": { "cross": { "common": { "direct": { } }, "left": { "cross": { "common": { "direct": { } }, "left": { "read": { "common": { "direct": { } }, "baseSchema": { "names": ["P_PARTKEY", "P_NAME", "P_MFGR", "P_BRAND", "P_TYPE", "P_SIZE", "P_CONTAINER", "P_RETAILPRICE", "P_COMMENT"], "struct": { "types": [{ "i64": { "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }, { "i32": { "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }, { "decimal": { "scale": 2, "precision": 15, "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }], "nullability": "NULLABILITY_REQUIRED" } }, "namedTable": { "names": ["PART"] } } }, "right": { "read": { "common": { "direct": { } }, "baseSchema": { "names": ["S_SUPPKEY", "S_NAME", "S_ADDRESS", "S_NATIONKEY", "S_PHONE", "S_ACCTBAL", "S_COMMENT"], "struct": { "types": [{ "i64": { "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }, { "i32": { "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }, { "decimal": { "scale": 2, "precision": 15, "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }], "nullability": "NULLABILITY_REQUIRED" } }, "namedTable": { "names": ["SUPPLIER"] } } } } }, "right": { "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"] } } } } }, "right": { "read": { "common": { "direct": { } }, "baseSchema": { "names": ["PS_PARTKEY", "PS_SUPPKEY", "PS_AVAILQTY", "PS_SUPPLYCOST", "PS_COMMENT"], "struct": { "types": [{ "i64": { "nullability": "NULLABILITY_REQUIRED" } }, { "i64": { "nullability": "NULLABILITY_REQUIRED" } }, { "i64": { "nullability": "NULLABILITY_REQUIRED" } }, { "decimal": { "scale": 2, "precision": 15, "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }], "nullability": "NULLABILITY_REQUIRED" } }, "namedTable": { "names": ["PARTSUPP"] } } } } }, "right": { "read": { "common": { "direct": { } }, "baseSchema": { "names": ["O_ORDERKEY", "O_CUSTKEY", "O_ORDERSTATUS", "O_TOTALPRICE", "O_ORDERDATE", "O_ORDERPRIORITY", "O_CLERK", "O_SHIPPRIORITY", "O_COMMENT"], "struct": { "types": [{ "i64": { "nullability": "NULLABILITY_REQUIRED" } }, { "i64": { "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }, { "decimal": { "scale": 2, "precision": 15, "nullability": "NULLABILITY_REQUIRED" } }, { "date": { "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }, { "i32": { "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }], "nullability": "NULLABILITY_REQUIRED" } }, "namedTable": { "names": ["ORDERS"] } } } } }, "right": { "read": { "common": { "direct": { } }, "baseSchema": { "names": ["N_NATIONKEY", "N_NAME", "N_REGIONKEY", "N_COMMENT"], "struct": { "types": [{ "i32": { "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }, { "i32": { "nullability": "NULLABILITY_REQUIRED" } }, { "string": { "nullability": "NULLABILITY_REQUIRED" } }], "nullability": "NULLABILITY_REQUIRED" } }, "namedTable": { "names": ["NATION"] } } } } }, "condition": { "scalarFunction": { "outputType": { "bool": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "scalarFunction": { "functionReference": 1, "outputType": { "bool": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 9 } }, "rootReference": { } } } }, { "value": { "selection": { "directReference": { "structField": { "field": 18 } }, "rootReference": { } } } }] } } }, { "value": { "scalarFunction": { "functionReference": 1, "outputType": { "bool": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 33 } }, "rootReference": { } } } }, { "value": { "selection": { "directReference": { "structField": { "field": 18 } }, "rootReference": { } } } }] } } }, { "value": { "scalarFunction": { "functionReference": 1, "outputType": { "bool": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 32 } }, "rootReference": { } } } }, { "value": { "selection": { "directReference": { "structField": { "field": 17 } }, "rootReference": { } } } }] } } }, { "value": { "scalarFunction": { "functionReference": 1, "outputType": { "bool": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { } }, "rootReference": { } } } }, { "value": { "selection": { "directReference": { "structField": { "field": 17 } }, "rootReference": { } } } }] } } }, { "value": { "scalarFunction": { "functionReference": 1, "outputType": { "bool": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 37 } }, "rootReference": { } } } }, { "value": { "selection": { "directReference": { "structField": { "field": 16 } }, "rootReference": { } } } }] } } }, { "value": { "scalarFunction": { "functionReference": 1, "outputType": { "bool": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 12 } }, "rootReference": { } } } }, { "value": { "selection": { "directReference": { "structField": { "field": 46 } }, "rootReference": { } } } }] } } }, { "value": { "scalarFunction": { "functionReference": 2, "outputType": { "bool": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 1 } }, "rootReference": { } } } }, { "value": { "cast": { "type": { "string": { "nullability": "NULLABILITY_REQUIRED" } }, "input": { "literal": { "fixedChar": "%green%" } }, "failureBehavior": "FAILURE_BEHAVIOR_THROW_EXCEPTION" } } }] } } }] } } } }, "expressions": [{ "selection": { "directReference": { "structField": { "field": 47 } }, "rootReference": { } } }, { "scalarFunction": { "functionReference": 3, "outputType": { "i64": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "enum": "YEAR" }, { "value": { "selection": { "directReference": { "structField": { "field": 41 } }, "rootReference": { } } } }] } }, { "scalarFunction": { "functionReference": 4, "outputType": { "decimal": { "scale": 4, "precision": 19, "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "scalarFunction": { "functionReference": 5, "outputType": { "decimal": { "scale": 4, "precision": 19, "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 21 } }, "rootReference": { } } } }, { "value": { "scalarFunction": { "functionReference": 4, "outputType": { "decimal": { "scale": 2, "precision": 16, "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "cast": { "type": { "decimal": { "scale": 2, "precision": 15, "nullability": "NULLABILITY_REQUIRED" } }, "input": { "literal": { "i32": 1 } }, "failureBehavior": "FAILURE_BEHAVIOR_THROW_EXCEPTION" } } }, { "value": { "selection": { "directReference": { "structField": { "field": 22 } }, "rootReference": { } } } }] } } }] } } }, { "value": { "scalarFunction": { "functionReference": 5, "outputType": { "decimal": { "scale": 4, "precision": 19, "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 35 } }, "rootReference": { } } } }, { "value": { "selection": { "directReference": { "structField": { "field": 20 } }, "rootReference": { } } } }] } } }] } }] } }, "groupings": [{ "groupingExpressions": [{ "selection": { "directReference": { "structField": { } }, "rootReference": { } } }, { "selection": { "directReference": { "structField": { "field": 1 } }, "rootReference": { } } }] }], "measures": [{ "measure": { "functionReference": 6, "phase": "AGGREGATION_PHASE_INITIAL_TO_RESULT", "outputType": { "decimal": { "scale": 4, "precision": 19, "nullability": "NULLABILITY_NULLABLE" } }, "invocation": "AGGREGATION_INVOCATION_ALL", "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 2 } }, "rootReference": { } } } }] } }] } }, "sorts": [{ "expr": { "selection": { "directReference": { "structField": { } }, "rootReference": { } } }, "direction": "SORT_DIRECTION_ASC_NULLS_LAST" }, { "expr": { "selection": { "directReference": { "structField": { "field": 1 } }, "rootReference": { } } }, "direction": "SORT_DIRECTION_DESC_NULLS_FIRST" }] } }, "names": ["NATION", "O_YEAR", "SUM_PROFIT"] } }] }