{ "extensionUris": [{ "extensionUriAnchor": 1, "uri": "/functions_boolean.yaml" }, { "extensionUriAnchor": 3, "uri": "/functions_arithmetic_decimal.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": "multiply:dec_dec" } }, { "extensionFunction": { "extensionUriReference": 3, "functionAnchor": 3, "name": "sum:dec" } }, { "extensionFunction": { "extensionUriReference": 2, "functionAnchor": 4, "name": "gt:any_any" } }], "relations": [{ "root": { "input": { "sort": { "common": { "direct": { } }, "input": { "filter": { "common": { "direct": { } }, "input": { "aggregate": { "common": { "direct": { } }, "input": { "project": { "common": { "emit": { "outputMapping": [16, 17] } }, "input": { "filter": { "common": { "direct": { } }, "input": { "cross": { "common": { "direct": { } }, "left": { "cross": { "common": { "direct": { } }, "left": { "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": ["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": ["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": 1 } }, "rootReference": { } } } }, { "value": { "selection": { "directReference": { "structField": { "field": 5 } }, "rootReference": { } } } }] } } }, { "value": { "scalarFunction": { "functionReference": 1, "outputType": { "bool": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 8 } }, "rootReference": { } } } }, { "value": { "selection": { "directReference": { "structField": { "field": 12 } }, "rootReference": { } } } }] } } }, { "value": { "scalarFunction": { "functionReference": 1, "outputType": { "bool": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 13 } }, "rootReference": { } } } }, { "value": { "literal": { "string": "JAPAN" } } }] } } }] } } } }, "expressions": [{ "selection": { "directReference": { "structField": { } }, "rootReference": { } } }, { "scalarFunction": { "functionReference": 2, "outputType": { "decimal": { "scale": 2, "precision": 19, "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 3 } }, "rootReference": { } } } }, { "value": { "cast": { "type": { "decimal": { "precision": 19, "nullability": "NULLABILITY_REQUIRED" } }, "input": { "selection": { "directReference": { "structField": { "field": 2 } }, "rootReference": { } } }, "failureBehavior": "FAILURE_BEHAVIOR_THROW_EXCEPTION" } } }] } }] } }, "groupings": [{ "groupingExpressions": [{ "selection": { "directReference": { "structField": { } }, "rootReference": { } } }] }], "measures": [{ "measure": { "functionReference": 3, "phase": "AGGREGATION_PHASE_INITIAL_TO_RESULT", "outputType": { "decimal": { "scale": 2, "precision": 19, "nullability": "NULLABILITY_NULLABLE" } }, "invocation": "AGGREGATION_INVOCATION_ALL", "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 1 } }, "rootReference": { } } } }] } }] } }, "condition": { "scalarFunction": { "functionReference": 4, "outputType": { "bool": { "nullability": "NULLABILITY_NULLABLE" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 1 } }, "rootReference": { } } } }, { "value": { "subquery": { "scalar": { "input": { "project": { "common": { "emit": { "outputMapping": [1] } }, "input": { "aggregate": { "common": { "direct": { } }, "input": { "project": { "common": { "emit": { "outputMapping": [16] } }, "input": { "filter": { "common": { "direct": { } }, "input": { "cross": { "common": { "direct": { } }, "left": { "cross": { "common": { "direct": { } }, "left": { "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": ["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": ["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": 1 } }, "rootReference": { } } } }, { "value": { "selection": { "directReference": { "structField": { "field": 5 } }, "rootReference": { } } } }] } } }, { "value": { "scalarFunction": { "functionReference": 1, "outputType": { "bool": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 8 } }, "rootReference": { } } } }, { "value": { "selection": { "directReference": { "structField": { "field": 12 } }, "rootReference": { } } } }] } } }, { "value": { "scalarFunction": { "functionReference": 1, "outputType": { "bool": { "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 13 } }, "rootReference": { } } } }, { "value": { "literal": { "string": "JAPAN" } } }] } } }] } } } }, "expressions": [{ "scalarFunction": { "functionReference": 2, "outputType": { "decimal": { "scale": 2, "precision": 19, "nullability": "NULLABILITY_REQUIRED" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { "field": 3 } }, "rootReference": { } } } }, { "value": { "cast": { "type": { "decimal": { "precision": 19, "nullability": "NULLABILITY_REQUIRED" } }, "input": { "selection": { "directReference": { "structField": { "field": 2 } }, "rootReference": { } } }, "failureBehavior": "FAILURE_BEHAVIOR_THROW_EXCEPTION" } } }] } }] } }, "groupings": [{ }], "measures": [{ "measure": { "functionReference": 3, "phase": "AGGREGATION_PHASE_INITIAL_TO_RESULT", "outputType": { "decimal": { "scale": 2, "precision": 19, "nullability": "NULLABILITY_NULLABLE" } }, "invocation": "AGGREGATION_INVOCATION_ALL", "arguments": [{ "value": { "selection": { "directReference": { "structField": { } }, "rootReference": { } } } }] } }] } }, "expressions": [{ "scalarFunction": { "functionReference": 2, "outputType": { "decimal": { "scale": 12, "precision": 19, "nullability": "NULLABILITY_NULLABLE" } }, "arguments": [{ "value": { "selection": { "directReference": { "structField": { } }, "rootReference": { } } } }, { "value": { "literal": { "decimal": { "value": "QEIPAAAAAAAAAAAAAAAAAA==", "precision": 11, "scale": 10 } } } }] } }] } } } } } }] } } } }, "sorts": [{ "expr": { "selection": { "directReference": { "structField": { "field": 1 } }, "rootReference": { } } }, "direction": "SORT_DIRECTION_DESC_NULLS_FIRST" }] } }, "names": ["PS_PARTKEY", "value"] } }] }