diff --git a/itests/qtest/src/test/java/org/apache/hadoop/hive/cli/TestExplainCBOFormattedCliDriver.java b/itests/qtest/src/test/java/org/apache/hadoop/hive/cli/TestExplainCBOFormattedCliDriver.java new file mode 100644 index 000000000000..0d2e6faa5f13 --- /dev/null +++ b/itests/qtest/src/test/java/org/apache/hadoop/hive/cli/TestExplainCBOFormattedCliDriver.java @@ -0,0 +1,62 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.hadoop.hive.cli; + +import org.apache.hadoop.hive.cli.control.CliAdapter; +import org.apache.hadoop.hive.cli.control.CliConfigs; +import org.junit.ClassRule; +import org.junit.Rule; +import org.junit.Test; +import org.junit.rules.TestRule; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameters; + +import java.io.File; +import java.util.List; + +@RunWith(Parameterized.class) +public class TestExplainCBOFormattedCliDriver { + + static CliAdapter adapter = new CliConfigs.TPCDSFormattedCBOConfig().getCliAdapter(); + + @Parameters(name = "{0}") + public static List getParameters() throws Exception { + return adapter.getParameters(); + } + + @ClassRule + public static TestRule cliClassRule = adapter.buildClassRule(); + + @Rule + public TestRule cliTestRule = adapter.buildTestRule(); + + private final String name; + private final File qfile; + + public TestExplainCBOFormattedCliDriver(String name, File qfile) { + this.name = name; + this.qfile = qfile; + } + + @Test + public void testCliDriver() throws Exception { + adapter.runTest(name, qfile); + } + +} diff --git a/itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CliConfigs.java b/itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CliConfigs.java index 2b6bcd9015af..ff1357e1f542 100644 --- a/itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CliConfigs.java +++ b/itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CliConfigs.java @@ -20,12 +20,14 @@ import java.io.File; import java.net.MalformedURLException; import java.net.URL; +import java.util.EnumMap; import java.util.HashMap; import java.util.Map; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.ql.QTestMiniClusters; import org.apache.hadoop.hive.ql.QTestMiniClusters.MiniClusterType; +import org.apache.hadoop.hive.ql.hooks.ExplainFormattedCBOHook; import org.apache.hadoop.hive.ql.parse.CoreParseNegative; public class CliConfigs { @@ -355,6 +357,25 @@ public TPCDSCteCliConfig() { } } + public static class TPCDSFormattedCBOConfig extends AbstractCliConfig { + public TPCDSFormattedCBOConfig() { + super(CorePerfCliDriver.class); + setQueryDir("ql/src/test/queries/clientpositive/perf"); + setLogDir("itests/qtest/target/qfile-results/clientpositive/perf/tpcds30tb/json"); + setResultsDir("ql/src/test/results/clientpositive/perf/tpcds30tb/json"); + setHiveConfDir("data/conf/perf/tpcds30tb/tez"); + Map conf = new EnumMap<>(HiveConf.ConfVars.class); + conf.put(HiveConf.ConfVars.HIVE_EXPLAIN_FORMATTED_INDENT, "true"); + conf.put(HiveConf.ConfVars.SEMANTIC_ANALYZER_HOOK, ExplainFormattedCBOHook.class.getCanonicalName()); + setCustomConfigValueMap(conf); + setClusterType(MiniClusterType.LLAP_LOCAL); + setMetastoreType("postgres.tpcds"); + for (int i = 1; i < 100; i++) { + includeQuery("query" + i + ".q"); + } + } + } + public static class NegativeLlapLocalCliConfig extends AbstractCliConfig { public NegativeLlapLocalCliConfig() { super(CoreNegativeCliDriver.class); diff --git a/itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CorePerfCliDriver.java b/itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CorePerfCliDriver.java index e45385d182ef..bcafc57b705d 100644 --- a/itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CorePerfCliDriver.java +++ b/itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CorePerfCliDriver.java @@ -52,7 +52,9 @@ public void beforeClass() throws Exception { qt = new QTestUtil(QTestArguments.QTestArgumentsBuilder.instance().withOutDir(cliConfig.getResultsDir()) .withLogDir(cliConfig.getLogDir()).withClusterType(miniMR).withConfDir(hiveConfDir).withInitScript(initScript) - .withCleanupScript(cleanupScript).withLlapIo(false).build()); + .withCleanupScript(cleanupScript).withLlapIo(false) + .withCustomConfigValueMap(cliConfig.getCustomConfigValueMap()) + .build()); } @Override diff --git a/itests/util/src/main/java/org/apache/hadoop/hive/ql/hooks/ExplainFormattedCBOHook.java b/itests/util/src/main/java/org/apache/hadoop/hive/ql/hooks/ExplainFormattedCBOHook.java new file mode 100644 index 000000000000..d0c92675ab78 --- /dev/null +++ b/itests/util/src/main/java/org/apache/hadoop/hive/ql/hooks/ExplainFormattedCBOHook.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.hadoop.hive.ql.hooks; + +import org.apache.hadoop.hive.ql.optimizer.calcite.translator.ASTBuilder; +import org.apache.hadoop.hive.ql.parse.ASTNode; +import org.apache.hadoop.hive.ql.parse.AbstractSemanticAnalyzerHook; +import org.apache.hadoop.hive.ql.parse.HiveParser; +import org.apache.hadoop.hive.ql.parse.HiveSemanticAnalyzerHookContext; + +/** + * An analyzer hook for transforming plain EXPLAIN statements to EXPLAIN FORMATTED CBO. + */ +public class ExplainFormattedCBOHook extends AbstractSemanticAnalyzerHook { + @Override + public ASTNode preAnalyze(HiveSemanticAnalyzerHookContext context, ASTNode ast) { + if (ast.getType() == HiveParser.TOK_EXPLAIN) { + ast.addChild(ASTBuilder.createAST(HiveParser.KW_FORMATTED, "formatted")); + ast.addChild(ASTBuilder.createAST(HiveParser.KW_CBO, "cbo")); + } + return ast; + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query1.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query1.q.out new file mode 100644 index 000000000000..9a4ff92af145 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query1.q.out @@ -0,0 +1,2040 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_customer_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 80000000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_returns" + ], + "table:alias": "store_returns", + "inputs": [], + "rowCount": 8332595709, + "avgRowSize": 249, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "sr_return_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "sr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "sr_returned_date_sk" + ], + "colStats": [ + { + "name": "sr_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "sr_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "sr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "sr_returned_date_sk", + "ndv": 2003, + "minValue": 2450820, + "maxValue": 2452822 + }, + { + "name": "sr_return_time_sk", + "ndv": 32389, + "minValue": 28799, + "maxValue": 61199 + }, + { + "name": "sr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "sr_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "sr_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "sr_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "sr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "sr_ticket_number", + "ndv": 5065526774, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "sr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "sr_return_amt", + "ndv": 715216, + "minValue": 0, + "maxValue": 19643 + }, + { + "name": "sr_return_tax", + "ndv": 141365, + "minValue": 0, + "maxValue": 1714.37 + }, + { + "name": "sr_return_amt_inc_tax", + "ndv": 1520430, + "minValue": 0, + "maxValue": 21018.01 + }, + { + "name": "sr_return_ship_cost", + "ndv": 363000, + "minValue": 0, + "maxValue": 9975 + }, + { + "name": "sr_refunded_cash", + "ndv": 1187970, + "minValue": 0, + "maxValue": 18413.33 + }, + { + "name": "sr_reversed_charge", + "ndv": 924833, + "minValue": 0, + "maxValue": 18104.5 + }, + { + "name": "sr_store_credit", + "ndv": 935681, + "minValue": 0, + "maxValue": 17792.48 + }, + { + "name": "sr_net_loss", + "ndv": 848797, + "minValue": 0.5, + "maxValue": 11008.17 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 19, + "name": "$19" + } + ] + } + ] + }, + "rowCount": 6.074462271861001E9 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_customer_sk", + "sr_store_sk", + "sr_fee", + "sr_returned_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 19, + "name": "$19" + } + ], + "rowCount": 6.074462271861001E9 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "4", + "7" + ], + "rowCount": 9.98400137618642E12 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 9.98400137618642E11 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + "rowCount": 8.985601238567778E11 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_customer_sk", + "sr_store_sk", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 8.985601238567778E11 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 24, + "name": "$24" + }, + { + "literal": "NM", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + "rowCount": 255.6 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 255.6 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "11", + "14" + ], + "rowCount": 3.445079514866886E13 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "15" + ], + "rowCount": 4.1340954178402635E20 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 19, + "name": "$19" + } + ] + } + ] + }, + "inputs": [ + "2" + ], + "rowCount": 6.749402524290001E9 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_customer_sk", + "sr_store_sk", + "sr_fee", + "sr_returned_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 19, + "name": "$19" + } + ], + "rowCount": 6.749402524290001E9 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "5" + ], + "rowCount": 10957.35 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "18", + "20" + ], + "rowCount": 1.1093334862429357E13 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 1.1093334862429358E12 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_customer_sk", + "sr_store_sk", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.1093334862429358E12 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 1.1093334862429358E11 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 21, + "scale": 6 + } + } + ] + }, + "rowCount": 9.984001376186423E10 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0", + "ctr_store_sk" + ], + "exprs": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 21, + "scale": 6 + } + }, + { + "literal": 1.2, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + } + ] + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 9.984001376186423E10 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 6, + "name": "$6" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "16", + "26" + ], + "rowCount": 3.0956110755752376E30 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_id" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 3.0956110755752376E30 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query10.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query10.q.out new file mode 100644 index 000000000000..83e4bc87385b --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query10.q.out @@ -0,0 +1,3396 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_demographics" + ], + "table:alias": "customer_demographics", + "inputs": [], + "rowCount": 1920800, + "avgRowSize": 217, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cd_demo_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_gender" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_marital_status" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cd_education_status" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_purchase_estimate" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cd_credit_rating" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_employed_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_college_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cd_demo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cd_gender", + "ndv": 2 + }, + { + "name": "cd_marital_status", + "ndv": 5 + }, + { + "name": "cd_education_status", + "ndv": 7 + }, + { + "name": "cd_purchase_estimate", + "ndv": 20, + "minValue": 500, + "maxValue": 10000 + }, + { + "name": "cd_credit_rating", + "ndv": 4 + }, + { + "name": "cd_dep_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_employed_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_college_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk", + "cd_gender", + "cd_marital_status", + "cd_education_status", + "cd_purchase_estimate", + "cd_credit_rating", + "cd_dep_count", + "cd_dep_employed_count", + "cd_dep_college_count" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 1920800 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "c", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "rowCount": 6.480000000000001E7 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_cdemo_sk", + "c_current_addr_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 6.480000000000001E7 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "ca", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "literal": "Dona Ana County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + }, + { + "literal": "Douglas County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + }, + { + "literal": "Gaines County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + }, + { + "literal": "Richland County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + }, + { + "literal": "Walker County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + } + ] + }, + "rowCount": 10000000 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_county" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 10000000 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "4", + "7" + ], + "rowCount": 9.720000000000002E13 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 8, + "name": "$8" + }, + { + "literal": 4, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 7, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 2739.3375 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 2739.3375 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "11", + "14" + ], + "rowCount": 2.7462055430350402E13 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 2.7462055430350402E13 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "semi", + "inputs": [ + "8", + "16" + ], + "rowCount": 2.9524500000000005E12 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_bill_customer_sk", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 8, + "name": "$8" + }, + { + "literal": 4, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 7, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "12" + ], + "rowCount": 2739.3375 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 2739.3375 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "20", + "22" + ], + "rowCount": 7.187332851629448E12 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [], + "rowCount": 7.187332851629448E11 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "literalTrue", + "ws_bill_customer_sk" + ], + "exprs": [ + { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 7.187332851629448E11 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "17", + "25" + ], + "rowCount": 3.183036131694101E23 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_ship_customer_sk", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 8, + "name": "$8" + }, + { + "literal": 4, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 7, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "12" + ], + "rowCount": 2739.3375 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 2739.3375 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "29", + "31" + ], + "rowCount": 1.431336920301817E13 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [], + "rowCount": 1.431336920301817E12 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "literalTrue", + "cs_ship_customer_sk" + ], + "exprs": [ + { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1.431336920301817E12 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "26", + "34" + ], + "rowCount": 6.833995700949721E34 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + } + ] + }, + "rowCount": 1.7084989252374302E34 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_cdemo_sk", + "c_current_addr_sk", + "ca_address_sk", + "ca_county", + "literalTrue", + "ws_bill_customer_sk", + "literalTrue0", + "cs_ship_customer_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 1.7084989252374302E34 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "37" + ], + "rowCount": 4.922527103394084E39 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 4.922527103394084E38 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_gender", + "cd_marital_status", + "cd_education_status", + "cnt1", + "cd_purchase_estimate", + "cnt2", + "cd_credit_rating", + "cnt3", + "cd_dep_count", + "cnt4", + "cd_dep_employed_count", + "cnt5", + "cd_dep_college_count", + "cnt6" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 4.922527103394084E38 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 4, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 6, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 8, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 10, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 12, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query11.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query11.q.out new file mode 100644 index 000000000000..b98ea5c2a578 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query11.q.out @@ -0,0 +1,3580 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_ext_discount_amt", + "ss_ext_list_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 82510879939 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_sold_date_sk", + "$f8" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 73049 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "3", + "7" + ], + "rowCount": 1.0984822172140161E14 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_customer_id", + "c_first_name", + "c_last_name", + "c_birth_country" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 14, + "name": "$14" + } + ], + "rowCount": 80000000 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "8", + "10" + ], + "rowCount": 1.3181786606568192E21 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5, + 8 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 18, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_id", + "c_birth_country", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 80000000 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_ext_discount_amt", + "ss_ext_list_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 22, + "name": "$22" + } + ], + "inputs": [ + "0" + ], + "rowCount": 82510879939 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_sold_date_sk", + "$f8" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "inputs": [ + "4" + ], + "rowCount": 73049 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "16", + "19" + ], + "rowCount": 1.0984822172140161E14 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_customer_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 80000000 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "20", + "22" + ], + "rowCount": 1.3181786606568192E21 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 18, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "rowCount": 40000000 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "customer_id", + "year_total", + "EXPR$0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + } + ], + "rowCount": 40000000 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "13", + "26" + ], + "rowCount": 480000000000000 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_bill_customer_sk", + "ws_ext_discount_amt", + "ws_ext_list_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 24, + "name": "$24" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 21594638446 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_bill_customer_sk", + "ws_sold_date_sk", + "$f8" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "inputs": [ + "4" + ], + "rowCount": 73049 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "31", + "34" + ], + "rowCount": 2.8749331406517793E13 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_customer_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "inputs": [ + "21" + ], + "rowCount": 80000000 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "35", + "36" + ], + "rowCount": 3.449919768782135E20 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 18, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 80000000 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "27", + "39" + ], + "rowCount": 5.76E21 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_bill_customer_sk", + "ws_ext_discount_amt", + "ws_ext_list_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 24, + "name": "$24" + }, + { + "input": 33, + "name": "$33" + } + ], + "inputs": [ + "28" + ], + "rowCount": 21594638446 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_bill_customer_sk", + "ws_sold_date_sk", + "$f8" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "inputs": [ + "4" + ], + "rowCount": 73049 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "43", + "46" + ], + "rowCount": 2.8749331406517793E13 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_customer_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "inputs": [ + "21" + ], + "rowCount": 80000000 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "47", + "48" + ], + "rowCount": 3.449919768782135E20 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 18, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "rowCount": 40000000 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "customer_id", + "year_total", + "EXPR$1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + } + ], + "rowCount": 40000000 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ] + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "40", + "52" + ], + "rowCount": 8.639999999999999E27 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "customer_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 8.639999999999999E27 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_id", + "c_first_name", + "c_last_name", + "c_birth_country" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 14, + "name": "$14" + } + ], + "rowCount": 80000000 + }, + { + "id": "57", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "54", + "56" + ], + "rowCount": 1.0368E35 + }, + { + "id": "58", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "t_s_secyear.customer_id", + "t_s_secyear.customer_first_name", + "t_s_secyear.customer_last_name", + "t_s_secyear.customer_birth_country" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 1.0368E35 + }, + { + "id": "59", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query12.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query12.q.out new file mode 100644 index 000000000000..1ec88d13a16c --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query12.q.out @@ -0,0 +1,1587 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "rowCount": 1.94351746014E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_ext_sales_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.94351746014E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Books", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "Jewelry", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + }, + { + "literal": "Sports", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + }, + "rowCount": 115500 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id", + "i_item_desc", + "i_current_price", + "i_class", + "i_category" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 115500 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 336714399969255 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 979257600000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 981849600000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 922374382625779072 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 4, + 5, + 6, + 7, + 8 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 92237438262577904 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_desc", + "i_category", + "i_class", + "i_current_price", + "itemrevenue", + "revenueratio", + "(tok_table_or_col i_item_id)" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "literal": 100, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ], + "distinct": false, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "window": { + "partition": [ + { + "input": 3, + "name": "$3" + } + ], + "order": [ + { + "expr": { + "input": 3, + "name": "$3" + }, + "direction": "ASCENDING", + "null-direction": "FIRST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ] + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 92237438262577904 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 6, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 5, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_desc", + "i_category", + "i_class", + "i_current_price", + "itemrevenue", + "revenueratio" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query13.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query13.q.out new file mode 100644 index 000000000000..07b6e10daa8c --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query13.q.out @@ -0,0 +1,2635 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 21, + "name": "$21" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 3.94646980910959E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_cdemo_sk", + "ss_hdemo_sk", + "ss_addr_sk", + "ss_quantity", + "ss_ext_sales_price", + "ss_ext_wholesale_cost", + "ss_sold_date_sk", + "EXPR$0", + "EXPR$1", + "EXPR$2", + "EXPR$5", + "EXPR$8", + "EXPR$11" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 22, + "name": "$22" + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 21, + "name": "$21" + }, + { + "literal": 100, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 200, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 21, + "name": "$21" + }, + { + "literal": 150, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 300, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 21, + "name": "$21" + }, + { + "literal": 50, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 250, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 12, + "name": "$12" + }, + { + "literal": 100, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 0 + } + }, + { + "literal": 150, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 12, + "name": "$12" + }, + { + "literal": 50, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 0 + } + }, + { + "literal": 100, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 12, + "name": "$12" + }, + { + "literal": 150, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 0 + } + }, + { + "literal": 200, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 0 + } + } + ] + } + ], + "rowCount": 3.94646980910959E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 13, + "name": "$13" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 6.486427644427045E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "GA", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "IN", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "KY", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "MO", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "MT", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "NM", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "OR", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "WI", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "WV", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": "United States", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 20 + } + } + ] + } + ] + }, + "rowCount": 1500000 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "EXPR$0", + "EXPR$1", + "EXPR$2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "GA", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "KY", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "NM", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "IN", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "MT", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "OR", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "MO", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "WI", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "WV", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + } + ], + "rowCount": 1500000 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 14, + "name": "$14" + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 16, + "name": "$16" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "input": 9, + "name": "$9" + } + ] + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 3648615549990212608 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "household_demographics" + ], + "table:alias": "household_demographics", + "inputs": [], + "rowCount": 7200, + "avgRowSize": 183, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "hd_demo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "hd_income_band_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "hd_buy_potential" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_vehicle_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "hd_demo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "hd_dep_count", + "ndv": 10, + "minValue": 0, + "maxValue": 9 + }, + { + "name": "hd_income_band_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "hd_buy_potential", + "ndv": 6 + }, + { + "name": "hd_vehicle_count", + "ndv": 6, + "minValue": -1, + "maxValue": 4 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 1800 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk", + "EXPR$0", + "EXPR$1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "rowCount": 1800 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 18, + "name": "$18" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "13" + ], + "rowCount": 9.851261984973575E20 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_demographics" + ], + "table:alias": "customer_demographics", + "inputs": [], + "rowCount": 1920800, + "avgRowSize": 217, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cd_demo_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_gender" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_marital_status" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cd_education_status" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_purchase_estimate" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cd_credit_rating" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_employed_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_college_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cd_demo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cd_marital_status", + "ndv": 5 + }, + { + "name": "cd_education_status", + "ndv": 7 + }, + { + "name": "cd_gender", + "ndv": 2 + }, + { + "name": "cd_purchase_estimate", + "ndv": 20, + "minValue": 500, + "maxValue": 10000 + }, + { + "name": "cd_credit_rating", + "ndv": 4 + }, + { + "name": "cd_dep_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_employed_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_college_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + } + ] + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": "D", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + }, + { + "literal": "M", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + }, + { + "literal": "U", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": "4 yr Degree", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 11 + } + }, + { + "literal": "Advanced Degree", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 15 + } + }, + { + "literal": "Primary", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + } + ] + } + ] + }, + "rowCount": 120050 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk", + "EXPR$3", + "EXPR$4", + "EXPR$6", + "EXPR$7", + "EXPR$9", + "EXPR$10" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": "M", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": "4 yr Degree", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 11 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": "D", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": "Primary", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": "U", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": "Advanced Degree", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 15 + } + } + ] + } + ], + "rowCount": 120050 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 21, + "name": "$21" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 22, + "name": "$22" + }, + { + "input": 23, + "name": "$23" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 19, + "name": "$19" + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 24, + "name": "$24" + }, + { + "input": 25, + "name": "$25" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 20, + "name": "$20" + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 26, + "name": "$26" + }, + { + "input": 27, + "name": "$27" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 20, + "name": "$20" + } + ] + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "14", + "17" + ], + "rowCount": 4.4349150048602914E24 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_c0", + "_c1", + "_c2", + "_c3" + ], + "exprs": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 1 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query14.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query14.q.out new file mode 100644 index 000000000000..018fe392307b --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query14.q.out @@ -0,0 +1,10808 @@ +Warning: Map Join MAPJOIN[1090][bigTable=?] in task 'Reducer 8' is a cross product +Warning: Map Join MAPJOIN[1135][bigTable=?] in task 'Reducer 11' is a cross product +Warning: Map Join MAPJOIN[1151][bigTable=?] in task 'Reducer 17' is a cross product +Warning: Map Join MAPJOIN[1187][bigTable=?] in task 'Reducer 26' is a cross product +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + }, + "rowCount": 7.42597919451E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_quantity", + "ss_list_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 11, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 11, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 1643.6025 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.8308036953566934E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "rowCount": 336798.00000000006 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ], + "rowCount": 336798.00000000006 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + }, + "rowCount": 7.42597919451E10 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d1", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "15" + ], + "rowCount": 2.0342263281741038E14 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "iss", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "rowCount": 336798.00000000006 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ], + "rowCount": 336798.00000000006 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "16", + "19" + ], + "rowCount": 1.0276850383145728E19 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 4, + 5, + 6 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1027685038314572800 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "$f3" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 1027685038314572800 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "rowCount": 3.87045981225E10 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_item_sk", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.87045981225E10 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d2", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "25", + "28" + ], + "rowCount": 1.0602495705939384E14 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "ics", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "rowCount": 336798.00000000006 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ], + "rowCount": 336798.00000000006 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "29", + "32" + ], + "rowCount": 5356349023153459200 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 4, + 5, + 6 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 535634902315345920 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "$f3" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 535634902315345920 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "rowCount": 1.94351746014E10 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.94351746014E10 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d3", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "38", + "41" + ], + "rowCount": 5.323950260466258E13 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "iws", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "rowCount": 336798.00000000006 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ], + "rowCount": 336798.00000000006 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "42", + "45" + ], + "rowCount": 2689643699736772608 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 4, + 5, + 6 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 268964369973677248 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "$f3" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 268964369973677248 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "22", + "35", + "48" + ], + "rowCount": 1832284310603596032 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "$f3" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 1832284310603596032 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + } + ], + "rowCount": 183228431060359616 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 3, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + "rowCount": 27484264659053940 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 27484264659053940 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 6, + "name": "$6" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "53" + ], + "rowCount": 3.124117811916017E19 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 3.124117811916017E19 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "semi", + "inputs": [ + "6", + "55" + ], + "rowCount": 1.3346558939150297E13 + }, + { + "id": "57", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ], + "inputs": [ + "7" + ], + "rowCount": 462000 + }, + { + "id": "58", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "56", + "57" + ], + "rowCount": 924916534483115520 + }, + { + "id": "59", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3" + ], + "exprs": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "rowCount": 924916534483115520 + }, + { + "id": "60", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 92491653448311552 + }, + { + "id": "61", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + "rowCount": 83242488103480400 + }, + { + "id": "62", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 83242488103480400 + }, + { + "id": "63", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "avg_sales" + ], + "table:alias": "avg_sales", + "inputs": [], + "rowCount": 1, + "avgRowSize": 133, + "rowType": { + "fields": [ + { + "type": "DECIMAL", + "nullable": true, + "precision": 22, + "scale": 6, + "name": "average_sales" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "average_sales", + "ndv": 1, + "minValue": 1.4E-45, + "maxValue": 3.4028235E38 + } + ] + }, + { + "id": "64", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "COUNT", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": false + }, + "distinct": false, + "operands": [], + "name": "cnt" + } + ], + "rowCount": 1 + }, + { + "id": "65", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "66", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "sq_count_check", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ], + "class": "org.apache.calcite.sql.SqlFunction", + "type": { + "type": "BOOLEAN", + "nullable": false + }, + "deterministic": true, + "dynamic": false + }, + "rowCount": 1 + }, + { + "id": "67", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "68", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "avg_sales" + ], + "table:alias": "avg_sales", + "inputs": [], + "rowCount": 1, + "avgRowSize": 133, + "rowType": { + "fields": [ + { + "type": "DECIMAL", + "nullable": true, + "precision": 22, + "scale": 6, + "name": "average_sales" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "average_sales", + "ndv": 1, + "minValue": 1.4E-45, + "maxValue": 3.4028235E38 + } + ] + }, + { + "id": "69", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + "rowCount": 1 + }, + { + "id": "70", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "average_sales" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "71", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "67", + "70" + ], + "rowCount": 1 + }, + { + "id": "72", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "62", + "71" + ], + "rowCount": 41621244051740200 + }, + { + "id": "73", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "i_brand_id", + "i_class_id", + "i_category_id", + "sales", + "number_sales" + ], + "exprs": [ + { + "literal": "store", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 41621244051740200 + }, + { + "id": "74", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + } + ] + }, + { + "id": "75", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "rowCount": 3.87045981225E10 + }, + { + "id": "76", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_item_sk", + "cs_quantity", + "cs_list_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.87045981225E10 + }, + { + "id": "77", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 11, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1643.6025 + }, + { + "id": "78", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 11, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 1643.6025 + }, + { + "id": "79", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "76", + "78" + ], + "rowCount": 9.542246135345445E12 + }, + { + "id": "80", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 336798.00000000006 + }, + { + "id": "81", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ], + "rowCount": 336798.00000000006 + }, + { + "id": "82", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + }, + "inputs": [ + "10" + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "83", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "84", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "13" + ], + "rowCount": 18262.25 + }, + { + "id": "85", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "86", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "83", + "85" + ], + "rowCount": 2.0342263281741038E14 + }, + { + "id": "87", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "inputs": [ + "17" + ], + "rowCount": 336798.00000000006 + }, + { + "id": "88", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ], + "rowCount": 336798.00000000006 + }, + { + "id": "89", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "86", + "88" + ], + "rowCount": 1.0276850383145728E19 + }, + { + "id": "90", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 4, + 5, + 6 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1027685038314572800 + }, + { + "id": "91", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "$f3" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 1027685038314572800 + }, + { + "id": "92", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "inputs": [ + "23" + ], + "rowCount": 3.87045981225E10 + }, + { + "id": "93", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_item_sk", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.87045981225E10 + }, + { + "id": "94", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "26" + ], + "rowCount": 18262.25 + }, + { + "id": "95", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "96", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "93", + "95" + ], + "rowCount": 1.0602495705939384E14 + }, + { + "id": "97", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "inputs": [ + "30" + ], + "rowCount": 336798.00000000006 + }, + { + "id": "98", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ], + "rowCount": 336798.00000000006 + }, + { + "id": "99", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "96", + "98" + ], + "rowCount": 5356349023153459200 + }, + { + "id": "100", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 4, + 5, + 6 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 535634902315345920 + }, + { + "id": "101", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "$f3" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 535634902315345920 + }, + { + "id": "102", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "inputs": [ + "36" + ], + "rowCount": 1.94351746014E10 + }, + { + "id": "103", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.94351746014E10 + }, + { + "id": "104", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "39" + ], + "rowCount": 18262.25 + }, + { + "id": "105", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "106", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "103", + "105" + ], + "rowCount": 5.323950260466258E13 + }, + { + "id": "107", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "inputs": [ + "43" + ], + "rowCount": 336798.00000000006 + }, + { + "id": "108", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ], + "rowCount": 336798.00000000006 + }, + { + "id": "109", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "106", + "108" + ], + "rowCount": 2689643699736772608 + }, + { + "id": "110", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 4, + 5, + 6 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 268964369973677248 + }, + { + "id": "111", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "$f3" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 268964369973677248 + }, + { + "id": "112", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "91", + "101", + "111" + ], + "rowCount": 1832284310603596032 + }, + { + "id": "113", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "$f3" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 1832284310603596032 + }, + { + "id": "114", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + } + ], + "rowCount": 183228431060359616 + }, + { + "id": "115", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 3, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + "rowCount": 27484264659053940 + }, + { + "id": "116", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 27484264659053940 + }, + { + "id": "117", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 6, + "name": "$6" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "81", + "116" + ], + "rowCount": 3.124117811916017E19 + }, + { + "id": "118", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 3.124117811916017E19 + }, + { + "id": "119", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "semi", + "inputs": [ + "79", + "118" + ], + "rowCount": 6.95629743266683E12 + }, + { + "id": "120", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ], + "inputs": [ + "7" + ], + "rowCount": 462000 + }, + { + "id": "121", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "119", + "120" + ], + "rowCount": 482071412083811328 + }, + { + "id": "122", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3" + ], + "exprs": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "rowCount": 482071412083811328 + }, + { + "id": "123", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 48207141208381136 + }, + { + "id": "124", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + "rowCount": 43386427087543024 + }, + { + "id": "125", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 43386427087543024 + }, + { + "id": "126", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "COUNT", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": false + }, + "distinct": false, + "operands": [], + "name": "cnt" + } + ], + "inputs": [ + "63" + ], + "rowCount": 1 + }, + { + "id": "127", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "128", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "sq_count_check", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ], + "class": "org.apache.calcite.sql.SqlFunction", + "type": { + "type": "BOOLEAN", + "nullable": false + }, + "deterministic": true, + "dynamic": false + }, + "rowCount": 1 + }, + { + "id": "129", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "130", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + "inputs": [ + "68" + ], + "rowCount": 1 + }, + { + "id": "131", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "average_sales" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "132", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "129", + "131" + ], + "rowCount": 1 + }, + { + "id": "133", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "125", + "132" + ], + "rowCount": 21693213543771512 + }, + { + "id": "134", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "i_brand_id", + "i_class_id", + "i_category_id", + "sales", + "number_sales" + ], + "exprs": [ + { + "literal": "catalog", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 21693213543771512 + }, + { + "id": "135", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "136", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "rowCount": 1.94351746014E10 + }, + { + "id": "137", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_quantity", + "ws_list_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.94351746014E10 + }, + { + "id": "138", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 11, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1643.6025 + }, + { + "id": "139", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 11, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 1643.6025 + }, + { + "id": "140", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "137", + "139" + ], + "rowCount": 4.791555234419632E12 + }, + { + "id": "141", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 336798.00000000006 + }, + { + "id": "142", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ], + "rowCount": 336798.00000000006 + }, + { + "id": "143", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + }, + "inputs": [ + "10" + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "144", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "145", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "13" + ], + "rowCount": 18262.25 + }, + { + "id": "146", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "147", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "144", + "146" + ], + "rowCount": 2.0342263281741038E14 + }, + { + "id": "148", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "inputs": [ + "17" + ], + "rowCount": 336798.00000000006 + }, + { + "id": "149", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ], + "rowCount": 336798.00000000006 + }, + { + "id": "150", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "147", + "149" + ], + "rowCount": 1.0276850383145728E19 + }, + { + "id": "151", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 4, + 5, + 6 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1027685038314572800 + }, + { + "id": "152", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "$f3" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 1027685038314572800 + }, + { + "id": "153", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "inputs": [ + "23" + ], + "rowCount": 3.87045981225E10 + }, + { + "id": "154", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_item_sk", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.87045981225E10 + }, + { + "id": "155", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "26" + ], + "rowCount": 18262.25 + }, + { + "id": "156", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "157", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "154", + "156" + ], + "rowCount": 1.0602495705939384E14 + }, + { + "id": "158", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "inputs": [ + "30" + ], + "rowCount": 336798.00000000006 + }, + { + "id": "159", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ], + "rowCount": 336798.00000000006 + }, + { + "id": "160", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "157", + "159" + ], + "rowCount": 5356349023153459200 + }, + { + "id": "161", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 4, + 5, + 6 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 535634902315345920 + }, + { + "id": "162", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "$f3" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 535634902315345920 + }, + { + "id": "163", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "inputs": [ + "36" + ], + "rowCount": 1.94351746014E10 + }, + { + "id": "164", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.94351746014E10 + }, + { + "id": "165", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "39" + ], + "rowCount": 18262.25 + }, + { + "id": "166", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "167", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "164", + "166" + ], + "rowCount": 5.323950260466258E13 + }, + { + "id": "168", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "inputs": [ + "43" + ], + "rowCount": 336798.00000000006 + }, + { + "id": "169", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ], + "rowCount": 336798.00000000006 + }, + { + "id": "170", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "167", + "169" + ], + "rowCount": 2689643699736772608 + }, + { + "id": "171", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 4, + 5, + 6 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 268964369973677248 + }, + { + "id": "172", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "$f3" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 268964369973677248 + }, + { + "id": "173", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "152", + "162", + "172" + ], + "rowCount": 1832284310603596032 + }, + { + "id": "174", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "$f3" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 1832284310603596032 + }, + { + "id": "175", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + } + ], + "rowCount": 183228431060359616 + }, + { + "id": "176", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 3, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + "rowCount": 27484264659053940 + }, + { + "id": "177", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 27484264659053940 + }, + { + "id": "178", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 6, + "name": "$6" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "142", + "177" + ], + "rowCount": 3.124117811916017E19 + }, + { + "id": "179", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 3.124117811916017E19 + }, + { + "id": "180", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "semi", + "inputs": [ + "140", + "179" + ], + "rowCount": 3.493043765891912E12 + }, + { + "id": "181", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ], + "inputs": [ + "7" + ], + "rowCount": 462000 + }, + { + "id": "182", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "180", + "181" + ], + "rowCount": 242067932976309504 + }, + { + "id": "183", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3" + ], + "exprs": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "rowCount": 242067932976309504 + }, + { + "id": "184", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 24206793297630952 + }, + { + "id": "185", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + "rowCount": 21786113967867856 + }, + { + "id": "186", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 21786113967867856 + }, + { + "id": "187", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "COUNT", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": false + }, + "distinct": false, + "operands": [], + "name": "cnt" + } + ], + "inputs": [ + "63" + ], + "rowCount": 1 + }, + { + "id": "188", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "189", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "sq_count_check", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ], + "class": "org.apache.calcite.sql.SqlFunction", + "type": { + "type": "BOOLEAN", + "nullable": false + }, + "deterministic": true, + "dynamic": false + }, + "rowCount": 1 + }, + { + "id": "190", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "191", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + "inputs": [ + "68" + ], + "rowCount": 1 + }, + { + "id": "192", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "average_sales" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "193", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "190", + "192" + ], + "rowCount": 1 + }, + { + "id": "194", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "186", + "193" + ], + "rowCount": 10893056983933928 + }, + { + "id": "195", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "i_brand_id", + "i_class_id", + "i_category_id", + "sales", + "number_sales" + ], + "exprs": [ + { + "literal": "web", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 10893056983933928 + }, + { + "id": "196", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "73", + "134", + "195" + ], + "rowCount": 74207514579445632 + }, + { + "id": "197", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "i_brand_id", + "i_class_id", + "i_category_id", + "sales", + "number_sales" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 74207514579445632 + }, + { + "id": "198", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2, + 3 + ], + "groups": [ + [ + 0, + 1, + 2, + 3 + ], + [ + 0, + 1, + 2 + ], + [ + 0, + 1 + ], + [ + 0 + ], + [] + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + } + ], + "rowCount": 37103757289722816 + }, + { + "id": "199", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "i_brand_id", + "i_class_id", + "i_category_id", + "_c4", + "_c5" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 37103757289722816 + }, + { + "id": "200", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query15.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query15.q.out new file mode 100644 index 000000000000..5aa4c0be2ce2 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query15.q.out @@ -0,0 +1,1841 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "rowCount": 72000000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_addr_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 72000000 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_zip", + "EXPR$0", + "EXPR$1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 9, + "name": "$9" + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "CA", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "GA", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "WA", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + }, + { + "literal": "85669", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "86197", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "88274", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "83405", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "86475", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "85392", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "85460", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "80348", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "81792", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + } + ] + } + ], + "rowCount": 40000000 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "4" + ], + "rowCount": 432000000000000 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_customer_sk", + "cs_sales_price", + "cs_sold_date_sk", + "EXPR$0" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 33, + "name": "$33" + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 20, + "name": "$20" + }, + { + "literal": 500, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 0 + } + } + ] + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "8", + "11" + ], + "rowCount": 8.5880215218109E12 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_customer_sk", + "cs_sales_price", + "cs_sold_date_sk", + "EXPR$0", + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 8.5880215218109E12 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 5, + "name": "$5" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "13" + ], + "rowCount": 1.391259486533366E26 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 3 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + } + ], + "rowCount": 1.391259486533366E25 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_zip", + "_c1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 1.391259486533366E25 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query16.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query16.q.out new file mode 100644 index 000000000000..be5d4a49d54b --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query16.q.out @@ -0,0 +1,2926 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "cs1", + "inputs": [], + "rowCount": 43220864887, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1644740, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1837, + "minValue": 2450815, + "maxValue": 2452654 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 10, + "name": "$10" + } + ] + } + ] + }, + "rowCount": 3.1508010502623005E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_ship_date_sk", + "cs_ship_addr_sk", + "cs_call_center_sk", + "cs_warehouse_sk", + "cs_order_number", + "cs_ext_ship_cost", + "cs_net_profit" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 27, + "name": "$27" + }, + { + "input": 32, + "name": "$32" + } + ], + "rowCount": 3.1508010502623005E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "NY", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + "rowCount": 6000000 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_state" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": "NY", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ], + "type": { + "type": "CHAR", + "nullable": true, + "precision": 2 + } + } + ], + "rowCount": 6000000 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 28357209452360700 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "call_center" + ], + "table:alias": "call_center", + "inputs": [], + "rowCount": 60, + "avgRowSize": 1483, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cc_call_center_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "cc_call_center_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "cc_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "cc_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cc_closed_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cc_open_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "cc_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "cc_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_sq_ft" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cc_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "cc_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_mkt_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "cc_mkt_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "cc_mkt_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "cc_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_division" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "cc_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_company" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "cc_company_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cc_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "cc_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "cc_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cc_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "cc_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "cc_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "cc_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cc_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "cc_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "cc_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "cc_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cc_call_center_sk", + "ndv": 60, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cc_county", + "ndv": 25 + }, + { + "name": "cc_call_center_id", + "ndv": 30 + }, + { + "name": "cc_rec_start_date", + "ndv": 0, + "minValue": 10227, + "maxValue": 11688 + }, + { + "name": "cc_rec_end_date", + "ndv": 0, + "minValue": 10957, + "maxValue": 11687 + }, + { + "name": "cc_closed_date_sk", + "ndv": 1, + "minValue": null, + "maxValue": null + }, + { + "name": "cc_open_date_sk", + "ndv": 30, + "minValue": 2450794, + "maxValue": 2451146 + }, + { + "name": "cc_name", + "ndv": 30 + }, + { + "name": "cc_class", + "ndv": 3 + }, + { + "name": "cc_employees", + "ndv": 43, + "minValue": 5412266, + "maxValue": 1963174023 + }, + { + "name": "cc_sq_ft", + "ndv": 47, + "minValue": -2108783316, + "maxValue": 2044891959 + }, + { + "name": "cc_hours", + "ndv": 3 + }, + { + "name": "cc_manager", + "ndv": 42 + }, + { + "name": "cc_mkt_id", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "cc_mkt_class", + "ndv": 52 + }, + { + "name": "cc_mkt_desc", + "ndv": 48 + }, + { + "name": "cc_market_manager", + "ndv": 48 + }, + { + "name": "cc_division", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "cc_division_name", + "ndv": 6 + }, + { + "name": "cc_company", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "cc_company_name", + "ndv": 6 + }, + { + "name": "cc_street_number", + "ndv": 30 + }, + { + "name": "cc_street_name", + "ndv": 29 + }, + { + "name": "cc_street_type", + "ndv": 14 + }, + { + "name": "cc_suite_number", + "ndv": 26 + }, + { + "name": "cc_city", + "ndv": 25 + }, + { + "name": "cc_state", + "ndv": 19 + }, + { + "name": "cc_zip", + "ndv": 30 + }, + { + "name": "cc_country", + "ndv": 1 + }, + { + "name": "cc_gmt_offset", + "ndv": 4, + "minValue": -8, + "maxValue": -5 + }, + { + "name": "cc_tax_percentage", + "ndv": 13, + "minValue": 0, + "maxValue": 0.12 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 25, + "name": "$25" + }, + { + "literal": "Daviess County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + }, + { + "literal": "Franklin Parish", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + }, + { + "literal": "Huron County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + }, + { + "literal": "Levy County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + }, + { + "literal": "Ziebach County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + } + ] + }, + "rowCount": 15 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cc_call_center_sk", + "cc_county" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 25, + "name": "$25" + } + ], + "rowCount": 15 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 63803721267811576 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 986083200000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 991267200000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 18262.25 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "13" + ], + "rowCount": 1.7477992630846377E20 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_ship_date_sk", + "cs_ship_addr_sk", + "cs_call_center_sk", + "cs_warehouse_sk", + "cs_order_number", + "cs_ext_ship_cost", + "cs_net_profit", + "d_date_sk", + "d_date", + "ca_address_sk", + "ca_state", + "cc_call_center_sk", + "cc_county" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + } + ], + "rowCount": 1.7477992630846377E20 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "cs2", + "inputs": [], + "rowCount": 43220864887, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1644740, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1837, + "minValue": 2450815, + "maxValue": 2452654 + } + ] + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + }, + "rowCount": 3.88987783983E10 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_warehouse_sk", + "cs_order_number" + ], + "exprs": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 16, + "name": "$16" + } + ], + "rowCount": 3.88987783983E10 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 14, + "name": "$14" + } + ] + }, + { + "op": { + "name": "<>", + "kind": "NOT_EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 13, + "name": "$13" + } + ] + } + ] + }, + "joinType": "semi", + "inputs": [ + "15", + "18" + ], + "rowCount": 1.573019336776174E20 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_returns" + ], + "table:alias": "cr1", + "inputs": [], + "rowCount": 4320980099, + "avgRowSize": 305, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amount" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cr_returned_date_sk" + ], + "colStats": [ + { + "name": "cr_order_number", + "ndv": 2681654419, + "minValue": 2, + "maxValue": 4800000000 + }, + { + "name": "cr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_returning_customer_sk", + "ndv": 77511828, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cr_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cr_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cr_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "cr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cr_return_amount", + "ndv": 973170, + "minValue": 0, + "maxValue": 28805.04 + }, + { + "name": "cr_return_tax", + "ndv": 169232, + "minValue": 0, + "maxValue": 2511.58 + }, + { + "name": "cr_return_amt_inc_tax", + "ndv": 1689965, + "minValue": 0, + "maxValue": 30891.32 + }, + { + "name": "cr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "cr_return_ship_cost", + "ndv": 501353, + "minValue": 0, + "maxValue": 14273.28 + }, + { + "name": "cr_refunded_cash", + "ndv": 1257293, + "minValue": 0, + "maxValue": 26955.24 + }, + { + "name": "cr_reversed_charge", + "ndv": 895564, + "minValue": 0, + "maxValue": 24033.84 + }, + { + "name": "cr_store_credit", + "ndv": 906118, + "minValue": 0, + "maxValue": 24886.13 + }, + { + "name": "cr_net_loss", + "ndv": 996464, + "minValue": 0.5, + "maxValue": 16346.37 + }, + { + "name": "cr_returned_date_sk", + "ndv": 2104, + "minValue": 2450821, + "maxValue": 2452924 + } + ] + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "literalTrue", + "cr_order_number" + ], + "exprs": [ + { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 15, + "name": "$15" + } + ], + "rowCount": 4320980099 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAntiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 14, + "name": "$14" + } + ] + }, + "joinType": "anti", + "inputs": [ + "19", + "21" + ], + "rowCount": 1.5730193367761738E19 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": true, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "order count", + "total shipping cost", + "total net profit" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query17.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query17.q.out new file mode 100644 index 000000000000..cb2a4a675861 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query17.q.out @@ -0,0 +1,5183 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_customer_sk", + "cs_item_sk", + "cs_quantity", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d3", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "literal": "2000Q1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + }, + { + "literal": "2000Q2", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + }, + { + "literal": "2000Q3", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 9.542246135345445E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.0150431475531006E10 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_store_sk", + "ss_ticket_number", + "ss_quantity", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.0150431475531006E10 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d1", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "literal": "2000Q1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "12" + ], + "rowCount": 9.886339954926145E13 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_returns" + ], + "table:alias": "store_returns", + "inputs": [], + "rowCount": 8332595709, + "avgRowSize": 249, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "sr_return_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "sr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "sr_returned_date_sk" + ], + "colStats": [ + { + "name": "sr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "sr_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "sr_ticket_number", + "ndv": 5065526774, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "sr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "sr_returned_date_sk", + "ndv": 2003, + "minValue": 2450820, + "maxValue": 2452822 + }, + { + "name": "sr_return_time_sk", + "ndv": 32389, + "minValue": 28799, + "maxValue": 61199 + }, + { + "name": "sr_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "sr_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "sr_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "sr_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "sr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "sr_return_amt", + "ndv": 715216, + "minValue": 0, + "maxValue": 19643 + }, + { + "name": "sr_return_tax", + "ndv": 141365, + "minValue": 0, + "maxValue": 1714.37 + }, + { + "name": "sr_return_amt_inc_tax", + "ndv": 1520430, + "minValue": 0, + "maxValue": 21018.01 + }, + { + "name": "sr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "sr_return_ship_cost", + "ndv": 363000, + "minValue": 0, + "maxValue": 9975 + }, + { + "name": "sr_refunded_cash", + "ndv": 1187970, + "minValue": 0, + "maxValue": 18413.33 + }, + { + "name": "sr_reversed_charge", + "ndv": 924833, + "minValue": 0, + "maxValue": 18104.5 + }, + { + "name": "sr_store_credit", + "ndv": 935681, + "minValue": 0, + "maxValue": 17792.48 + }, + { + "name": "sr_net_loss", + "ndv": 848797, + "minValue": 0.5, + "maxValue": 11008.17 + } + ] + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 19, + "name": "$19" + } + ] + } + ] + }, + "rowCount": 6.749402524290001E9 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_item_sk", + "sr_customer_sk", + "sr_ticket_number", + "sr_return_quantity", + "sr_returned_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 19, + "name": "$19" + } + ], + "rowCount": 6.749402524290001E9 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d2", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "literal": "2000Q1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + }, + { + "literal": "2000Q2", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + }, + { + "literal": "2000Q3", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "16", + "19" + ], + "rowCount": 1.8488891437382258E13 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_item_sk", + "sr_customer_sk", + "sr_ticket_number", + "sr_return_quantity", + "sr_returned_date_sk", + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 1.8488891437382258E13 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "13", + "21" + ], + "rowCount": 6.169076982214339E24 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_store_sk", + "ss_ticket_number", + "ss_quantity", + "ss_sold_date_sk", + "d_date_sk", + "sr_item_sk", + "sr_customer_sk", + "sr_ticket_number", + "sr_return_quantity", + "sr_returned_date_sk", + "d_date_sk0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 6.169076982214339E24 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "23" + ], + "rowCount": 1.3245041473241247E37 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_state" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 24, + "name": "$24" + } + ], + "rowCount": 1704 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "24", + "26" + ], + "rowCount": 3.385432600560463E39 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id", + "i_item_desc" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 462000 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 20, + "name": "$20" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "27", + "29" + ], + "rowCount": 2.3461047921884004E44 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f30", + "$f7", + "$f40", + "$f9", + "$f50", + "$f11" + ], + "exprs": [ + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 2, + "name": "$2" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + } + ] + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 15, + "name": "$15" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 15, + "name": "$15" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 15, + "name": "$15" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + } + ] + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + } + ] + } + ], + "rowCount": 2.3461047921884004E44 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DOUBLE", + "nullable": true + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DOUBLE", + "nullable": true + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DOUBLE", + "nullable": true + }, + "distinct": false, + "operands": [ + 9 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DOUBLE", + "nullable": true + }, + "distinct": false, + "operands": [ + 8 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 8 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DOUBLE", + "nullable": true + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DOUBLE", + "nullable": true + }, + "distinct": false, + "operands": [ + 10 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 10 + ], + "name": null + } + ], + "rowCount": 2.3461047921884004E43 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "i_item_desc", + "s_state", + "store_sales_quantitycount", + "store_sales_quantityave", + "store_sales_quantitystdev", + "store_sales_quantitycov", + "as_store_returns_quantitycount", + "as_store_returns_quantityave", + "as_store_returns_quantitystdev", + "store_returns_quantitycov", + "catalog_sales_quantitycount", + "catalog_sales_quantityave", + "catalog_sales_quantitystdev", + "catalog_sales_quantitycov" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "POWER", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + { + "input": 7, + "name": "$7" + } + ] + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "literal": null, + "type": { + "type": "BIGINT", + "nullable": true + } + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + }, + { + "literal": 0.5, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "POWER", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + { + "input": 7, + "name": "$7" + } + ] + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "literal": null, + "type": { + "type": "BIGINT", + "nullable": true + } + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + }, + { + "literal": 0.5, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 3, + "name": "$3" + } + ] + } + ] + }, + { + "input": 8, + "name": "$8" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 8, + "name": "$8" + } + ] + }, + { + "op": { + "name": "POWER", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + { + "input": 12, + "name": "$12" + } + ] + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "literal": null, + "type": { + "type": "BIGINT", + "nullable": true + } + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + }, + { + "literal": 0.5, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "POWER", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + { + "input": 12, + "name": "$12" + } + ] + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "literal": null, + "type": { + "type": "BIGINT", + "nullable": true + } + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + }, + { + "literal": 0.5, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 8, + "name": "$8" + } + ] + } + ] + }, + { + "input": 13, + "name": "$13" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 14, + "name": "$14" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 13, + "name": "$13" + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "POWER", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 16, + "name": "$16" + }, + { + "input": 16, + "name": "$16" + } + ] + }, + { + "input": 17, + "name": "$17" + } + ] + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "literal": null, + "type": { + "type": "BIGINT", + "nullable": true + } + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + }, + { + "literal": 0.5, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 14, + "name": "$14" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 13, + "name": "$13" + } + ] + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "POWER", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 16, + "name": "$16" + }, + { + "input": 16, + "name": "$16" + } + ] + }, + { + "input": 17, + "name": "$17" + } + ] + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "literal": null, + "type": { + "type": "BIGINT", + "nullable": true + } + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + }, + { + "literal": 0.5, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 14, + "name": "$14" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 13, + "name": "$13" + } + ] + } + ] + } + ], + "rowCount": 2.3461047921884004E43 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query18.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query18.q.out new file mode 100644 index 000000000000..485adbb918ca --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query18.q.out @@ -0,0 +1,3225 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.1350724479225002E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_customer_sk", + "cs_bill_cdemo_sk", + "cs_item_sk", + "cs_sold_date_sk", + "$f4", + "$f5", + "$f6", + "$f7", + "$f8" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 33, + "name": "$33" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 12, + "scale": 2 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 19, + "name": "$19" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 12, + "scale": 2 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 26, + "name": "$26" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 12, + "scale": 2 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 20, + "name": "$20" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 12, + "scale": 2 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 32, + "name": "$32" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 12, + "scale": 2 + } + } + ], + "rowCount": 3.1350724479225002E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 5.152812913086541E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_demographics" + ], + "table:alias": "cd1", + "inputs": [], + "rowCount": 1920800, + "avgRowSize": 217, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cd_demo_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_gender" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_marital_status" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cd_education_status" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_purchase_estimate" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cd_credit_rating" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_employed_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_college_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cd_demo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cd_gender", + "ndv": 2 + }, + { + "name": "cd_education_status", + "ndv": 7 + }, + { + "name": "cd_dep_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_marital_status", + "ndv": 5 + }, + { + "name": "cd_purchase_estimate", + "ndv": 20, + "minValue": 500, + "maxValue": 10000 + }, + { + "name": "cd_credit_rating", + "ndv": 4 + }, + { + "name": "cd_dep_employed_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_college_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": "M", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": "College ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 20 + } + } + ] + } + ] + }, + "rowCount": 43218 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk", + "$f10" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 12, + "scale": 2 + } + } + ], + "rowCount": 43218 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 334041402716661120 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 4, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 9, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 10, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "rowCount": 1.6200000000000002E7 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_cdemo_sk", + "c_current_addr_sk", + "$f9" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 12, + "scale": 2 + } + } + ], + "rowCount": 1.6200000000000002E7 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "AL", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "MS", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "NC", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "ND", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "OK", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "TN", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "WI", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + "rowCount": 10000000 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_county", + "ca_state", + "ca_country" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 10, + "name": "$10" + } + ], + "rowCount": 10000000 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "13", + "16" + ], + "rowCount": 2.4300000000000004E13 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_cdemo_sk", + "c_current_addr_sk", + "$f9", + "ca_address_sk", + "ca_county", + "ca_state", + "ca_country" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 2.4300000000000004E13 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 12, + "name": "$12" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "18" + ], + "rowCount": 1.2175809129022299E30 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 462000 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 20, + "name": "$20" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "19", + "21" + ], + "rowCount": 8.437835726412453E34 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_demographics" + ], + "table:alias": "cd2", + "inputs": [], + "rowCount": 1920800, + "avgRowSize": 217, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cd_demo_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_gender" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_marital_status" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cd_education_status" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_purchase_estimate" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cd_credit_rating" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_employed_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_college_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cd_demo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cd_gender", + "ndv": 2 + }, + { + "name": "cd_marital_status", + "ndv": 5 + }, + { + "name": "cd_education_status", + "ndv": 7 + }, + { + "name": "cd_purchase_estimate", + "ndv": 20, + "minValue": 500, + "maxValue": 10000 + }, + { + "name": "cd_credit_rating", + "ndv": 4 + }, + { + "name": "cd_dep_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_employed_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_college_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + } + ] + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1920800 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 22, + "name": "$22" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "22", + "24" + ], + "rowCount": 2.431109229493956E40 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 17, + 18, + 19, + 21 + ], + "groups": [ + [ + 17, + 18, + 19, + 21 + ], + [ + 18, + 19, + 21 + ], + [ + 19, + 21 + ], + [ + 21 + ], + [] + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 22, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 22, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 22, + "scale": 2 + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 22, + "scale": 2 + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 22, + "scale": 2 + }, + "distinct": false, + "operands": [ + 8 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 8 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 22, + "scale": 2 + }, + "distinct": false, + "operands": [ + 15 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 15 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 22, + "scale": 2 + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + } + ], + "rowCount": 1.215554614746978E40 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "ca_country", + "ca_state", + "ca_county", + "agg1", + "agg2", + "agg3", + "agg4", + "agg5", + "agg6", + "agg7" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 16, + "scale": 6 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 16, + "scale": 6 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 16, + "scale": 6 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 16, + "scale": 6 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 16, + "scale": 6 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 16, + "scale": 6 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 16, + "scale": 6 + } + } + ], + "rowCount": 1.215554614746978E40 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query19.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query19.q.out new file mode 100644 index 000000000000..f1127a8217c6 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query19.q.out @@ -0,0 +1,2516 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "rowCount": 72000000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_addr_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 72000000 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "EXPR$0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + } + ], + "rowCount": 40000000 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "4" + ], + "rowCount": 432000000000000 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.0150431475531006E10 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_store_sk", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.0150431475531006E10 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 11, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "8", + "11" + ], + "rowCount": 1.4829509932389217E13 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 20, + "name": "$20" + }, + { + "literal": 7, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 69300 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_brand", + "i_manufact_id", + "i_manufact" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + } + ], + "rowCount": 69300 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "15" + ], + "rowCount": 154152755747185888 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_store_sk", + "ss_ext_sales_price", + "ss_sold_date_sk", + "d_date_sk", + "i_item_sk", + "i_brand_id", + "i_brand", + "i_manufact_id", + "i_manufact" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + } + ], + "rowCount": 154152755747185888 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "17" + ], + "rowCount": 9.989098572417645E30 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "EXPR$0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 25, + "name": "$25" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + } + ], + "rowCount": 1704 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 15, + "name": "$15" + } + ] + }, + { + "op": { + "name": "<>", + "kind": "NOT_EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 16, + "name": "$16" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "18", + "20" + ], + "rowCount": 1.276606797554975E33 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 11, + 12, + 13, + 14 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + } + ], + "rowCount": 1.276606797554975E32 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "brand_id", + "brand", + "i_manufact_id", + "i_manufact", + "ext_price", + "(tok_table_or_col i_brand)", + "(tok_table_or_col i_brand_id)" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1.276606797554975E32 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 4, + "direction": "DESCENDING", + "nulls": "FIRST" + }, + { + "field": 5, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 6, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "brand_id", + "brand", + "i_manufact_id", + "i_manufact", + "ext_price" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query2.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query2.q.out new file mode 100644 index 000000000000..ceb2fea68407 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query2.q.out @@ -0,0 +1,3678 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "rowCount": 1.94351746014E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sold_date_sk", + "sales_price" + ], + "exprs": [ + { + "input": 33, + "name": "$33" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 1.94351746014E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "rowCount": 3.87045981225E10 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sold_date_sk", + "sales_price" + ], + "exprs": [ + { + "input": 33, + "name": "$33" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 3.87045981225E10 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "2", + "5" + ], + "rowCount": 5.81397727239E10 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sold_date_sk", + "sales_price" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 5.81397727239E10 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "rowCount": 65744.1 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_week_seq", + "EXPR$0", + "EXPR$1", + "EXPR$2", + "EXPR$3", + "EXPR$4", + "EXPR$5", + "EXPR$6" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Sunday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Monday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Tuesday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Wednesday", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Thursday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Friday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Saturday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + } + ], + "rowCount": 65744.1 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "7", + "10" + ], + "rowCount": 5.733520547906031E14 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + } + ], + "rowCount": 5.733520547906031E14 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + } + ], + "rowCount": 5.733520547906031E13 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 5.733520547906031E13 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "rowCount": 9861.615 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_week_seq" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 9861.615 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "14", + "17" + ], + "rowCount": 84812658357057504 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 1.94351746014E10 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sold_date_sk", + "sales_price" + ], + "exprs": [ + { + "input": 33, + "name": "$33" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 1.94351746014E10 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 3.87045981225E10 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sold_date_sk", + "sales_price" + ], + "exprs": [ + { + "input": 33, + "name": "$33" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 3.87045981225E10 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "20", + "22" + ], + "rowCount": 5.81397727239E10 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sold_date_sk", + "sales_price" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 5.81397727239E10 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "inputs": [ + "8" + ], + "rowCount": 65744.1 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_week_seq", + "EXPR$0", + "EXPR$1", + "EXPR$2", + "EXPR$3", + "EXPR$4", + "EXPR$5", + "EXPR$6" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Sunday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Monday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Tuesday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Wednesday", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Thursday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Friday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Saturday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + } + ], + "rowCount": 65744.1 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "24", + "26" + ], + "rowCount": 5.733520547906031E14 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + } + ], + "rowCount": 5.733520547906031E14 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + } + ], + "rowCount": 5.733520547906031E13 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 5.733520547906031E13 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "inputs": [ + "15" + ], + "rowCount": 9861.615 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_week_seq" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 9861.615 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "30", + "32" + ], + "rowCount": 84812658357057504 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7", + "d_week_seq" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 84812658357057504 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "literal": 53, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "18", + "34" + ], + "rowCount": 1.0789780526386434E33 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_week_seq1", + "_c1", + "_c2", + "_c3", + "_c4", + "_c5", + "_c6", + "_c7" + ], + "exprs": [ + { + "input": 9, + "name": "$9" + }, + { + "op": { + "name": "round", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 20, + "scale": 2 + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "round", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 20, + "scale": 2 + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "round", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 20, + "scale": 2 + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "round", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 20, + "scale": 2 + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "round", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 20, + "scale": 2 + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "round", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 20, + "scale": 2 + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "round", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 16, + "name": "$16" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 20, + "scale": 2 + }, + "deterministic": true, + "dynamic": false + } + ], + "rowCount": 1.0789780526386434E33 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "rowCount": 1.0789780526386434E33 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query20.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query20.q.out new file mode 100644 index 000000000000..ca15460de251 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query20.q.out @@ -0,0 +1,1587 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "rowCount": 3.87045981225E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_item_sk", + "cs_ext_sales_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.87045981225E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Books", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "Jewelry", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + }, + { + "literal": "Sports", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + }, + "rowCount": 115500 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id", + "i_item_desc", + "i_current_price", + "i_class", + "i_category" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 115500 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 6.705571624723125E14 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 979257600000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 981849600000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 1836882381053998336 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 4, + 5, + 6, + 7, + 8 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 183688238105399840 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_desc", + "i_category", + "i_class", + "i_current_price", + "itemrevenue", + "revenueratio", + "(tok_table_or_col i_item_id)" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "literal": 100, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ], + "distinct": false, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "window": { + "partition": [ + { + "input": 3, + "name": "$3" + } + ], + "order": [ + { + "expr": { + "input": 3, + "name": "$3" + }, + "direction": "ASCENDING", + "null-direction": "FIRST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ] + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 183688238105399840 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 6, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 5, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_desc", + "i_category", + "i_class", + "i_current_price", + "itemrevenue", + "revenueratio" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query21.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query21.q.out new file mode 100644 index 000000000000..2e84bfc666d5 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query21.q.out @@ -0,0 +1,1627 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "inventory" + ], + "table:alias": "inventory", + "inputs": [], + "rowCount": 1627857000, + "avgRowSize": 157, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "inv_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "inv_item_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "inv_warehouse_sk" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "inv_quantity_on_hand" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "inv_date_sk", + "ndv": 258, + "minValue": 2450815, + "maxValue": 2452635 + }, + { + "name": "inv_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "inv_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "inv_quantity_on_hand", + "ndv": 987, + "minValue": 0, + "maxValue": 1000 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "inv_date_sk", + "inv_item_sk", + "inv_warehouse_sk", + "inv_quantity_on_hand" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 1627857000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0.99, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 2 + } + }, + { + "literal": 1.49, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 2 + } + } + ] + }, + "rowCount": 115500 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 115500 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "4" + ], + "rowCount": 28202622525000 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 889401600000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 894585600000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "EXPR$0", + "EXPR$1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "<", + "kind": "LESS_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 10324, + "type": { + "type": "DATE", + "nullable": false + } + } + ] + }, + { + "op": { + "name": ">=", + "kind": "GREATER_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 10324, + "type": { + "type": "DATE", + "nullable": false + } + } + ] + } + ], + "rowCount": 18262.25 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "8" + ], + "rowCount": 77256501481077184 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "warehouse" + ], + "table:alias": "warehouse", + "inputs": [], + "rowCount": 27, + "avgRowSize": 679, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "w_warehouse_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "w_warehouse_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "w_warehouse_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "w_warehouse_sq_ft" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "w_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "w_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "w_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "w_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "w_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "w_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "w_gmt_offset" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "w_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "w_warehouse_name", + "ndv": 27 + }, + { + "name": "w_warehouse_id", + "ndv": 27 + }, + { + "name": "w_warehouse_sq_ft", + "ndv": 26, + "minValue": 73065, + "maxValue": 977787 + }, + { + "name": "w_street_number", + "ndv": 26 + }, + { + "name": "w_street_name", + "ndv": 27 + }, + { + "name": "w_street_type", + "ndv": 16 + }, + { + "name": "w_suite_number", + "ndv": 21 + }, + { + "name": "w_city", + "ndv": 18 + }, + { + "name": "w_county", + "ndv": 14 + }, + { + "name": "w_state", + "ndv": 12 + }, + { + "name": "w_zip", + "ndv": 24 + }, + { + "name": "w_country", + "ndv": 1 + }, + { + "name": "w_gmt_offset", + "ndv": 4, + "minValue": -8, + "maxValue": -5 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "w_warehouse_sk", + "w_warehouse_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 27 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "11" + ], + "rowCount": 312888830998362560 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3" + ], + "exprs": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "rowCount": 312888830998362560 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + } + ], + "rowCount": 31288883099836256 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 0.666667, + "type": { + "type": "DOUBLE", + "nullable": false + } + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + } + ] + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + } + ] + }, + { + "literal": 1.5, + "type": { + "type": "DOUBLE", + "nullable": false + } + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1955555193739766 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "x.w_warehouse_name", + "x.i_item_id", + "x.inv_before", + "x.inv_after" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 1955555193739766 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query22.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query22.q.out new file mode 100644 index 000000000000..3ab7d75769c1 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query22.q.out @@ -0,0 +1,1083 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "inventory" + ], + "table:alias": "inventory", + "inputs": [], + "rowCount": 1627857000, + "avgRowSize": 157, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "inv_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "inv_item_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "inv_warehouse_sk" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "inv_quantity_on_hand" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "inv_date_sk", + "ndv": 258, + "minValue": 2450815, + "maxValue": 2452635 + }, + { + "name": "inv_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "inv_quantity_on_hand", + "ndv": 987, + "minValue": 0, + "maxValue": 1000 + }, + { + "name": "inv_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "inv_date_sk", + "inv_item_sk", + "inv_quantity_on_hand" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 1627857000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "4" + ], + "rowCount": 4.4592497247375E12 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_product_name", + "ndv": 461487 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand", + "i_class", + "i_category", + "i_product_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 21, + "name": "$21" + } + ], + "rowCount": 462000 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "7" + ], + "rowCount": 309026005924308736 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5, + 6, + 7, + 8 + ], + "groups": [ + [ + 5, + 6, + 7, + 8 + ], + [ + 5, + 6, + 8 + ], + [ + 5, + 8 + ], + [ + 8 + ], + [] + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 154513002962154368 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_product_name", + "i_brand", + "i_class", + "i_category", + "qoh" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 5, + "name": "$5" + } + ] + } + ], + "rowCount": 154513002962154368 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 4, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query23.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query23.q.out new file mode 100644 index 000000000000..2ae0e72eb026 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query23.q.out @@ -0,0 +1,5599 @@ +Warning: Map Join MAPJOIN[318][bigTable=?] in task 'Reducer 7' is a cross product +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_customer_sk", + "cs_item_sk", + "cs_quantity", + "cs_list_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 1643.6025 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 8.5880215218109E12 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + }, + "rowCount": 7.42597919451E10 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 18262.25 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "12" + ], + "rowCount": 2.0342263281741038E14 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 3 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 2.034226328174104E13 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "d_date", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 2.034226328174104E13 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 462000 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "15", + "17" + ], + "rowCount": 1409718845424654080 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "d_date", + "$f2" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1409718845424654080 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 4, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + "rowCount": 704859422712327040 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 704859422712327040 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "semi", + "inputs": [ + "6", + "21" + ], + "rowCount": 8.5880215218109E12 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 86404891377, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 159044, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1334023, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1468124, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + "rowCount": 7.77644022393E10 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "$f1" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + }, + { + "input": 12, + "name": "$12" + } + ] + } + ], + "rowCount": 7.77644022393E10 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 7.77644022393E9 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ] + }, + "rowCount": 6.298916581383301E9 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 6.298916581383301E9 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_sold_date_sk", + "ss_customer_sk", + "$f1" + ], + "exprs": [ + { + "input": 22, + "name": "$22" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + }, + { + "input": 12, + "name": "$12" + } + ] + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "31", + "34" + ], + "rowCount": 1.8308036953566934E14 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 1.8308036953566934E13 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 1.8308036953566934E13 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "max", + "kind": "MAX", + "syntax": "FUNCTION" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + "rowCount": 1 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "EXPR$0" + ], + "exprs": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 0.95, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 16, + "scale": 6 + } + }, + { + "input": 0, + "name": "$0" + } + ] + } + ], + "rowCount": 1 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "28", + "41" + ], + "rowCount": 3.1494582906916504E9 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 3.1494582906916504E9 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "semi", + "inputs": [ + "22", + "43" + ], + "rowCount": 1.2677852071035298E12 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sales" + ], + "exprs": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + }, + { + "input": 3, + "name": "$3" + } + ] + } + ], + "rowCount": 1.2677852071035298E12 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_bill_customer_sk", + "ws_quantity", + "ws_list_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1643.6025 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 1643.6025 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "48", + "50" + ], + "rowCount": 4.312399710977669E12 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "10" + ], + "rowCount": 18262.25 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 18262.25 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "53", + "55" + ], + "rowCount": 2.0342263281741038E14 + }, + { + "id": "57", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 3 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 2.034226328174104E13 + }, + { + "id": "58", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "d_date", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 2.034226328174104E13 + }, + { + "id": "59", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "inputs": [ + "16" + ], + "rowCount": 462000 + }, + { + "id": "60", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "58", + "59" + ], + "rowCount": 1409718845424654080 + }, + { + "id": "61", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "d_date", + "$f2" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1409718845424654080 + }, + { + "id": "62", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 4, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + "rowCount": 704859422712327040 + }, + { + "id": "63", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 704859422712327040 + }, + { + "id": "64", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "semi", + "inputs": [ + "51", + "63" + ], + "rowCount": 4.312399710977669E12 + }, + { + "id": "65", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + "inputs": [ + "23" + ], + "rowCount": 7.77644022393E10 + }, + { + "id": "66", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "$f1" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + }, + { + "input": 12, + "name": "$12" + } + ] + } + ], + "rowCount": 7.77644022393E10 + }, + { + "id": "67", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 7.77644022393E9 + }, + { + "id": "68", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ] + }, + "rowCount": 6.298916581383301E9 + }, + { + "id": "69", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 6.298916581383301E9 + }, + { + "id": "70", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "inputs": [ + "29" + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "71", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_sold_date_sk", + "ss_customer_sk", + "$f1" + ], + "exprs": [ + { + "input": 22, + "name": "$22" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + }, + { + "input": 12, + "name": "$12" + } + ] + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "72", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "32" + ], + "rowCount": 18262.25 + }, + { + "id": "73", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "74", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "71", + "73" + ], + "rowCount": 1.8308036953566934E14 + }, + { + "id": "75", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 1.8308036953566934E13 + }, + { + "id": "76", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 1.8308036953566934E13 + }, + { + "id": "77", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "max", + "kind": "MAX", + "syntax": "FUNCTION" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "78", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "79", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + "rowCount": 1 + }, + { + "id": "80", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "EXPR$0" + ], + "exprs": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 0.95, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 16, + "scale": 6 + } + }, + { + "input": 0, + "name": "$0" + } + ] + } + ], + "rowCount": 1 + }, + { + "id": "81", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "69", + "80" + ], + "rowCount": 3.1494582906916504E9 + }, + { + "id": "82", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 3.1494582906916504E9 + }, + { + "id": "83", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "semi", + "inputs": [ + "64", + "82" + ], + "rowCount": 6.36607226333801E11 + }, + { + "id": "84", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sales" + ], + "exprs": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + }, + { + "input": 3, + "name": "$3" + } + ] + } + ], + "rowCount": 6.36607226333801E11 + }, + { + "id": "85", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "45", + "84" + ], + "rowCount": 1.9043924334373308E12 + }, + { + "id": "86", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sales" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1.9043924334373308E12 + }, + { + "id": "87", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 0 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "88", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_c0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query24.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query24.q.out new file mode 100644 index 000000000000..1ec2e0f9a4dc --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query24.q.out @@ -0,0 +1,3519 @@ +Warning: Map Join MAPJOIN[331][bigTable=?] in task 'Reducer 7' is a cross product +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 86404891377, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 159044, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1334023, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1468124, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "rowCount": 6.998796201537001E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_store_sk", + "ss_ticket_number", + "ss_sales_price" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 6.998796201537001E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_returns" + ], + "table:alias": "store_returns", + "inputs": [], + "rowCount": 8634166995, + "avgRowSize": 249, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "sr_return_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "sr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "sr_returned_date_sk" + ], + "colStats": [ + { + "name": "sr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "sr_ticket_number", + "ndv": 5114579988, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "sr_return_time_sk", + "ndv": 32389, + "minValue": 28799, + "maxValue": 61199 + }, + { + "name": "sr_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "sr_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "sr_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "sr_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "sr_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "sr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "sr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "sr_return_amt", + "ndv": 715216, + "minValue": 0, + "maxValue": 19643 + }, + { + "name": "sr_return_tax", + "ndv": 141365, + "minValue": 0, + "maxValue": 1714.37 + }, + { + "name": "sr_return_amt_inc_tax", + "ndv": 1520430, + "minValue": 0, + "maxValue": 21018.01 + }, + { + "name": "sr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "sr_return_ship_cost", + "ndv": 363000, + "minValue": 0, + "maxValue": 9975 + }, + { + "name": "sr_refunded_cash", + "ndv": 1187970, + "minValue": 0, + "maxValue": 18413.33 + }, + { + "name": "sr_reversed_charge", + "ndv": 926355, + "minValue": 0, + "maxValue": 18104.5 + }, + { + "name": "sr_store_credit", + "ndv": 937950, + "minValue": 0, + "maxValue": 17792.48 + }, + { + "name": "sr_net_loss", + "ndv": 851834, + "minValue": 0.5, + "maxValue": 11008.17 + }, + { + "name": "sr_returned_date_sk", + "ndv": 2004, + "minValue": 2450820, + "maxValue": 2452822 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_item_sk", + "sr_ticket_number" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 8634166995 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 6, + "name": "$6" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "4" + ], + "rowCount": 1.359647441280948E19 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "rowCount": 72000000 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_addr_sk", + "c_first_name", + "c_last_name", + "c_birth_country" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 14, + "name": "$14" + } + ], + "rowCount": 72000000 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + }, + "rowCount": 36000000 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_state", + "ca_zip", + "EXPR$0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "op": { + "name": "UPPER", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 10, + "name": "$10" + } + ] + } + ], + "rowCount": 36000000 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": 7, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 25, + "name": "$25" + } + ] + } + ] + }, + "rowCount": 230.04000000000002 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_name", + "s_state", + "s_zip" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 24, + "name": "$24" + }, + { + "input": 25, + "name": "$25" + } + ], + "rowCount": 230.04000000000002 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "11", + "14" + ], + "rowCount": 1242216000 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "<>", + "kind": "NOT_EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 8, + "name": "$8" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "8", + "15" + ], + "rowCount": 6707966400000000 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_addr_sk", + "c_first_name", + "c_last_name", + "c_birth_country", + "ca_address_sk", + "ca_state", + "ca_zip", + "EXPR$0", + "s_store_sk", + "s_store_name", + "s_state", + "s_zip" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 6707966400000000 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 16, + "name": "$16" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "17" + ], + "rowCount": 2.0521056041906784E33 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": "orchid ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 20 + } + } + ] + }, + "rowCount": 69300 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_current_price", + "i_size", + "i_units", + "i_manager_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 20, + "name": "$20" + } + ], + "rowCount": 69300 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 20, + "name": "$20" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "18", + "21" + ], + "rowCount": 2.13316377555621E37 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 9, + 10, + 13, + 17, + 18, + 21, + 22, + 23, + 24 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + } + ], + "rowCount": 2.1331637755562098E36 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_first_name", + "c_last_name", + "ca_state", + "s_store_name", + "s_state", + "i_current_price", + "i_size", + "i_units", + "i_manager_id", + "$f9" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "rowCount": 2.1331637755562098E36 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 3 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "distinct": false, + "operands": [ + 9 + ], + "name": null + } + ], + "rowCount": 6.998796201537001E10 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_last_name", + "c_first_name", + "s_store_name", + "$f3" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 6.998796201537001E10 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + "rowCount": 6.298916581383301E10 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_last_name", + "c_first_name", + "s_store_name", + "$f3" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 6.298916581383301E10 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 6.998796201537001E10 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_store_sk", + "ss_ticket_number", + "ss_sales_price" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 6.998796201537001E10 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_item_sk", + "sr_ticket_number" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + } + ], + "inputs": [ + "3" + ], + "rowCount": 8634166995 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 6, + "name": "$6" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "30", + "31" + ], + "rowCount": 1.359647441280948E19 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "inputs": [ + "6" + ], + "rowCount": 72000000 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_addr_sk", + "c_first_name", + "c_last_name", + "c_birth_country" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 14, + "name": "$14" + } + ], + "rowCount": 72000000 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + }, + "inputs": [ + "9" + ], + "rowCount": 36000000 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_state", + "ca_zip", + "EXPR$0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "op": { + "name": "UPPER", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 10, + "name": "$10" + } + ] + } + ], + "rowCount": 36000000 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": 7, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 25, + "name": "$25" + } + ] + } + ] + }, + "inputs": [ + "12" + ], + "rowCount": 230.04000000000002 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_name", + "s_state", + "s_zip" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 24, + "name": "$24" + }, + { + "input": 25, + "name": "$25" + } + ], + "rowCount": 230.04000000000002 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "36", + "38" + ], + "rowCount": 1242216000 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "<>", + "kind": "NOT_EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 8, + "name": "$8" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "34", + "39" + ], + "rowCount": 6707966400000000 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_addr_sk", + "c_first_name", + "c_last_name", + "c_birth_country", + "ca_address_sk", + "ca_state", + "ca_zip", + "EXPR$0", + "s_store_sk", + "s_store_name", + "s_state", + "s_zip" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 6707966400000000 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 16, + "name": "$16" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "32", + "41" + ], + "rowCount": 2.0521056041906784E33 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_current_price", + "i_size", + "i_color", + "i_units", + "i_manager_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 20, + "name": "$20" + } + ], + "inputs": [ + "19" + ], + "rowCount": 462000 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 20, + "name": "$20" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "42", + "43" + ], + "rowCount": 1.4221091837041402E38 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 9, + 10, + 13, + 17, + 18, + 21, + 22, + 23, + 24, + 25 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + } + ], + "rowCount": 1.4221091837041403E37 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_first_name", + "c_last_name", + "ca_state", + "s_store_name", + "s_state", + "i_current_price", + "i_size", + "i_color", + "i_units", + "i_manager_id", + "$f10" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + } + ], + "rowCount": 1.4221091837041403E37 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "distinct": false, + "operands": [ + 10 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 10 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 1 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 21, + "scale": 6 + } + } + ] + }, + "rowCount": 1 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0" + ], + "exprs": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 0.05, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 2 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 21, + "scale": 6 + } + } + ] + } + ], + "rowCount": 1 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "28", + "50" + ], + "rowCount": 3.1494582906916504E10 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_last_name", + "c_first_name", + "s_store_name", + "paid" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 3.1494582906916504E10 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query25.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query25.q.out new file mode 100644 index 000000000000..67008946c772 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query25.q.out @@ -0,0 +1,3857 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_customer_sk", + "cs_item_sk", + "cs_net_profit", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 32, + "name": "$32" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d3", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 8, + "name": "$8" + }, + { + "literal": 4, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 10, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 2739.3375 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 2739.3375 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.431336920301817E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.0150431475531006E10 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_store_sk", + "ss_ticket_number", + "ss_net_profit", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.0150431475531006E10 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d1", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 4, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "12" + ], + "rowCount": 1.4829509932389217E13 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_returns" + ], + "table:alias": "store_returns", + "inputs": [], + "rowCount": 8332595709, + "avgRowSize": 249, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "sr_return_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "sr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "sr_returned_date_sk" + ], + "colStats": [ + { + "name": "sr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "sr_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "sr_ticket_number", + "ndv": 5065526774, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "sr_net_loss", + "ndv": 848797, + "minValue": 0.5, + "maxValue": 11008.17 + }, + { + "name": "sr_returned_date_sk", + "ndv": 2003, + "minValue": 2450820, + "maxValue": 2452822 + }, + { + "name": "sr_return_time_sk", + "ndv": 32389, + "minValue": 28799, + "maxValue": 61199 + }, + { + "name": "sr_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "sr_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "sr_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "sr_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "sr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "sr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "sr_return_amt", + "ndv": 715216, + "minValue": 0, + "maxValue": 19643 + }, + { + "name": "sr_return_tax", + "ndv": 141365, + "minValue": 0, + "maxValue": 1714.37 + }, + { + "name": "sr_return_amt_inc_tax", + "ndv": 1520430, + "minValue": 0, + "maxValue": 21018.01 + }, + { + "name": "sr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "sr_return_ship_cost", + "ndv": 363000, + "minValue": 0, + "maxValue": 9975 + }, + { + "name": "sr_refunded_cash", + "ndv": 1187970, + "minValue": 0, + "maxValue": 18413.33 + }, + { + "name": "sr_reversed_charge", + "ndv": 924833, + "minValue": 0, + "maxValue": 18104.5 + }, + { + "name": "sr_store_credit", + "ndv": 935681, + "minValue": 0, + "maxValue": 17792.48 + } + ] + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 19, + "name": "$19" + } + ] + } + ] + }, + "rowCount": 6.749402524290001E9 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_item_sk", + "sr_customer_sk", + "sr_ticket_number", + "sr_net_loss", + "sr_returned_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 19, + "name": "$19" + } + ], + "rowCount": 6.749402524290001E9 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d2", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 8, + "name": "$8" + }, + { + "literal": 4, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 10, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 2739.3375 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 2739.3375 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "16", + "19" + ], + "rowCount": 2.7733337156073394E12 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_item_sk", + "sr_customer_sk", + "sr_ticket_number", + "sr_net_loss", + "sr_returned_date_sk", + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 2.7733337156073394E12 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "13", + "21" + ], + "rowCount": 1.3880423209982265E23 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_store_sk", + "ss_ticket_number", + "ss_net_profit", + "ss_sold_date_sk", + "d_date_sk", + "sr_item_sk", + "sr_customer_sk", + "sr_ticket_number", + "sr_net_loss", + "sr_returned_date_sk", + "d_date_sk0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 1.3880423209982265E23 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "23" + ], + "rowCount": 4.470201497218922E34 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_id", + "s_store_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 1704 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "24", + "26" + ], + "rowCount": 1.1425835026891565E37 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id", + "i_item_desc" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 462000 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 21, + "name": "$21" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "27", + "29" + ], + "rowCount": 7.918103673635853E41 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 19, + 20, + 22, + 23 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 9 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 15 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 7.918103673635853E40 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "i_item_desc", + "s_store_id", + "s_store_name", + "store_sales_profit", + "store_returns_loss", + "catalog_sales_profit" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 7.918103673635853E40 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query26.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query26.q.out new file mode 100644 index 000000000000..c9ef314a93e6 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query26.q.out @@ -0,0 +1,2261 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 15, + "name": "$15" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.1350724479225002E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_cdemo_sk", + "cs_item_sk", + "cs_promo_sk", + "cs_quantity", + "cs_list_price", + "cs_sales_price", + "cs_coupon_amt", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 26, + "name": "$26" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.1350724479225002E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1998, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 5.152812913086541E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_demographics" + ], + "table:alias": "customer_demographics", + "inputs": [], + "rowCount": 1920800, + "avgRowSize": 217, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cd_demo_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_gender" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_marital_status" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cd_education_status" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_purchase_estimate" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cd_credit_rating" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_employed_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_college_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cd_demo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cd_gender", + "ndv": 2 + }, + { + "name": "cd_marital_status", + "ndv": 5 + }, + { + "name": "cd_education_status", + "ndv": 7 + }, + { + "name": "cd_purchase_estimate", + "ndv": 20, + "minValue": 500, + "maxValue": 10000 + }, + { + "name": "cd_credit_rating", + "ndv": 4 + }, + { + "name": "cd_dep_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_employed_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_college_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": "W", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": "F", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": "Primary ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 20 + } + } + ] + } + ] + }, + "rowCount": 6482.7 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6482.7 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 50106210407499176 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "promotion" + ], + "table:alias": "promotion", + "inputs": [], + "rowCount": 2300, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "p_promo_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "p_promo_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "p_start_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "p_end_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "p_item_sk" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 2, + "name": "p_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "p_response_target" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "p_promo_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_dmail" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_email" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_catalog" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_tv" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_radio" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_press" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_event" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_demo" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "p_channel_details" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "p_purpose" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_discount_active" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "p_promo_sk", + "ndv": 2365, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "p_channel_email", + "ndv": 2 + }, + { + "name": "p_channel_event", + "ndv": 2 + }, + { + "name": "p_promo_id", + "ndv": 2307 + }, + { + "name": "p_start_date_sk", + "ndv": 761, + "minValue": 2450096, + "maxValue": 2450915 + }, + { + "name": "p_end_date_sk", + "ndv": 736, + "minValue": 2450102, + "maxValue": 2450970 + }, + { + "name": "p_item_sk", + "ndv": 2252, + "minValue": 614, + "maxValue": 461932 + }, + { + "name": "p_cost", + "ndv": 1, + "minValue": 1000, + "maxValue": 1000 + }, + { + "name": "p_response_target", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "p_promo_name", + "ndv": 11 + }, + { + "name": "p_channel_dmail", + "ndv": 3 + }, + { + "name": "p_channel_catalog", + "ndv": 2 + }, + { + "name": "p_channel_tv", + "ndv": 2 + }, + { + "name": "p_channel_radio", + "ndv": 2 + }, + { + "name": "p_channel_press", + "ndv": 2 + }, + { + "name": "p_channel_demo", + "ndv": 2 + }, + { + "name": "p_channel_details", + "ndv": 2242 + }, + { + "name": "p_purpose", + "ndv": 2 + }, + { + "name": "p_discount_active", + "ndv": 2 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "literal": "N", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "N", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + } + ] + }, + "rowCount": 575 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "p_promo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 575 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "13" + ], + "rowCount": 4321660647646803456 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 462000 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "14", + "16" + ], + "rowCount": 2.9949108288192346E23 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 12 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + } + ], + "rowCount": 2.9949108288192346E22 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "agg1", + "agg2", + "agg3", + "agg4" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "rowCount": 2.9949108288192346E22 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query27.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query27.q.out new file mode 100644 index 000000000000..97e731327bc5 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query27.q.out @@ -0,0 +1,2358 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.0150431475531006E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_cdemo_sk", + "ss_store_sk", + "ss_quantity", + "ss_list_price", + "ss_sales_price", + "ss_coupon_amt", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.0150431475531006E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 9.886339954926145E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_demographics" + ], + "table:alias": "customer_demographics", + "inputs": [], + "rowCount": 1920800, + "avgRowSize": 217, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cd_demo_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_gender" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_marital_status" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cd_education_status" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_purchase_estimate" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cd_credit_rating" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_employed_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_college_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cd_demo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cd_gender", + "ndv": 2 + }, + { + "name": "cd_marital_status", + "ndv": 5 + }, + { + "name": "cd_education_status", + "ndv": 7 + }, + { + "name": "cd_purchase_estimate", + "ndv": 20, + "minValue": 500, + "maxValue": 10000 + }, + { + "name": "cd_credit_rating", + "ndv": 4 + }, + { + "name": "cd_dep_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_employed_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_college_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": "U", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": "M", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": "2 yr Degree ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 20 + } + } + ] + } + ] + }, + "rowCount": 6482.7 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6482.7 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 96135264038699568 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 24, + "name": "$24" + }, + { + "literal": "FL", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "LA", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "MI", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "MO", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "SC", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "SD", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + "rowCount": 426 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_state" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 24, + "name": "$24" + } + ], + "rowCount": 426 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "13" + ], + "rowCount": 6143043372072901632 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 462000 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 12, + "name": "$12" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "14", + "16" + ], + "rowCount": 4.257129056846521E23 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5" + ], + "exprs": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 4.257129056846521E23 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "groups": [ + [ + 0, + 1 + ], + [ + 0 + ], + [] + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "GROUPING__ID", + "kind": "OTHER", + "syntax": "FUNCTION" + }, + "type": { + "type": "BIGINT", + "nullable": false + }, + "distinct": false, + "operands": [], + "name": "GROUPING__ID" + } + ], + "rowCount": 1.2771387170539563E23 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "s_state", + "g_state", + "agg1", + "agg2", + "agg3", + "agg4" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "rowCount": 1.2771387170539563E23 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query28.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query28.q.out new file mode 100644 index 000000000000..b68e6a7a6de9 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query28.q.out @@ -0,0 +1,2242 @@ +Warning: Map Join MAPJOIN[101][bigTable=?] in task 'Reducer 9' is a cross product +Warning: Map Join MAPJOIN[105][bigTable=?] in task 'Reducer 7' is a cross product +Warning: Map Join MAPJOIN[104][bigTable=?] in task 'Reducer 7' is a cross product +Warning: Map Join MAPJOIN[103][bigTable=?] in task 'Reducer 7' is a cross product +Warning: Map Join MAPJOIN[102][bigTable=?] in task 'Reducer 7' is a cross product +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 86404891377, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 159044, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_net_paid", + "ndv": 1334023, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1468124, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 11, + "name": "$11" + }, + { + "literal": 11, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 21, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 18, + "name": "$18" + }, + { + "literal": 460, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 1460, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 10, + "name": "$10" + }, + { + "literal": 14, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 34, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + } + ] + } + ] + }, + "rowCount": 5.4003057110625E9 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": true, + "operands": [ + 11 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "b1_lp", + "b1_cnt", + "b1_cntd" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 26, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 30, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 11, + "name": "$11" + }, + { + "literal": 28, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 38, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 18, + "name": "$18" + }, + { + "literal": 2513, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 3513, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 10, + "name": "$10" + }, + { + "literal": 42, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 62, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 5.4003057110625E9 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": true, + "operands": [ + 11 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "b6_lp", + "b6_cnt", + "b6_cntd" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "3", + "6" + ], + "rowCount": 1 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 21, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 25, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 11, + "name": "$11" + }, + { + "literal": 135, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 145, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 18, + "name": "$18" + }, + { + "literal": 14180, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 15180, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 10, + "name": "$10" + }, + { + "literal": 38, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 58, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 5.4003057110625E9 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": true, + "operands": [ + 11 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "b5_lp", + "b5_cnt", + "b5_cntd" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "7", + "10" + ], + "rowCount": 1 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 16, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 20, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 11, + "name": "$11" + }, + { + "literal": 142, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 152, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 18, + "name": "$18" + }, + { + "literal": 3054, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 4054, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 10, + "name": "$10" + }, + { + "literal": 80, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 100, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 5.4003057110625E9 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": true, + "operands": [ + 11 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "b4_lp", + "b4_cnt", + "b4_cntd" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "11", + "14" + ], + "rowCount": 1 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 11, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 15, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 11, + "name": "$11" + }, + { + "literal": 66, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 76, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 18, + "name": "$18" + }, + { + "literal": 920, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 1920, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 10, + "name": "$10" + }, + { + "literal": 4, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 24, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 5.4003057110625E9 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": true, + "operands": [ + 11 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "b3_lp", + "b3_cnt", + "b3_cntd" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "15", + "18" + ], + "rowCount": 1 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 6, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 10, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 11, + "name": "$11" + }, + { + "literal": 91, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 101, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 18, + "name": "$18" + }, + { + "literal": 1430, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 2430, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 10, + "name": "$10" + }, + { + "literal": 32, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 52, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 5.4003057110625E9 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": true, + "operands": [ + 11 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "b2_lp", + "b2_cnt", + "b2_cntd" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "19", + "22" + ], + "rowCount": 1 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "b1.b1_lp", + "b1.b1_cnt", + "b1.b1_cntd", + "b2.b2_lp", + "b2.b2_cnt", + "b2.b2_cntd", + "b3.b3_lp", + "b3.b3_cnt", + "b3.b3_cntd", + "b4.b4_lp", + "b4.b4_cnt", + "b4.b4_cntd", + "b5.b5_lp", + "b5.b5_cnt", + "b5.b5_cntd", + "b6.b6_lp", + "b6.b6_cnt", + "b6.b6_cntd" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 1 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query29.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query29.q.out new file mode 100644 index 000000000000..5343b89b8395 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query29.q.out @@ -0,0 +1,3822 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_customer_sk", + "cs_item_sk", + "cs_quantity", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d3", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 9.542246135345445E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.0150431475531006E10 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_store_sk", + "ss_ticket_number", + "ss_quantity", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.0150431475531006E10 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d1", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 4, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "12" + ], + "rowCount": 1.4829509932389217E13 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_returns" + ], + "table:alias": "store_returns", + "inputs": [], + "rowCount": 8332595709, + "avgRowSize": 249, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "sr_return_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "sr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "sr_returned_date_sk" + ], + "colStats": [ + { + "name": "sr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "sr_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "sr_ticket_number", + "ndv": 5065526774, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "sr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "sr_returned_date_sk", + "ndv": 2003, + "minValue": 2450820, + "maxValue": 2452822 + }, + { + "name": "sr_return_time_sk", + "ndv": 32389, + "minValue": 28799, + "maxValue": 61199 + }, + { + "name": "sr_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "sr_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "sr_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "sr_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "sr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "sr_return_amt", + "ndv": 715216, + "minValue": 0, + "maxValue": 19643 + }, + { + "name": "sr_return_tax", + "ndv": 141365, + "minValue": 0, + "maxValue": 1714.37 + }, + { + "name": "sr_return_amt_inc_tax", + "ndv": 1520430, + "minValue": 0, + "maxValue": 21018.01 + }, + { + "name": "sr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "sr_return_ship_cost", + "ndv": 363000, + "minValue": 0, + "maxValue": 9975 + }, + { + "name": "sr_refunded_cash", + "ndv": 1187970, + "minValue": 0, + "maxValue": 18413.33 + }, + { + "name": "sr_reversed_charge", + "ndv": 924833, + "minValue": 0, + "maxValue": 18104.5 + }, + { + "name": "sr_store_credit", + "ndv": 935681, + "minValue": 0, + "maxValue": 17792.48 + }, + { + "name": "sr_net_loss", + "ndv": 848797, + "minValue": 0.5, + "maxValue": 11008.17 + } + ] + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 19, + "name": "$19" + } + ] + } + ] + }, + "rowCount": 6.749402524290001E9 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_item_sk", + "sr_customer_sk", + "sr_ticket_number", + "sr_return_quantity", + "sr_returned_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 19, + "name": "$19" + } + ], + "rowCount": 6.749402524290001E9 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d2", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 8, + "name": "$8" + }, + { + "literal": 4, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 7, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 2739.3375 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 2739.3375 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "16", + "19" + ], + "rowCount": 2.7733337156073394E12 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_item_sk", + "sr_customer_sk", + "sr_ticket_number", + "sr_return_quantity", + "sr_returned_date_sk", + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 2.7733337156073394E12 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "13", + "21" + ], + "rowCount": 1.3880423209982265E23 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_store_sk", + "ss_ticket_number", + "ss_quantity", + "ss_sold_date_sk", + "d_date_sk", + "sr_item_sk", + "sr_customer_sk", + "sr_ticket_number", + "sr_return_quantity", + "sr_returned_date_sk", + "d_date_sk0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 1.3880423209982265E23 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "23" + ], + "rowCount": 2.980134331479281E35 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_id", + "s_store_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 1704 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "24", + "26" + ], + "rowCount": 7.617223351261042E37 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id", + "i_item_desc" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 462000 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 21, + "name": "$21" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "27", + "29" + ], + "rowCount": 5.278735782423902E42 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 19, + 20, + 22, + 23 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 9 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 15 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 5.278735782423902E41 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "i_item_desc", + "s_store_id", + "s_store_name", + "store_sales_quantity", + "store_returns_quantity", + "catalog_sales_quantity" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 5.278735782423902E41 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query3.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query3.q.out new file mode 100644 index 000000000000..537bfca7f0df --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query3.q.out @@ -0,0 +1,1266 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + }, + "rowCount": 7.42597919451E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "literal": 436, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 69300 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_brand" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 69300 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 7.719305372693145E14 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "dt", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 10957.35 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 1268746960882188544 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 4, + 5, + 7 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 126874696088218848 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "dt.d_year", + "brand_id", + "brand", + "sum_agg" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 126874696088218848 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "DESCENDING", + "nulls": "FIRST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query30.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query30.q.out new file mode 100644 index 000000000000..a13f416ceb11 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query30.q.out @@ -0,0 +1,2273 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "rowCount": 72000000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_customer_id", + "c_current_addr_sk", + "c_salutation", + "c_first_name", + "c_last_name", + "c_preferred_cust_flag", + "c_birth_day", + "c_birth_month", + "c_birth_year", + "c_birth_country", + "c_login", + "c_email_address", + "c_last_review_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + } + ], + "rowCount": 72000000 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "IL", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + "rowCount": 6000000 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6000000 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 64800000000000 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 8, + "name": "$8" + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 36000000 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_state" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 36000000 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_returns" + ], + "table:alias": "web_returns", + "inputs": [], + "rowCount": 2062802370, + "avgRowSize": 281, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "wr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_account_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "wr_returned_date_sk" + ], + "colStats": [ + { + "name": "wr_returning_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_return_amt", + "ndv": 1108704, + "minValue": 0, + "maxValue": 29191 + }, + { + "name": "wr_returned_date_sk", + "ndv": 2184, + "minValue": 2450819, + "maxValue": 2453002 + }, + { + "name": "wr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "wr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "wr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "wr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "wr_order_number", + "ndv": 1283768204, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "wr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "wr_return_tax", + "ndv": 198814, + "minValue": 0, + "maxValue": 2620.34 + }, + { + "name": "wr_return_amt_inc_tax", + "ndv": 2111617, + "minValue": 0, + "maxValue": 31735.25 + }, + { + "name": "wr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "wr_return_ship_cost", + "ndv": 551289, + "minValue": 0, + "maxValue": 14624 + }, + { + "name": "wr_refunded_cash", + "ndv": 1630543, + "minValue": 0, + "maxValue": 28085.82 + }, + { + "name": "wr_reversed_charge", + "ndv": 1276207, + "minValue": 0, + "maxValue": 26135.99 + }, + { + "name": "wr_account_credit", + "ndv": 1245536, + "minValue": 0, + "maxValue": 24649.69 + }, + { + "name": "wr_net_loss", + "ndv": 1225199, + "minValue": 0.5, + "maxValue": 16733.32 + } + ] + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 23, + "name": "$23" + } + ] + } + ] + }, + "rowCount": 1.5037829277300003E9 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wr_returning_customer_sk", + "wr_returning_addr_sk", + "wr_return_amt", + "wr_returned_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 23, + "name": "$23" + } + ], + "rowCount": 1.5037829277300003E9 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "11", + "14" + ], + "rowCount": 2.4716213794743477E12 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "8", + "15" + ], + "rowCount": 1.3346755449161478E19 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + } + ], + "rowCount": 1334675544916147712 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wr_returning_customer_sk", + "ca_state", + "$f2" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1334675544916147712 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + "rowCount": 1201207990424532992 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wr_returning_customer_sk", + "ca_state", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1201207990424532992 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "20" + ], + "rowCount": 1.1675741666926459E31 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 8, + "name": "$8" + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 36000000 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_state" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 36000000 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 23, + "name": "$23" + } + ] + } + ] + }, + "inputs": [ + "9" + ], + "rowCount": 1.6708699197E9 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wr_returning_customer_sk", + "wr_returning_addr_sk", + "wr_return_amt", + "wr_returned_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 23, + "name": "$23" + } + ], + "rowCount": 1.6708699197E9 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "12" + ], + "rowCount": 10957.35 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "25", + "27" + ], + "rowCount": 2.746245977193719E12 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "23", + "28" + ], + "rowCount": 1.4829728276846082E19 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + } + ], + "rowCount": 1482972827684608256 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_state", + "wr_returning_customer_sk", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1482972827684608256 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 36000000 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 21, + "scale": 6 + } + } + ] + }, + "rowCount": 32400000 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0", + "ctr_state" + ], + "exprs": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 21, + "scale": 6 + } + }, + { + "literal": 1.2, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + } + ] + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 32400000 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 16, + "name": "$16" + }, + { + "input": 19, + "name": "$19" + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "input": 18, + "name": "$18" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "21", + "34" + ], + "rowCount": 2.837205225063129E37 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_id", + "c_salutation", + "c_first_name", + "c_last_name", + "c_preferred_cust_flag", + "c_birth_day", + "c_birth_month", + "c_birth_year", + "c_birth_country", + "c_login", + "c_email_address", + "c_last_review_date_sk", + "ctr_total_return" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 17, + "name": "$17" + } + ], + "rowCount": 2.837205225063129E37 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 4, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 5, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 6, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 7, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 8, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 9, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 10, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 11, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 12, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query31.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query31.q.out new file mode 100644 index 000000000000..9d0d5d6437ce --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query31.q.out @@ -0,0 +1,3582 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + "rowCount": 36000000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_county" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 36000000 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_bill_addr_sk", + "ws_ext_sales_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "8" + ], + "rowCount": 4.312399710977669E12 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "9" + ], + "rowCount": 2.3286958439279415E19 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + } + ], + "rowCount": 2328695843927941632 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f3", + "EXPR$4" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + } + ], + "rowCount": 2328695843927941632 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 36000000 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_county" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 36000000 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_bill_addr_sk", + "ws_ext_sales_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "6" + ], + "rowCount": 1643.6025 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "16", + "18" + ], + "rowCount": 4.312399710977669E12 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "14", + "19" + ], + "rowCount": 2.3286958439279415E19 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + } + ], + "rowCount": 2328695843927941632 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_county", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 2328695843927941632 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "22" + ], + "rowCount": 8.134236500290903E35 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 36000000 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_county" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 36000000 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_bill_addr_sk", + "ws_ext_sales_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "6" + ], + "rowCount": 1643.6025 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "27", + "29" + ], + "rowCount": 4.312399710977669E12 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "25", + "30" + ], + "rowCount": 2.3286958439279415E19 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + } + ], + "rowCount": 2328695843927941632 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f3", + "EXPR$4" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + } + ], + "rowCount": 2328695843927941632 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "23", + "33" + ], + "rowCount": 2.8413244097631587E53 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_addr_sk", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "6" + ], + "rowCount": 1643.6025 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "37", + "39" + ], + "rowCount": 1.647723325821024E13 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 36000000 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_county" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 36000000 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "40", + "42" + ], + "rowCount": 8.89770595943353E19 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 8897705959433530368 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_county", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 8897705959433530368 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "inputs": [ + "35" + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_addr_sk", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "6" + ], + "rowCount": 1643.6025 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "47", + "49" + ], + "rowCount": 1.647723325821024E13 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 36000000 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_county" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 36000000 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "50", + "52" + ], + "rowCount": 8.89770595943353E19 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 8897705959433530368 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_county", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 8897705959433530368 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "45", + "55" + ], + "rowCount": 1.1875375701080843E37 + }, + { + "id": "57", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "inputs": [ + "35" + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "58", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_addr_sk", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "59", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "6" + ], + "rowCount": 1643.6025 + }, + { + "id": "60", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "61", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "58", + "60" + ], + "rowCount": 1.647723325821024E13 + }, + { + "id": "62", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 36000000 + }, + { + "id": "63", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_county" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 36000000 + }, + { + "id": "64", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "61", + "63" + ], + "rowCount": 8.89770595943353E19 + }, + { + "id": "65", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 8897705959433530368 + }, + { + "id": "66", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_county", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 8897705959433530368 + }, + { + "id": "67", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "56", + "66" + ], + "rowCount": 1.5849540171902874E55 + }, + { + "id": "68", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_county", + "$f1", + "ca_county0", + "$f10", + "ca_county1", + "$f11" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 1.5849540171902874E55 + }, + { + "id": "69", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ] + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "34", + "68" + ], + "rowCount": 4.221908003807757E106 + }, + { + "id": "70", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss1.ca_county", + "ss1.d_year", + "web_q1_q2_increase", + "store_q1_q2_increase", + "web_q2_q3_increase", + "store_q2_q3_increase" + ], + "exprs": [ + { + "input": 8, + "name": "$8" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 9, + "name": "$9" + } + ] + } + ], + "rowCount": 4.221908003807757E106 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query32.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query32.q.out new file mode 100644 index 000000000000..f9c83b7b726c --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query32.q.out @@ -0,0 +1,1738 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 21, + "name": "$21" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_item_sk", + "cs_ext_discount_amt", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "literal": 269, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 69300 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 69300 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 3.6210086773504875E14 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 890179200000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 897955200000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 991916485769159040 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 3.87045981225E10 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_item_sk", + "cs_ext_discount_amt", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.87045981225E10 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 890179200000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 897955200000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 18262.25 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "14" + ], + "rowCount": 1.0602495705939384E14 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 1.0602495705939385E13 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ] + }, + "rowCount": 9.542246135345447E12 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0", + "cs_item_sk" + ], + "exprs": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 1.3, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ] + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 9.542246135345447E12 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 5, + "name": "$5" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "18" + ], + "rowCount": 7.098833439687146E29 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "excess discount amount" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query33.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query33.q.out new file mode 100644 index 000000000000..46241503fea7 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query33.q.out @@ -0,0 +1,4026 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_addr_sk", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 1643.6025 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.647723325821024E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "literal": -6, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "rowCount": 6000000 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_gmt_offset" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": -6, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 5, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2 + } + } + ], + "rowCount": 6000000 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 1.4829509932389216E19 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + }, + "rowCount": 415800 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_manufact_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 13, + "name": "$13" + } + ], + "rowCount": 415800 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "13" + ], + "rowCount": 9.249165344831153E23 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Books ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + } + ] + }, + "rowCount": 62370.00000000001 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_manufact_id" + ], + "exprs": [ + { + "input": 13, + "name": "$13" + } + ], + "rowCount": 62370.00000000001 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "semi", + "inputs": [ + "14", + "17" + ], + "rowCount": 1.2486373215522058E23 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 10 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 1.2486373215522058E22 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_manufact_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 1.2486373215522058E22 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_addr_sk", + "cs_item_sk", + "cs_ext_sales_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1643.6025 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 1643.6025 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "23", + "25" + ], + "rowCount": 8.5880215218109E12 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "literal": -6, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 6000000 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_gmt_offset" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": -6, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 5, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2 + } + } + ], + "rowCount": 6000000 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "26", + "28" + ], + "rowCount": 7729219369629809664 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + }, + "inputs": [ + "11" + ], + "rowCount": 415800 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_manufact_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 13, + "name": "$13" + } + ], + "rowCount": 415800 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "29", + "31" + ], + "rowCount": 4.8207141208381116E23 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Books ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + } + ] + }, + "inputs": [ + "15" + ], + "rowCount": 62370.00000000001 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_manufact_id" + ], + "exprs": [ + { + "input": 13, + "name": "$13" + } + ], + "rowCount": 62370.00000000001 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "semi", + "inputs": [ + "32", + "34" + ], + "rowCount": 6.507964063131451E22 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 10 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 6.507964063131451E21 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_manufact_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 6.507964063131451E21 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_bill_addr_sk", + "ws_ext_sales_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1643.6025 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 1643.6025 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "40", + "42" + ], + "rowCount": 4.312399710977669E12 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "literal": -6, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 6000000 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_gmt_offset" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": -6, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 5, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2 + } + } + ], + "rowCount": 6000000 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "43", + "45" + ], + "rowCount": 3881159739879902208 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + }, + "inputs": [ + "11" + ], + "rowCount": 415800 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_manufact_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 13, + "name": "$13" + } + ], + "rowCount": 415800 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "46", + "48" + ], + "rowCount": 2.420679329763095E23 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Books ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + } + ] + }, + "inputs": [ + "15" + ], + "rowCount": 62370.00000000001 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_manufact_id" + ], + "exprs": [ + { + "input": 13, + "name": "$13" + } + ], + "rowCount": 62370.00000000001 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "semi", + "inputs": [ + "49", + "51" + ], + "rowCount": 3.2679170951801783E22 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 10 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 3.2679170951801786E21 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_manufact_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 3.2679170951801786E21 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "20", + "37", + "54" + ], + "rowCount": 2.226225437383369E22 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_manufact_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 2.226225437383369E22 + }, + { + "id": "57", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 2.226225437383369E21 + }, + { + "id": "58", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_manufact_id", + "total_sales" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 2.226225437383369E21 + }, + { + "id": "59", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query34.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query34.q.out new file mode 100644 index 000000000000..6d95c81d3c67 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query34.q.out @@ -0,0 +1,2247 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_salutation", + "c_first_name", + "c_last_name", + "c_preferred_cust_flag" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + } + ], + "rowCount": 80000000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 5.413538832797791E10 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_hdemo_sk", + "ss_store_sk", + "ss_ticket_number", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 5.413538832797791E10 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 25, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 28, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + }, + "rowCount": 4565.5625 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 4565.5625 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "4", + "7" + ], + "rowCount": 3.707377483097305E13 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "household_demographics" + ], + "table:alias": "household_demographics", + "inputs": [], + "rowCount": 7200, + "avgRowSize": 183, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "hd_demo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "hd_income_band_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "hd_buy_potential" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_vehicle_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "hd_demo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "hd_buy_potential", + "ndv": 6 + }, + { + "name": "hd_dep_count", + "ndv": 10, + "minValue": 0, + "maxValue": 9 + }, + { + "name": "hd_vehicle_count", + "ndv": 6, + "minValue": -1, + "maxValue": 4 + }, + { + "name": "hd_income_band_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + } + ] + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": ">10000", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + }, + { + "literal": "unknown", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + } + ] + }, + { + "literal": 1.2, + "type": { + "type": "DOUBLE", + "nullable": false + } + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 225 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 225 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "8", + "11" + ], + "rowCount": 1.2512399005453402E15 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 23, + "name": "$23" + }, + { + "literal": "Barrow County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + }, + { + "literal": "Fairfield County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + }, + { + "literal": "Huron County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + }, + { + "literal": "Jackson County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + }, + { + "literal": "Kittitas County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + }, + { + "literal": "Maverick County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + }, + { + "literal": "Mobile County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + }, + { + "literal": "Pennington County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + } + ] + }, + "rowCount": 426 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 426 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "15" + ], + "rowCount": 79954229644847232 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 3 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 7995422964484723 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_ticket_number", + "ss_customer_sk", + "$f2" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 7995422964484723 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 2, + "name": "$2" + }, + { + "literal": 15, + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "literal": 20, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + "rowCount": 1.9988557411211808E15 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_ticket_number", + "ss_customer_sk", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.9988557411211808E15 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "20" + ], + "rowCount": 2.398626889345417E22 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_last_name", + "c_first_name", + "c_salutation", + "c_preferred_cust_flag", + "ss_ticket_number", + "cnt" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 2.398626889345417E22 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "DESCENDING", + "nulls": "FIRST" + } + ], + "rowCount": 2.398626889345417E22 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query35.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query35.q.out new file mode 100644 index 000000000000..fd5a87417e07 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query35.q.out @@ -0,0 +1,3595 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_demographics" + ], + "table:alias": "customer_demographics", + "inputs": [], + "rowCount": 1920800, + "avgRowSize": 217, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cd_demo_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_gender" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_marital_status" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cd_education_status" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_purchase_estimate" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cd_credit_rating" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_employed_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_college_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cd_demo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cd_gender", + "ndv": 2 + }, + { + "name": "cd_marital_status", + "ndv": 5 + }, + { + "name": "cd_dep_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_employed_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_college_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_education_status", + "ndv": 7 + }, + { + "name": "cd_purchase_estimate", + "ndv": 20, + "minValue": 500, + "maxValue": 10000 + }, + { + "name": "cd_credit_rating", + "ndv": 4 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk", + "cd_gender", + "cd_marital_status", + "cd_dep_count", + "cd_dep_employed_count", + "cd_dep_college_count" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 1920800 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "c", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "rowCount": 6.480000000000001E7 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_cdemo_sk", + "c_current_addr_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 6.480000000000001E7 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<", + "kind": "LESS_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": 4, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 5478.675 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 5478.675 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "7", + "10" + ], + "rowCount": 5.4924110860700805E13 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 5.4924110860700805E13 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "semi", + "inputs": [ + "4", + "12" + ], + "rowCount": 3936600.0000000005 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_bill_customer_sk", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<", + "kind": "LESS_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": 4, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "8" + ], + "rowCount": 5478.675 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 5478.675 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "16", + "18" + ], + "rowCount": 1.4374665703258896E13 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [], + "rowCount": 1.4374665703258896E12 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "literalTrue", + "ws_bill_customer_sk" + ], + "exprs": [ + { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1.4374665703258896E12 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "13", + "21" + ], + "rowCount": 848809635115080704 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_ship_customer_sk", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<", + "kind": "LESS_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": 4, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "8" + ], + "rowCount": 5478.675 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 5478.675 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "25", + "27" + ], + "rowCount": 2.862673840603634E13 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [], + "rowCount": 2.862673840603634E12 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "literalTrue", + "cs_ship_customer_sk" + ], + "exprs": [ + { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 2.862673840603634E12 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "22", + "30" + ], + "rowCount": 3.6447977071516E29 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + } + ] + }, + "rowCount": 9.111994267879E28 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_cdemo_sk", + "c_current_addr_sk", + "literalTrue", + "ws_bill_customer_sk", + "literalTrue0", + "cs_ship_customer_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 9.111994267879E28 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "33" + ], + "rowCount": 2.6253477884612972E34 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "ca", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_state" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 40000000 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 13, + "name": "$13" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "34", + "36" + ], + "rowCount": 1.5752086730767783E41 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1, + 2, + 3, + 4, + 5, + 14 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "max", + "kind": "MAX", + "syntax": "FUNCTION" + }, + "type": { + "type": "INTEGER", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "max", + "kind": "MAX", + "syntax": "FUNCTION" + }, + "type": { + "type": "INTEGER", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "max", + "kind": "MAX", + "syntax": "FUNCTION" + }, + "type": { + "type": "INTEGER", + "nullable": true + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + } + ], + "rowCount": 1.5752086730767783E40 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_state", + "cd_gender", + "cd_marital_status", + "cnt1", + "_o__c4", + "_o__c5", + "_o__c6", + "cd_dep_employed_count", + "cnt2", + "_o__c9", + "_o__c10", + "_o__c11", + "cd_dep_college_count", + "cnt3", + "_o__c14", + "_o__c15", + "_o__c16", + "(tok_table_or_col cd_dep_count)" + ], + "exprs": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 6, + "name": "$6" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 8, + "name": "$8" + } + ] + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 6, + "name": "$6" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 11, + "name": "$11" + } + ] + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 6, + "name": "$6" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 14, + "name": "$14" + } + ] + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.5752086730767783E40 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 17, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 7, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 12, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_state", + "cd_gender", + "cd_marital_status", + "cnt1", + "_c4", + "_c5", + "_c6", + "cd_dep_employed_count", + "cnt2", + "_c9", + "_c10", + "_c11", + "cd_dep_college_count", + "cnt3", + "_c14", + "_c15", + "_c16" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query36.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query36.q.out new file mode 100644 index 000000000000..83ce73804e26 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query36.q.out @@ -0,0 +1,2252 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_store_sk", + "ss_ext_sales_price", + "ss_net_profit", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d1", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.0984822172140161E14 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 24, + "name": "$24" + }, + { + "literal": "AL", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "FL", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "GA", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "LA", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "MI", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "MO", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "SC", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "SD", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + "rowCount": 426 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 426 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 7019301367997563 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_class", + "i_category" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 462000 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "12" + ], + "rowCount": 4.864375848022311E20 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3" + ], + "exprs": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 4.864375848022311E20 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "groups": [ + [ + 0, + 1 + ], + [ + 0 + ], + [] + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "GROUPING__ID", + "kind": "OTHER", + "syntax": "FUNCTION" + }, + "type": { + "type": "BIGINT", + "nullable": false + }, + "distinct": false, + "operands": [], + "name": "GROUPING__ID" + } + ], + "rowCount": 1.4593127544066933E20 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "GROUPING__ID" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 1.4593127544066933E20 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "gross_margin", + "i_category", + "i_class", + "lochierarchy", + "rank_within_parent", + "(tok_function when (= (tok_table_or_col lochierarchy) 0) (tok_table_or_col i_category))" + ], + "exprs": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 1, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + } + ] + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 1, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "BIGINT", + "nullable": true + } + } + ] + }, + { + "input": 0, + "name": "$0" + }, + { + "literal": null, + "type": { + "type": "CHAR", + "nullable": true, + "precision": 50 + } + } + ] + } + ], + "order": [ + { + "expr": { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "direction": "ASCENDING", + "null-direction": "LAST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 1, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + } + ] + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "input": 0, + "name": "$0" + }, + { + "literal": null, + "type": { + "type": "CHAR", + "nullable": true, + "precision": 50 + } + } + ] + } + ], + "rowCount": 1.4593127544066933E20 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 3, + "direction": "DESCENDING", + "nulls": "FIRST" + }, + { + "field": 5, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 4, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "gross_margin", + "i_category", + "i_class", + "lochierarchy", + "rank_within_parent" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query37.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query37.q.out new file mode 100644 index 000000000000..9c2e95830475 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query37.q.out @@ -0,0 +1,1616 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43220864887, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1644740, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1837, + "minValue": 2450815, + "maxValue": 2452654 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_item_sk" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + } + ], + "rowCount": 43220864887 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 991440000000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 996624000000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "inventory" + ], + "table:alias": "inventory", + "inputs": [], + "rowCount": 1627857000, + "avgRowSize": 157, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "inv_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "inv_item_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "inv_warehouse_sk" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "inv_quantity_on_hand" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "inv_date_sk", + "ndv": 258, + "minValue": 2450815, + "maxValue": 2452635 + }, + { + "name": "inv_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "inv_quantity_on_hand", + "ndv": 987, + "minValue": 0, + "maxValue": 1000 + }, + { + "name": "inv_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + } + ] + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 500, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 406964250 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "inv_date_sk", + "inv_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 406964250 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "literal": 678, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 849, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 918, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 964, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 22, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 52, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + } + ] + }, + "rowCount": 28875 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id", + "i_item_desc", + "i_current_price" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 28875 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "7", + "10" + ], + "rowCount": 1.7626639078125E12 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "4", + "11" + ], + "rowCount": 4828531342567324 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "12" + ], + "rowCount": 3.130399511396205E25 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5, + 6, + 7 + ], + "aggs": [], + "rowCount": 3.130399511396205E24 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "i_item_desc", + "i_current_price" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 3.130399511396205E24 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query38.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query38.q.out new file mode 100644 index 000000000000..bd9adfee5f0f --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query38.q.out @@ -0,0 +1,2904 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_first_name", + "c_last_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "rowCount": 80000000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 18262.25 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "4", + "7" + ], + "rowCount": 1.8308036953566934E14 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "8" + ], + "rowCount": 2.196964434428032E21 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1, + 2, + 6 + ], + "aggs": [], + "rowCount": 2.1969644344280318E20 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_first_name", + "c_last_name", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 2.1969644344280318E20 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_last_name", + "c_first_name", + "d_date", + "$f3" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 80000000 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_first_name", + "c_last_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "inputs": [ + "0" + ], + "rowCount": 80000000 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_customer_sk", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "5" + ], + "rowCount": 18262.25 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 18262.25 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "17", + "19" + ], + "rowCount": 9.542246135345445E13 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "14", + "20" + ], + "rowCount": 1.1450695362414534E21 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1, + 2, + 6 + ], + "aggs": [], + "rowCount": 1.1450695362414533E20 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_first_name", + "c_last_name", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.1450695362414533E20 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_last_name", + "c_first_name", + "d_date", + "$f3" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 80000000 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_first_name", + "c_last_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "inputs": [ + "0" + ], + "rowCount": 80000000 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_bill_customer_sk", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "5" + ], + "rowCount": 18262.25 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 18262.25 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "29", + "31" + ], + "rowCount": 4.791555234419632E13 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "26", + "32" + ], + "rowCount": 5.749866281303558E20 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1, + 2, + 6 + ], + "aggs": [], + "rowCount": 5.749866281303558E19 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_first_name", + "c_last_name", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 5.749866281303558E19 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_last_name", + "c_first_name", + "d_date", + "$f3" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 80000000 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "13", + "25", + "37" + ], + "rowCount": 240000000 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_last_name", + "c_first_name", + "d_date", + "$f3" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 240000000 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + } + ], + "rowCount": 240000000 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 3, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + "rowCount": 36000000 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_last_name", + "c_first_name", + "d_date", + "$f3" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 36000000 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_c0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query39.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query39.q.out new file mode 100644 index 000000000000..092e4f737528 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query39.q.out @@ -0,0 +1,2665 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "inventory" + ], + "table:alias": "inventory", + "inputs": [], + "rowCount": 1627857000, + "avgRowSize": 157, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "inv_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "inv_item_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "inv_warehouse_sk" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "inv_quantity_on_hand" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "inv_date_sk", + "ndv": 258, + "minValue": 2450815, + "maxValue": 2452635 + }, + { + "name": "inv_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "inv_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "inv_quantity_on_hand", + "ndv": 987, + "minValue": 0, + "maxValue": 1000 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "inv_date_sk", + "inv_warehouse_sk", + "inv_quantity_on_hand", + "inv_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 1627857000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "4" + ], + "rowCount": 4.01332475226375E11 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "warehouse" + ], + "table:alias": "warehouse", + "inputs": [], + "rowCount": 27, + "avgRowSize": 679, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "w_warehouse_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "w_warehouse_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "w_warehouse_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "w_warehouse_sq_ft" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "w_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "w_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "w_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "w_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "w_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "w_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "w_gmt_offset" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "w_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "w_warehouse_name", + "ndv": 27 + }, + { + "name": "w_warehouse_id", + "ndv": 27 + }, + { + "name": "w_warehouse_sq_ft", + "ndv": 26, + "minValue": 73065, + "maxValue": 977787 + }, + { + "name": "w_street_number", + "ndv": 26 + }, + { + "name": "w_street_name", + "ndv": 27 + }, + { + "name": "w_street_type", + "ndv": 16 + }, + { + "name": "w_suite_number", + "ndv": 21 + }, + { + "name": "w_city", + "ndv": 18 + }, + { + "name": "w_county", + "ndv": 14 + }, + { + "name": "w_state", + "ndv": 12 + }, + { + "name": "w_zip", + "ndv": 24 + }, + { + "name": "w_country", + "ndv": 1 + }, + { + "name": "w_gmt_offset", + "ndv": 4, + "minValue": -8, + "maxValue": -5 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "w_warehouse_sk", + "w_warehouse_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 27 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "7" + ], + "rowCount": 1.6253965246668186E12 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f4", + "$f40", + "$f6" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + } + ] + } + ], + "rowCount": 1.6253965246668186E12 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DOUBLE", + "nullable": true + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DOUBLE", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + } + ], + "rowCount": 1.6253965246668185E11 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 6, + "name": "$6" + } + ] + }, + { + "literal": 0, + "type": { + "type": "DOUBLE", + "nullable": false + } + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "POWER", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "literal": null, + "type": { + "type": "BIGINT", + "nullable": true + } + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + }, + { + "literal": 0.5, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 6, + "name": "$6" + } + ] + } + ] + }, + { + "literal": 1, + "type": { + "type": "DOUBLE", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 4.063491311667046E10 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "w_warehouse_sk", + "i_item_sk", + "mean", + "cov" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 6, + "name": "$6" + } + ] + }, + { + "literal": 0, + "type": { + "type": "DOUBLE", + "nullable": false + } + } + ] + }, + { + "literal": null, + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "POWER", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "literal": null, + "type": { + "type": "BIGINT", + "nullable": true + } + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + }, + { + "literal": 0.5, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 6, + "name": "$6" + } + ] + } + ] + } + ] + } + ], + "rowCount": 4.063491311667046E10 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "inv_date_sk", + "inv_warehouse_sk", + "inv_quantity_on_hand", + "inv_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 1, + "name": "$1" + } + ], + "inputs": [ + "0" + ], + "rowCount": 1627857000 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 4, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "2" + ], + "rowCount": 1643.6025 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "13", + "15" + ], + "rowCount": 4.01332475226375E11 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "w_warehouse_sk", + "w_warehouse_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "inputs": [ + "6" + ], + "rowCount": 27 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "16", + "17" + ], + "rowCount": 1.6253965246668186E12 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f4", + "$f40", + "$f6" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + } + ] + } + ], + "rowCount": 1.6253965246668186E12 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DOUBLE", + "nullable": true + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DOUBLE", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + } + ], + "rowCount": 1.6253965246668185E11 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 6, + "name": "$6" + } + ] + }, + { + "literal": 0, + "type": { + "type": "DOUBLE", + "nullable": false + } + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "POWER", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "literal": null, + "type": { + "type": "BIGINT", + "nullable": true + } + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + }, + { + "literal": 0.5, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 6, + "name": "$6" + } + ] + } + ] + }, + { + "literal": 1, + "type": { + "type": "DOUBLE", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 4.063491311667046E10 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "w_warehouse_sk", + "i_item_sk", + "mean", + "cov" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 6, + "name": "$6" + } + ] + }, + { + "literal": 0, + "type": { + "type": "DOUBLE", + "nullable": false + } + } + ] + }, + { + "literal": null, + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "POWER", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "literal": null, + "type": { + "type": "BIGINT", + "nullable": true + } + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + }, + { + "literal": 0.5, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 6, + "name": "$6" + } + ] + } + ] + } + ] + } + ], + "rowCount": 4.063491311667046E10 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "22" + ], + "rowCount": 3.715191368998553E19 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "w_warehouse_sk", + "i_item_sk", + "mean", + "cov", + "w_warehouse_sk0", + "i_item_sk0", + "mean0", + "cov0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 3.715191368998553E19 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 6, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 7, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "rowCount": 3.715191368998553E19 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "inv1.w_warehouse_sk", + "inv1.i_item_sk", + "inv1.d_moy", + "inv1.mean", + "inv1.cov", + "inv2.w_warehouse_sk", + "inv2.i_item_sk", + "inv2.d_moy", + "inv2.mean", + "inv2.cov" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 4, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 3.715191368998553E19 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query4.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query4.q.out new file mode 100644 index 000000000000..812328001b72 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query4.q.out @@ -0,0 +1,5082 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_bill_customer_sk", + "ws_ext_discount_amt", + "ws_ext_sales_price", + "ws_ext_wholesale_cost", + "ws_ext_list_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 23, + "name": "$23" + }, + { + "input": 24, + "name": "$24" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 21594638446 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_bill_customer_sk", + "ws_sold_date_sk", + "$f8" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "literal": 2, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + } + ] + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 73049 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "3", + "7" + ], + "rowCount": 2.8749331406517793E13 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_customer_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 80000000 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "8", + "10" + ], + "rowCount": 3.449919768782135E20 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 24, + "scale": 6 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 80000000 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_ext_discount_amt", + "ss_ext_sales_price", + "ss_ext_wholesale_cost", + "ss_ext_list_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 82510879939 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_sold_date_sk", + "$f8" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "literal": 2, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + } + ] + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "inputs": [ + "4" + ], + "rowCount": 73049 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "17", + "20" + ], + "rowCount": 1.0984822172140161E14 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_customer_id", + "c_first_name", + "c_last_name", + "c_birth_country" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 14, + "name": "$14" + } + ], + "rowCount": 80000000 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "21", + "23" + ], + "rowCount": 1.3181786606568192E21 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5, + 8 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 24, + "scale": 6 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_id", + "c_birth_country", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 80000000 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_ext_discount_amt", + "ss_ext_sales_price", + "ss_ext_wholesale_cost", + "ss_ext_list_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 22, + "name": "$22" + } + ], + "inputs": [ + "14" + ], + "rowCount": 82510879939 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_sold_date_sk", + "$f8" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "literal": 2, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + } + ] + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "inputs": [ + "4" + ], + "rowCount": 73049 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "29", + "32" + ], + "rowCount": 1.0984822172140161E14 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_customer_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "inputs": [ + "9" + ], + "rowCount": 80000000 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "33", + "34" + ], + "rowCount": 1.3181786606568192E21 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 24, + "scale": 6 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "rowCount": 40000000 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "customer_id", + "year_total", + "EXPR$131" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + } + ], + "rowCount": 40000000 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "26", + "38" + ], + "rowCount": 480000000000000 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_customer_sk", + "cs_ext_discount_amt", + "cs_ext_sales_price", + "cs_ext_wholesale_cost", + "cs_ext_list_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 23, + "name": "$23" + }, + { + "input": 24, + "name": "$24" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 43005109025 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_customer_sk", + "cs_sold_date_sk", + "$f8" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "literal": 2, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + } + ] + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "inputs": [ + "4" + ], + "rowCount": 73049 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "43", + "46" + ], + "rowCount": 5.725347681207268E13 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_customer_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "inputs": [ + "9" + ], + "rowCount": 80000000 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "47", + "48" + ], + "rowCount": 6.870417217448722E20 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 24, + "scale": 6 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 80000000 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "39", + "51" + ], + "rowCount": 5.76E21 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_customer_sk", + "cs_ext_discount_amt", + "cs_ext_sales_price", + "cs_ext_wholesale_cost", + "cs_ext_list_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 23, + "name": "$23" + }, + { + "input": 24, + "name": "$24" + }, + { + "input": 33, + "name": "$33" + } + ], + "inputs": [ + "40" + ], + "rowCount": 43005109025 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_customer_sk", + "cs_sold_date_sk", + "$f8" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "literal": 2, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + } + ] + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "inputs": [ + "4" + ], + "rowCount": 73049 + }, + { + "id": "57", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "58", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "59", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "55", + "58" + ], + "rowCount": 5.725347681207268E13 + }, + { + "id": "60", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_customer_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "inputs": [ + "9" + ], + "rowCount": 80000000 + }, + { + "id": "61", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "59", + "60" + ], + "rowCount": 6.870417217448722E20 + }, + { + "id": "62", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 24, + "scale": 6 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "63", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "rowCount": 40000000 + }, + { + "id": "64", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "customer_id", + "year_total", + "EXPR$1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + } + ], + "rowCount": 40000000 + }, + { + "id": "65", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "52", + "64" + ], + "rowCount": 8.639999999999999E27 + }, + { + "id": "66", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "13", + "65" + ], + "rowCount": 1.0368E35 + }, + { + "id": "67", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_bill_customer_sk", + "ws_ext_discount_amt", + "ws_ext_sales_price", + "ws_ext_wholesale_cost", + "ws_ext_list_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 23, + "name": "$23" + }, + { + "input": 24, + "name": "$24" + }, + { + "input": 33, + "name": "$33" + } + ], + "inputs": [ + "0" + ], + "rowCount": 21594638446 + }, + { + "id": "68", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "69", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_bill_customer_sk", + "ws_sold_date_sk", + "$f8" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "literal": 2, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + } + ] + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "70", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "inputs": [ + "4" + ], + "rowCount": 73049 + }, + { + "id": "71", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "72", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "73", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "69", + "72" + ], + "rowCount": 2.8749331406517793E13 + }, + { + "id": "74", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_customer_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "inputs": [ + "9" + ], + "rowCount": 80000000 + }, + { + "id": "75", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "73", + "74" + ], + "rowCount": 3.449919768782135E20 + }, + { + "id": "76", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 24, + "scale": 6 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "77", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "rowCount": 40000000 + }, + { + "id": "78", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "customer_id", + "year_total", + "EXPR$0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + } + ], + "rowCount": 40000000 + }, + { + "id": "79", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 13, + "name": "$13" + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 14, + "name": "$14" + } + ] + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "66", + "78" + ], + "rowCount": 1.5552E41 + }, + { + "id": "80", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "customer_id" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.5552E41 + }, + { + "id": "81", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "82", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_id", + "c_first_name", + "c_last_name", + "c_birth_country" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 14, + "name": "$14" + } + ], + "rowCount": 80000000 + }, + { + "id": "83", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "80", + "82" + ], + "rowCount": 1.86624E48 + }, + { + "id": "84", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "t_s_secyear.customer_id", + "t_s_secyear.customer_first_name", + "t_s_secyear.customer_last_name", + "t_s_secyear.customer_birth_country" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 1.86624E48 + }, + { + "id": "85", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query40.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query40.q.out new file mode 100644 index 000000000000..3a2234f9d93e --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query40.q.out @@ -0,0 +1,2380 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_warehouse_sk", + "cs_item_sk", + "cs_order_number", + "cs_sales_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_returns" + ], + "table:alias": "catalog_returns", + "inputs": [], + "rowCount": 4320980099, + "avgRowSize": 305, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amount" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cr_returned_date_sk" + ], + "colStats": [ + { + "name": "cr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cr_order_number", + "ndv": 2681654419, + "minValue": 2, + "maxValue": 4800000000 + }, + { + "name": "cr_refunded_cash", + "ndv": 1257293, + "minValue": 0, + "maxValue": 26955.24 + }, + { + "name": "cr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_returning_customer_sk", + "ndv": 77511828, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cr_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cr_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cr_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "cr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cr_return_amount", + "ndv": 973170, + "minValue": 0, + "maxValue": 28805.04 + }, + { + "name": "cr_return_tax", + "ndv": 169232, + "minValue": 0, + "maxValue": 2511.58 + }, + { + "name": "cr_return_amt_inc_tax", + "ndv": 1689965, + "minValue": 0, + "maxValue": 30891.32 + }, + { + "name": "cr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "cr_return_ship_cost", + "ndv": 501353, + "minValue": 0, + "maxValue": 14273.28 + }, + { + "name": "cr_reversed_charge", + "ndv": 895564, + "minValue": 0, + "maxValue": 24033.84 + }, + { + "name": "cr_store_credit", + "ndv": 906118, + "minValue": 0, + "maxValue": 24886.13 + }, + { + "name": "cr_net_loss", + "ndv": 996464, + "minValue": 0.5, + "maxValue": 16346.37 + }, + { + "name": "cr_returned_date_sk", + "ndv": 2104, + "minValue": 2450821, + "maxValue": 2452924 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cr_item_sk", + "cr_order_number", + "cr_refunded_cash" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 4320980099 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 6, + "name": "$6" + } + ] + } + ] + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "4" + ], + "rowCount": 3386646448149454336 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0.99, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 2 + } + }, + { + "literal": 1.49, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 2 + } + } + ] + }, + "rowCount": 115500 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 115500 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "8" + ], + "rowCount": 5.867364971418929E22 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 889401600000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 894585600000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "EXPR$0", + "EXPR$1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "<", + "kind": "LESS_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 10324, + "type": { + "type": "DATE", + "nullable": false + } + } + ] + }, + { + "op": { + "name": ">=", + "kind": "GREATER_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 10324, + "type": { + "type": "DATE", + "nullable": false + } + } + ] + } + ], + "rowCount": 18262.25 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "12" + ], + "rowCount": 1.60726928923943E26 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "warehouse" + ], + "table:alias": "warehouse", + "inputs": [], + "rowCount": 27, + "avgRowSize": 679, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "w_warehouse_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "w_warehouse_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "w_warehouse_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "w_warehouse_sq_ft" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "w_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "w_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "w_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "w_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "w_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "w_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "w_gmt_offset" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "w_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "w_state", + "ndv": 12 + }, + { + "name": "w_warehouse_id", + "ndv": 27 + }, + { + "name": "w_warehouse_name", + "ndv": 27 + }, + { + "name": "w_warehouse_sq_ft", + "ndv": 26, + "minValue": 73065, + "maxValue": 977787 + }, + { + "name": "w_street_number", + "ndv": 26 + }, + { + "name": "w_street_name", + "ndv": 27 + }, + { + "name": "w_street_type", + "ndv": 16 + }, + { + "name": "w_suite_number", + "ndv": 21 + }, + { + "name": "w_city", + "ndv": 18 + }, + { + "name": "w_county", + "ndv": 14 + }, + { + "name": "w_zip", + "ndv": 24 + }, + { + "name": "w_country", + "ndv": 1 + }, + { + "name": "w_gmt_offset", + "ndv": 4, + "minValue": -8, + "maxValue": -5 + } + ] + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "w_warehouse_sk", + "w_state" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 10, + "name": "$10" + } + ], + "rowCount": 27 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 13, + "name": "$13" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "13", + "15" + ], + "rowCount": 6.509440621419692E26 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 9, + "name": "$9" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "input": 7, + "name": "$7" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + } + ] + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 13, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "input": 7, + "name": "$7" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + } + ] + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 13, + "scale": 2 + } + } + ] + } + ], + "rowCount": 6.509440621419692E26 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 23, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 23, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + } + ], + "rowCount": 6.509440621419692E25 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "w_state", + "i_item_id", + "sales_before", + "sales_after" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 6.509440621419692E25 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query41.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query41.q.out new file mode 100644 index 000000000000..8bca60c4d564 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query41.q.out @@ -0,0 +1,1772 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "i1", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_product_name", + "ndv": 461487 + }, + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 13, + "name": "$13" + }, + { + "literal": 970, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1010, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 14, + "name": "$14" + } + ] + } + ] + }, + "rowCount": 103950 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_manufact", + "i_product_name" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 21, + "name": "$21" + } + ], + "rowCount": 103950 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Women", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": "frosted", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + }, + { + "literal": "rose", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 4 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "literal": "Gross", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "Lb", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "literal": "large", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "medium", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Women", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": "black", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "chocolate", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "literal": "Box", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 3 + } + }, + { + "literal": "Dram", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 4 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "literal": "economy", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + }, + { + "literal": "petite", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Men", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 3 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": "magenta", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + }, + { + "literal": "slate", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "literal": "Bundle", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + }, + { + "literal": "Carton", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "literal": "N/A", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 3 + } + }, + { + "literal": "small", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Men", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 3 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": "cornflower", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 10 + } + }, + { + "literal": "firebrick", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "literal": "Oz", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "Pound", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "literal": "large", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "medium", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Women", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": "almond", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + }, + { + "literal": "steel", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "literal": "Case", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 4 + } + }, + { + "literal": "Tsp", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 3 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "literal": "large", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "medium", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Women", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": "aquamarine", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 10 + } + }, + { + "literal": "purple", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "literal": "Bunch", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "Gram", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 4 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "literal": "economy", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + }, + { + "literal": "petite", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Men", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 3 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": "lavender", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 8 + } + }, + { + "literal": "papaya", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "literal": "Cup", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 3 + } + }, + { + "literal": "Pallet", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "literal": "N/A", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 3 + } + }, + { + "literal": "small", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Men", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 3 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": "cyan", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 4 + } + }, + { + "literal": "maroon", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "literal": "Each", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 4 + } + }, + { + "literal": "N/A", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 3 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "literal": "large", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "medium", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + } + ] + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 14, + "name": "$14" + } + ] + } + ] + }, + "rowCount": 103950 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 14 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 10395 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + "rowCount": 1169.4375 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_manufact" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1169.4375 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "7" + ], + "rowCount": 1.823445421875E7 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1 + ], + "aggs": [], + "rowCount": 1823445.421875 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_product_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1823445.421875 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query42.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query42.q.out new file mode 100644 index 000000000000..6abf001774fb --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query42.q.out @@ -0,0 +1,1334 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + }, + "rowCount": 7.42597919451E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "dt", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1998, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.8308036953566934E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 20, + "name": "$20" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 69300 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_category_id", + "i_category" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 69300 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 190312044132328288 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5, + 6 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 19031204413232828 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_category_id", + "i_category", + "_o__c3", + "(tok_function sum (tok_table_or_col ss_ext_sales_price))" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 19031204413232828 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 3, + "direction": "DESCENDING", + "nulls": "FIRST" + }, + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "dt.d_year", + "item.i_category_id", + "item.i_category", + "_c3" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1998, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query43.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query43.q.out new file mode 100644 index 000000000000..8042197f6f82 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query43.q.out @@ -0,0 +1,1880 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_store_sk", + "ss_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1998, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "EXPR$0", + "EXPR$1", + "EXPR$2", + "EXPR$3", + "EXPR$4", + "EXPR$5", + "EXPR$6" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Sunday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Monday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Tuesday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Wednesday", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Thursday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Friday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Saturday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + } + ], + "rowCount": 10957.35 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.0984822172140161E14 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 27, + "name": "$27" + }, + { + "literal": -6, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "rowCount": 255.6 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_id", + "s_store_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 255.6 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 4.2115808207985375E15 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7", + "$f8" + ], + "exprs": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 12, + "name": "$12" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + } + ], + "rowCount": 4.2115808207985375E15 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 8 + ], + "name": null + } + ], + "rowCount": 4.2115808207985375E14 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_name", + "s_store_id", + "sun_sales", + "mon_sales", + "tue_sales", + "wed_sales", + "thu_sales", + "fri_sales", + "sat_sales" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 4.2115808207985375E14 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 4, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 5, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 6, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 7, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 8, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query44.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query44.q.out new file mode 100644 index 000000000000..4cfdc4ef68e9 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query44.q.out @@ -0,0 +1,2451 @@ +Warning: Map Join MAPJOIN[112][bigTable=?] in task 'Reducer 2' is a cross product +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "i1", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_product_name", + "ndv": 461487 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_product_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 21, + "name": "$21" + } + ], + "rowCount": 462000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "ss1", + "inputs": [], + "rowCount": 86404891377, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_net_profit", + "ndv": 1468124, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 159044, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1334023, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 410, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + "rowCount": 1.296073370655E10 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 21 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 21 + ], + "name": null + } + ], + "rowCount": 1.296073370655E9 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ] + }, + "rowCount": 1.74969905038425E8 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "rowCount": 1.74969905038425E8 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 86404891377, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_net_profit", + "ndv": 1468124, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 159044, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1334023, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NULL", + "kind": "IS_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 410, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 3.2401834266375E9 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1" + ], + "exprs": [ + { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 21, + "name": "$21" + } + ], + "rowCount": 3.2401834266375E9 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ] + }, + "rowCount": 1 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "rank_col" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "rowCount": 1 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 0.9, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 1 + } + }, + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "12" + ], + "rowCount": 8.74849525192125E7 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "item_sk", + "rank_window_0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "order": [ + { + "expr": { + "input": 1, + "name": "$1" + }, + "direction": "ASCENDING", + "null-direction": "LAST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ], + "rowCount": 8.74849525192125E7 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "<", + "kind": "LESS_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 11, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 4.374247625960625E7 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "item_sk", + "rank_window_0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 4.374247625960625E7 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 410, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + "inputs": [ + "2" + ], + "rowCount": 1.296073370655E10 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 21 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 21 + ], + "name": null + } + ], + "rowCount": 1.296073370655E9 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ] + }, + "rowCount": 1.74969905038425E8 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "rowCount": 1.74969905038425E8 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NULL", + "kind": "IS_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 410, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 3.2401834266375E9 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1" + ], + "exprs": [ + { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 21, + "name": "$21" + } + ], + "rowCount": 3.2401834266375E9 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ] + }, + "rowCount": 1 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "rank_col" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "rowCount": 1 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 0.9, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 1 + } + }, + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "20", + "25" + ], + "rowCount": 8.74849525192125E7 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "item_sk", + "rank_window_0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "order": [ + { + "expr": { + "input": 1, + "name": "$1" + }, + "direction": "DESCENDING", + "null-direction": "FIRST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ], + "rowCount": 8.74849525192125E7 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "<", + "kind": "LESS_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 11, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 4.374247625960625E7 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "item_sk", + "rank_window_0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 4.374247625960625E7 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "16", + "29" + ], + "rowCount": 2.8701063439833244E14 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "30" + ], + "rowCount": 1.9889836963804434E19 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "i2", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_product_name", + "ndv": 461487 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + } + ] + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_product_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 21, + "name": "$21" + } + ], + "rowCount": 462000 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "31", + "33" + ], + "rowCount": 1.3783657015916472E24 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "asceding.rnk", + "best_performing", + "worst_performing" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 1.3783657015916472E24 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query45.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query45.q.out new file mode 100644 index 000000000000..f90591784bb9 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query45.q.out @@ -0,0 +1,2456 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "rowCount": 72000000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_addr_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 72000000 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_county", + "ca_zip" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + } + ], + "rowCount": 40000000 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "4" + ], + "rowCount": 432000000000000 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_bill_customer_sk", + "ws_sales_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_qoy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 1643.6025 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "8", + "11" + ], + "rowCount": 4.312399710977669E12 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_bill_customer_sk", + "ws_sales_price", + "ws_sold_date_sk", + "d_date_sk", + "d_year", + "d_qoy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 4.312399710977669E12 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "13" + ], + "rowCount": 2.7944350127135294E26 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 462000 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "literal": 2, + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "literal": 3, + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "literal": 5, + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "literal": 7, + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "literal": 11, + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "literal": 13, + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "literal": 17, + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "literal": 19, + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "literal": 23, + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "literal": 29, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + "inputs": [ + "15" + ], + "rowCount": 115500 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1 + ], + "aggs": [], + "rowCount": 11550 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "literalTrue" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ], + "rowCount": 11550 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "16", + "19" + ], + "rowCount": 800807700 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id", + "i_item_id0", + "literalTrue" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 800807700 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 12, + "name": "$12" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "14", + "21" + ], + "rowCount": 3.3567076129958883E34 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_bill_customer_sk", + "ws_sales_price", + "ws_sold_date_sk", + "c_customer_sk", + "c_current_addr_sk", + "ca_address_sk", + "ca_county", + "ca_zip", + "d_date_sk", + "d_year", + "d_qoy", + "i_item_sk", + "i_item_id", + "i_item_id0", + "literalTrue" + ], + "exprs": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + } + ], + "rowCount": 3.3567076129958883E34 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 15, + "name": "$15" + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + }, + { + "literal": "85669", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "86197", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "88274", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "83405", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "86475", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "85392", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "85460", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "80348", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "81792", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + } + ] + } + ] + }, + "rowCount": 8.391769032489721E33 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 7, + 8 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 8.39176903248972E32 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_zip", + "ca_county", + "_c2" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 8.39176903248972E32 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query46.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query46.q.out new file mode 100644 index 000000000000..a5e8235e6204 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query46.q.out @@ -0,0 +1,2600 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "rowCount": 72000000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_addr_sk", + "c_first_name", + "c_last_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "rowCount": 72000000 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "current_addr", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_city" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 40000000 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "4" + ], + "rowCount": 432000000000000 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_city" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 40000000 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + } + ] + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 4.872184949518012E10 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_hdemo_sk", + "ss_addr_sk", + "ss_store_sk", + "ss_ticket_number", + "ss_coupon_amt", + "ss_net_profit", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 4.872184949518012E10 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1998, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 6, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 4565.5625 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 4565.5625 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "13" + ], + "rowCount": 3.3366397347875746E13 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 22, + "name": "$22" + }, + { + "literal": "Cedar Grove", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 60 + } + }, + { + "literal": "Highland Park", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 60 + } + }, + { + "literal": "Salem", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 60 + } + }, + { + "literal": "Union", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 60 + } + }, + { + "literal": "Wildwood", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 60 + } + } + ] + }, + "rowCount": 426 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 426 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "14", + "17" + ], + "rowCount": 2132112790529260 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "household_demographics" + ], + "table:alias": "household_demographics", + "inputs": [], + "rowCount": 7200, + "avgRowSize": 183, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "hd_demo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "hd_income_band_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "hd_buy_potential" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_vehicle_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "hd_demo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "hd_dep_count", + "ndv": 10, + "minValue": 0, + "maxValue": 9 + }, + { + "name": "hd_vehicle_count", + "ndv": 6, + "minValue": -1, + "maxValue": 4 + }, + { + "name": "hd_income_band_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "hd_buy_potential", + "ndv": 6 + } + ] + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1800 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1800 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "18", + "21" + ], + "rowCount": 575670453442900224 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "7", + "22" + ], + "rowCount": 3.454022720657401E24 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1, + 2, + 4, + 6 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 8 + ], + "name": null + } + ], + "rowCount": 3.454022720657401E23 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_ticket_number", + "ss_customer_sk", + "bought_city", + "amt", + "profit" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 3.454022720657401E23 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "<>", + "kind": "NOT_EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 8, + "name": "$8" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "25" + ], + "rowCount": 1.119103361492998E37 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_last_name", + "c_first_name", + "ca_city", + "bought_city", + "ss_ticket_number", + "amt", + "profit" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + } + ], + "rowCount": 1.119103361492998E37 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 4, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query47.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query47.q.out new file mode 100644 index 000000000000..a00c5bd25b17 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query47.q.out @@ -0,0 +1,4057 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_store_sk", + "ss_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + } + ] + }, + "rowCount": 4565.5625 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 4565.5625 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 4.5770092383917336E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 17, + "name": "$17" + } + ] + } + ] + }, + "rowCount": 1380.24 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_name", + "s_company_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 17, + "name": "$17" + } + ], + "rowCount": 1380.24 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 9476056846796710 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 8, + "name": "$8" + } + ] + } + ] + }, + "rowCount": 374220 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand", + "i_category" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 374220 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "13" + ], + "rowCount": 5.319194989812397E20 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5, + 6, + 8, + 9, + 11, + 12 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 5.319194989812397E19 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_year", + "d_moy", + "s_store_name", + "s_company_name", + "i_brand", + "i_category", + "$f6" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 5.319194989812397E19 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "(tok_table_or_col i_category)", + "(tok_table_or_col i_brand)", + "(tok_table_or_col s_store_name)", + "(tok_table_or_col s_company_name)", + "(tok_function sum (tok_table_or_col ss_sales_price))", + "rank_window_1" + ], + "exprs": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 6, + "name": "$6" + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "order": [ + { + "expr": { + "input": 0, + "name": "$0" + }, + "direction": "ASCENDING", + "null-direction": "LAST" + }, + { + "expr": { + "input": 1, + "name": "$1" + }, + "direction": "ASCENDING", + "null-direction": "LAST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ], + "rowCount": 5.319194989812397E19 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + "rowCount": 4.787275490831158E19 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "(tok_table_or_col i_category)", + "(tok_table_or_col i_brand)", + "(tok_table_or_col s_store_name)", + "(tok_table_or_col s_company_name)", + "(tok_function sum (tok_table_or_col ss_sales_price))", + "EXPR$0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "rowCount": 4.787275490831158E19 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_store_sk", + "ss_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 4565.5625 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 4565.5625 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "21", + "23" + ], + "rowCount": 4.5770092383917336E13 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 17, + "name": "$17" + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 1380.24 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_name", + "s_company_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 17, + "name": "$17" + } + ], + "rowCount": 1380.24 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "24", + "26" + ], + "rowCount": 9476056846796710 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 8, + "name": "$8" + } + ] + } + ] + }, + "inputs": [ + "11" + ], + "rowCount": 374220 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand", + "i_category" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 374220 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "27", + "29" + ], + "rowCount": 5.319194989812397E20 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5, + 6, + 8, + 9, + 11, + 12 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 5.319194989812397E19 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_year", + "d_moy", + "s_store_name", + "s_company_name", + "i_brand", + "i_category", + "$f6" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 5.319194989812397E19 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "(tok_table_or_col i_category)", + "(tok_table_or_col i_brand)", + "(tok_table_or_col s_store_name)", + "(tok_table_or_col s_company_name)", + "(tok_function sum (tok_table_or_col ss_sales_price))", + "rank_window_1" + ], + "exprs": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 6, + "name": "$6" + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "order": [ + { + "expr": { + "input": 0, + "name": "$0" + }, + "direction": "ASCENDING", + "null-direction": "LAST" + }, + { + "expr": { + "input": 1, + "name": "$1" + }, + "direction": "ASCENDING", + "null-direction": "LAST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ], + "rowCount": 5.319194989812397E19 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + "rowCount": 4.787275490831158E19 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "(tok_table_or_col i_category)", + "(tok_table_or_col i_brand)", + "(tok_table_or_col s_store_name)", + "(tok_table_or_col s_company_name)", + "(tok_function sum (tok_table_or_col ss_sales_price))", + "EXPR$0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "rowCount": 4.787275490831158E19 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_store_sk", + "ss_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 4565.5625 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 4565.5625 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "37", + "39" + ], + "rowCount": 4.5770092383917336E13 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 17, + "name": "$17" + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 1380.24 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_name", + "s_company_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 17, + "name": "$17" + } + ], + "rowCount": 1380.24 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "40", + "42" + ], + "rowCount": 9476056846796710 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 8, + "name": "$8" + } + ] + } + ] + }, + "inputs": [ + "11" + ], + "rowCount": 374220 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand", + "i_category" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 374220 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "43", + "45" + ], + "rowCount": 5.319194989812397E20 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5, + 6, + 8, + 9, + 11, + 12 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 5.319194989812397E19 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_year", + "d_moy", + "s_store_name", + "s_company_name", + "i_brand", + "i_category", + "$f6" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 5.319194989812397E19 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "(tok_table_or_col i_category)", + "(tok_table_or_col i_brand)", + "(tok_table_or_col s_store_name)", + "(tok_table_or_col s_company_name)", + "(tok_table_or_col d_year)", + "(tok_table_or_col d_moy)", + "(tok_function sum (tok_table_or_col ss_sales_price))", + "avg_window_0", + "rank_window_1" + ], + "exprs": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 6, + "name": "$6" + }, + { + "op": { + "name": "avg", + "kind": "AVG", + "syntax": "FUNCTION_STAR" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ], + "distinct": false, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 21, + "scale": 6 + }, + "window": { + "partition": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ], + "order": [ + { + "expr": { + "input": 5, + "name": "$5" + }, + "direction": "ASCENDING", + "null-direction": "FIRST" + }, + { + "expr": { + "input": 4, + "name": "$4" + }, + "direction": "ASCENDING", + "null-direction": "FIRST" + }, + { + "expr": { + "input": 2, + "name": "$2" + }, + "direction": "ASCENDING", + "null-direction": "FIRST" + }, + { + "expr": { + "input": 3, + "name": "$3" + }, + "direction": "ASCENDING", + "null-direction": "FIRST" + }, + { + "expr": { + "input": 0, + "name": "$0" + }, + "direction": "ASCENDING", + "null-direction": "FIRST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "order": [ + { + "expr": { + "input": 0, + "name": "$0" + }, + "direction": "ASCENDING", + "null-direction": "LAST" + }, + { + "expr": { + "input": 1, + "name": "$1" + }, + "direction": "ASCENDING", + "null-direction": "LAST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ], + "rowCount": 5.319194989812397E19 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "ABS", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ] + } + ] + }, + { + "input": 7, + "name": "$7" + } + ] + }, + { + "literal": 0.1, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 1 + } + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 8, + "name": "$8" + } + ] + } + ] + }, + "rowCount": 897614154530841984 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "(tok_table_or_col i_category)", + "(tok_table_or_col i_brand)", + "(tok_table_or_col s_store_name)", + "(tok_table_or_col s_company_name)", + "(tok_table_or_col d_year)", + "(tok_table_or_col d_moy)", + "(tok_function sum (tok_table_or_col ss_sales_price))", + "avg_window_0", + "rank_window_1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 897614154530841984 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 5, + "name": "$5" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "35", + "51" + ], + "rowCount": 3.2631302401771794E33 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 20, + "name": "$20" + }, + { + "input": 5, + "name": "$5" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "19", + "52" + ], + "rowCount": 1.1862579161225682E49 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_category", + "d_year", + "d_moy", + "avg_monthly_sales", + "sum_sales", + "psum", + "nsum", + "(- (tok_table_or_col sum_sales) (tok_table_or_col avg_monthly_sales))1" + ], + "exprs": [ + { + "input": 12, + "name": "$12" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "input": 19, + "name": "$19" + } + ] + } + ], + "rowCount": 1.1862579161225682E49 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 7, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "v2.i_category", + "v2.d_year", + "v2.d_moy", + "v2.avg_monthly_sales", + "v2.sum_sales", + "v2.psum", + "v2.nsum" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query48.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query48.q.out new file mode 100644 index 000000000000..1c7794396b65 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query48.q.out @@ -0,0 +1,1850 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "GA", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "IN", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "KY", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "MO", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "MT", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "NM", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "OR", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "WI", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "WV", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": "United States", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 20 + } + } + ] + } + ] + }, + "rowCount": 1500000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "EXPR$0", + "EXPR$1", + "EXPR$2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "GA", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "KY", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "NM", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "IN", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "MT", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "OR", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "MO", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "WI", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "WV", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + } + ], + "rowCount": 1500000 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_demographics" + ], + "table:alias": "customer_demographics", + "inputs": [], + "rowCount": 1920800, + "avgRowSize": 217, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cd_demo_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_gender" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_marital_status" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cd_education_status" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_purchase_estimate" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cd_credit_rating" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_employed_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_college_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cd_demo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cd_marital_status", + "ndv": 5 + }, + { + "name": "cd_education_status", + "ndv": 7 + }, + { + "name": "cd_gender", + "ndv": 2 + }, + { + "name": "cd_purchase_estimate", + "ndv": 20, + "minValue": 500, + "maxValue": 10000 + }, + { + "name": "cd_credit_rating", + "ndv": 4 + }, + { + "name": "cd_dep_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_employed_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_college_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": "M", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": "4 yr Degree ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 20 + } + } + ] + } + ] + }, + "rowCount": 43218 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 43218 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 12, + "name": "$12" + }, + { + "literal": 50, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 0 + } + }, + { + "literal": 200, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 21, + "name": "$21" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 1.218046237379503E10 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_cdemo_sk", + "ss_addr_sk", + "ss_quantity", + "ss_sold_date_sk", + "EXPR$0", + "EXPR$1", + "EXPR$2" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 22, + "name": "$22" + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 21, + "name": "$21" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 2000, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 21, + "name": "$21" + }, + { + "literal": 150, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 3000, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 21, + "name": "$21" + }, + { + "literal": 50, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 25000, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + } + ], + "rowCount": 1.218046237379503E10 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1998, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "8", + "11" + ], + "rowCount": 2.0019838408725445E13 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "12" + ], + "rowCount": 129782606452244448 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 11, + "name": "$11" + } + ] + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "13" + ], + "rowCount": 7.30027161293875E21 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_c0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query49.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query49.q.out new file mode 100644 index 000000000000..9620da07ccc4 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query49.q.out @@ -0,0 +1,5628 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_returns" + ], + "table:alias": "wr", + "inputs": [], + "rowCount": 2160007345, + "avgRowSize": 281, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "wr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_account_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "wr_returned_date_sk" + ], + "colStats": [ + { + "name": "wr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "wr_order_number", + "ndv": 1317116406, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "wr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "wr_return_amt", + "ndv": 1108704, + "minValue": 0, + "maxValue": 29191 + }, + { + "name": "wr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "wr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_returning_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "wr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "wr_return_tax", + "ndv": 198904, + "minValue": 0, + "maxValue": 2620.34 + }, + { + "name": "wr_return_amt_inc_tax", + "ndv": 2111617, + "minValue": 0, + "maxValue": 31735.25 + }, + { + "name": "wr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "wr_return_ship_cost", + "ndv": 553061, + "minValue": 0, + "maxValue": 14624 + }, + { + "name": "wr_refunded_cash", + "ndv": 1631618, + "minValue": 0, + "maxValue": 28085.82 + }, + { + "name": "wr_reversed_charge", + "ndv": 1277260, + "minValue": 0, + "maxValue": 26135.99 + }, + { + "name": "wr_account_credit", + "ndv": 1249055, + "minValue": 0, + "maxValue": 24649.69 + }, + { + "name": "wr_net_loss", + "ndv": 1227508, + "minValue": 0.5, + "maxValue": 16733.32 + }, + { + "name": "wr_returned_date_sk", + "ndv": 2185, + "minValue": 2450819, + "maxValue": 2453002 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": 10000, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 5, + "scale": 0 + } + } + ] + }, + "rowCount": 1.0800036725E9 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wr_item_sk", + "wr_order_number", + "wr_return_quantity", + "wr_return_amt" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + } + ], + "rowCount": 1.0800036725E9 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "ws", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 32, + "name": "$32" + }, + { + "literal": 1, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 28, + "name": "$28" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 2.429396825175E9 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_order_number", + "ws_quantity", + "ws_net_paid", + "ws_net_profit", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 28, + "name": "$28" + }, + { + "input": 32, + "name": "$32" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 2.429396825175E9 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "8" + ], + "rowCount": 5.98944404302454E11 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "9" + ], + "rowCount": 1.4554398516074439E19 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "input": 2, + "name": "$2" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "input": 6, + "name": "$6" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "input": 7, + "name": "$7" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + } + ], + "rowCount": 1.4554398516074439E19 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 22, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 22, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + } + ], + "rowCount": 1455439851607443968 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 1455439851607443968 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "item", + "return_ratio", + "rank_window_0", + "rank_window_1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + } + ] + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "order": [ + { + "expr": { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + } + ] + }, + "direction": "ASCENDING", + "null-direction": "LAST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "order": [ + { + "expr": { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + } + ] + }, + "direction": "ASCENDING", + "null-direction": "LAST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ], + "rowCount": 1455439851607443968 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 10, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 10, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 363859962901860992 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "item", + "return_ratio", + "return_rank", + "currency_rank" + ], + "exprs": [ + { + "literal": "web", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 363859962901860992 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_returns" + ], + "table:alias": "cr", + "inputs": [], + "rowCount": 4320980099, + "avgRowSize": 305, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amount" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cr_returned_date_sk" + ], + "colStats": [ + { + "name": "cr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cr_order_number", + "ndv": 2681654419, + "minValue": 2, + "maxValue": 4800000000 + }, + { + "name": "cr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cr_return_amount", + "ndv": 973170, + "minValue": 0, + "maxValue": 28805.04 + }, + { + "name": "cr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_returning_customer_sk", + "ndv": 77511828, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cr_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cr_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cr_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "cr_return_tax", + "ndv": 169232, + "minValue": 0, + "maxValue": 2511.58 + }, + { + "name": "cr_return_amt_inc_tax", + "ndv": 1689965, + "minValue": 0, + "maxValue": 30891.32 + }, + { + "name": "cr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "cr_return_ship_cost", + "ndv": 501353, + "minValue": 0, + "maxValue": 14273.28 + }, + { + "name": "cr_refunded_cash", + "ndv": 1257293, + "minValue": 0, + "maxValue": 26955.24 + }, + { + "name": "cr_reversed_charge", + "ndv": 895564, + "minValue": 0, + "maxValue": 24033.84 + }, + { + "name": "cr_store_credit", + "ndv": 906118, + "minValue": 0, + "maxValue": 24886.13 + }, + { + "name": "cr_net_loss", + "ndv": 996464, + "minValue": 0.5, + "maxValue": 16346.37 + }, + { + "name": "cr_returned_date_sk", + "ndv": 2104, + "minValue": 2450821, + "maxValue": 2452924 + } + ] + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": 10000, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 5, + "scale": 0 + } + } + ] + }, + "rowCount": 2.1604900495E9 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cr_item_sk", + "cr_order_number", + "cr_return_quantity", + "cr_return_amount" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + } + ], + "rowCount": 2.1604900495E9 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "cs", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + } + ] + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 32, + "name": "$32" + }, + { + "literal": 1, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 28, + "name": "$28" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 4.8380747653125E9 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_item_sk", + "cs_order_number", + "cs_quantity", + "cs_net_paid", + "cs_net_profit", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 28, + "name": "$28" + }, + { + "input": 32, + "name": "$32" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 4.8380747653125E9 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "6" + ], + "rowCount": 1643.6025 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "22", + "24" + ], + "rowCount": 1.1927807669181807E12 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "19", + "25" + ], + "rowCount": 5.798229700863843E19 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "input": 2, + "name": "$2" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "input": 6, + "name": "$6" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "input": 7, + "name": "$7" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + } + ], + "rowCount": 5.798229700863843E19 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 22, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 22, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + } + ], + "rowCount": 5798229700863842304 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 5798229700863842304 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "item", + "return_ratio", + "rank_window_0", + "rank_window_1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + } + ] + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "order": [ + { + "expr": { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + } + ] + }, + "direction": "ASCENDING", + "null-direction": "LAST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "order": [ + { + "expr": { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + } + ] + }, + "direction": "ASCENDING", + "null-direction": "LAST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ], + "rowCount": 5798229700863842304 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 10, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 10, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1449557425215960576 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "item", + "return_ratio", + "return_rank", + "currency_rank" + ], + "exprs": [ + { + "literal": "catalog", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 1449557425215960576 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "16", + "32" + ], + "rowCount": 1813417388117821440 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "item", + "return_ratio", + "return_rank", + "currency_rank" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 1813417388117821440 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2, + 3, + 4 + ], + "aggs": [], + "rowCount": 181341738811782144 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "item", + "return_ratio", + "return_rank", + "currency_rank" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 181341738811782144 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_returns" + ], + "table:alias": "sr", + "inputs": [], + "rowCount": 8634166995, + "avgRowSize": 249, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "sr_return_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "sr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "sr_returned_date_sk" + ], + "colStats": [ + { + "name": "sr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "sr_ticket_number", + "ndv": 5114579988, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "sr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "sr_return_amt", + "ndv": 715216, + "minValue": 0, + "maxValue": 19643 + }, + { + "name": "sr_return_time_sk", + "ndv": 32389, + "minValue": 28799, + "maxValue": 61199 + }, + { + "name": "sr_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "sr_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "sr_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "sr_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "sr_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "sr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "sr_return_tax", + "ndv": 141365, + "minValue": 0, + "maxValue": 1714.37 + }, + { + "name": "sr_return_amt_inc_tax", + "ndv": 1520430, + "minValue": 0, + "maxValue": 21018.01 + }, + { + "name": "sr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "sr_return_ship_cost", + "ndv": 363000, + "minValue": 0, + "maxValue": 9975 + }, + { + "name": "sr_refunded_cash", + "ndv": 1187970, + "minValue": 0, + "maxValue": 18413.33 + }, + { + "name": "sr_reversed_charge", + "ndv": 926355, + "minValue": 0, + "maxValue": 18104.5 + }, + { + "name": "sr_store_credit", + "ndv": 937950, + "minValue": 0, + "maxValue": 17792.48 + }, + { + "name": "sr_net_loss", + "ndv": 851834, + "minValue": 0.5, + "maxValue": 11008.17 + }, + { + "name": "sr_returned_date_sk", + "ndv": 2004, + "minValue": 2450820, + "maxValue": 2452822 + } + ] + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": 10000, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 5, + "scale": 0 + } + } + ] + }, + "rowCount": 4.3170834975E9 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_item_sk", + "sr_ticket_number", + "sr_return_quantity", + "sr_return_amt" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + } + ], + "rowCount": 4.3170834975E9 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "sts", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + } + ] + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 21, + "name": "$21" + }, + { + "literal": 1, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 19, + "name": "$19" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 9.2824739931375E9 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_ticket_number", + "ss_quantity", + "ss_net_paid", + "ss_net_profit", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 9.2824739931375E9 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "6" + ], + "rowCount": 1643.6025 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "42", + "44" + ], + "rowCount": 2.2885046191958667E12 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "39", + "45" + ], + "rowCount": 2.2229247432336743E20 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "input": 2, + "name": "$2" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "input": 6, + "name": "$6" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "input": 7, + "name": "$7" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + } + ], + "rowCount": 2.2229247432336743E20 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 22, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 22, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + } + ], + "rowCount": 2.2229247432336744E19 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 2.2229247432336744E19 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "item", + "return_ratio", + "rank_window_0", + "rank_window_1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + } + ] + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "order": [ + { + "expr": { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + } + ] + }, + "direction": "ASCENDING", + "null-direction": "LAST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "order": [ + { + "expr": { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + } + ] + }, + "direction": "ASCENDING", + "null-direction": "LAST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ], + "rowCount": 2.2229247432336744E19 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 10, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 10, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 5557311858084186112 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "item", + "return_ratio", + "return_rank", + "currency_rank" + ], + "exprs": [ + { + "literal": "store", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 5557311858084186112 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "36", + "52" + ], + "rowCount": 5738653596895968256 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "item", + "return_ratio", + "return_rank", + "currency_rank" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 5738653596895968256 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2, + 3, + 4 + ], + "aggs": [], + "rowCount": 573865359689596800 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "item", + "return_ratio", + "return_rank", + "currency_rank" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 573865359689596800 + }, + { + "id": "57", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 4, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query5.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query5.q.out new file mode 100644 index 000000000000..4337bbe68fb6 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query5.q.out @@ -0,0 +1,5979 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "store_sk", + "date_sk", + "sales_price", + "profit", + "return_amt", + "net_loss" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 21, + "name": "$21" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 7, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 7, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_returns" + ], + "table:alias": "store_returns", + "inputs": [], + "rowCount": 8332595709, + "avgRowSize": 249, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "sr_return_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "sr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "sr_returned_date_sk" + ], + "colStats": [ + { + "name": "sr_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "sr_return_amt", + "ndv": 715216, + "minValue": 0, + "maxValue": 19643 + }, + { + "name": "sr_net_loss", + "ndv": 848797, + "minValue": 0.5, + "maxValue": 11008.17 + }, + { + "name": "sr_returned_date_sk", + "ndv": 2003, + "minValue": 2450820, + "maxValue": 2452822 + }, + { + "name": "sr_return_time_sk", + "ndv": 32389, + "minValue": 28799, + "maxValue": 61199 + }, + { + "name": "sr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "sr_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "sr_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "sr_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "sr_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "sr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "sr_ticket_number", + "ndv": 5065526774, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "sr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "sr_return_tax", + "ndv": 141365, + "minValue": 0, + "maxValue": 1714.37 + }, + { + "name": "sr_return_amt_inc_tax", + "ndv": 1520430, + "minValue": 0, + "maxValue": 21018.01 + }, + { + "name": "sr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "sr_return_ship_cost", + "ndv": 363000, + "minValue": 0, + "maxValue": 9975 + }, + { + "name": "sr_refunded_cash", + "ndv": 1187970, + "minValue": 0, + "maxValue": 18413.33 + }, + { + "name": "sr_reversed_charge", + "ndv": 924833, + "minValue": 0, + "maxValue": 18104.5 + }, + { + "name": "sr_store_credit", + "ndv": 935681, + "minValue": 0, + "maxValue": 17792.48 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 19, + "name": "$19" + } + ] + } + ] + }, + "rowCount": 6.749402524290001E9 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "store_sk", + "date_sk", + "sales_price", + "profit", + "return_amt", + "net_loss" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 19, + "name": "$19" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 7, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 7, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 18, + "name": "$18" + } + ], + "rowCount": 6.749402524290001E9 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "2", + "5" + ], + "rowCount": 7.358321527488E10 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "store_sk", + "date_sk", + "sales_price", + "profit", + "return_amt", + "net_loss" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 7.358321527488E10 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 1704 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "7", + "9" + ], + "rowCount": 1.880786982425933E13 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 902188800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 903398400000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "13" + ], + "rowCount": 51521103104711992 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 7 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + } + ], + "rowCount": 5152110310471199 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "id", + "sales", + "returns", + "profit" + ], + "exprs": [ + { + "literal": "store channel", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "op": { + "name": "||", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": "store", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ], + "rowCount": 5152110310471199 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + } + ] + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "page_sk", + "date_sk", + "sales_price", + "profit", + "return_amt", + "net_loss" + ], + "exprs": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 33, + "name": "$33" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 32, + "name": "$32" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 7, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 7, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_returns" + ], + "table:alias": "catalog_returns", + "inputs": [], + "rowCount": 4320980099, + "avgRowSize": 305, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amount" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cr_returned_date_sk" + ], + "colStats": [ + { + "name": "cr_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cr_return_amount", + "ndv": 973170, + "minValue": 0, + "maxValue": 28805.04 + }, + { + "name": "cr_net_loss", + "ndv": 996464, + "minValue": 0.5, + "maxValue": 16346.37 + }, + { + "name": "cr_returned_date_sk", + "ndv": 2104, + "minValue": 2450821, + "maxValue": 2452924 + }, + { + "name": "cr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_returning_customer_sk", + "ndv": 77511828, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cr_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cr_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "cr_order_number", + "ndv": 2681654419, + "minValue": 2, + "maxValue": 4800000000 + }, + { + "name": "cr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cr_return_tax", + "ndv": 169232, + "minValue": 0, + "maxValue": 2511.58 + }, + { + "name": "cr_return_amt_inc_tax", + "ndv": 1689965, + "minValue": 0, + "maxValue": 30891.32 + }, + { + "name": "cr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "cr_return_ship_cost", + "ndv": 501353, + "minValue": 0, + "maxValue": 14273.28 + }, + { + "name": "cr_refunded_cash", + "ndv": 1257293, + "minValue": 0, + "maxValue": 26955.24 + }, + { + "name": "cr_reversed_charge", + "ndv": 895564, + "minValue": 0, + "maxValue": 24033.84 + }, + { + "name": "cr_store_credit", + "ndv": 906118, + "minValue": 0, + "maxValue": 24886.13 + } + ] + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 26, + "name": "$26" + } + ] + } + ] + }, + "rowCount": 3.49999388019E9 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "page_sk", + "date_sk", + "sales_price", + "profit", + "return_amt", + "net_loss" + ], + "exprs": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 26, + "name": "$26" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 7, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 7, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 25, + "name": "$25" + } + ], + "rowCount": 3.49999388019E9 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "19", + "22" + ], + "rowCount": 3.833413219044E10 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "page_sk", + "date_sk", + "sales_price", + "profit", + "return_amt", + "net_loss" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 3.833413219044E10 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_page" + ], + "table:alias": "catalog_page", + "inputs": [], + "rowCount": 46000, + "avgRowSize": 561, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cp_catalog_page_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "cp_catalog_page_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cp_start_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cp_end_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "cp_department" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cp_catalog_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cp_catalog_page_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "cp_description" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "cp_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cp_catalog_page_sk", + "ndv": 47200, + "minValue": 1, + "maxValue": 46000 + }, + { + "name": "cp_catalog_page_id", + "ndv": 45891 + }, + { + "name": "cp_start_date_sk", + "ndv": 91, + "minValue": 2450815, + "maxValue": 2453005 + }, + { + "name": "cp_end_date_sk", + "ndv": 96, + "minValue": 2450844, + "maxValue": 2453186 + }, + { + "name": "cp_department", + "ndv": 2 + }, + { + "name": "cp_catalog_number", + "ndv": 112, + "minValue": 1, + "maxValue": 109 + }, + { + "name": "cp_catalog_page_number", + "ndv": 427, + "minValue": 1, + "maxValue": 425 + }, + { + "name": "cp_description", + "ndv": 44192 + }, + { + "name": "cp_type", + "ndv": 4 + } + ] + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cp_catalog_page_sk", + "cp_catalog_page_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 46000 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "24", + "26" + ], + "rowCount": 264505512114036 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 902188800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 903398400000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "inputs": [ + "11" + ], + "rowCount": 18262.25 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "27", + "29" + ], + "rowCount": 724569868290683136 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 7 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + } + ], + "rowCount": 72456986829068320 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "id", + "sales", + "returns", + "profit" + ], + "exprs": [ + { + "literal": "catalog channel", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "op": { + "name": "||", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": "catalog_page", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ], + "rowCount": 72456986829068320 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + } + ] + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wsr_web_site_sk", + "date_sk", + "sales_price", + "profit", + "return_amt", + "net_loss" + ], + "exprs": [ + { + "input": 12, + "name": "$12" + }, + { + "input": 33, + "name": "$33" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 32, + "name": "$32" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 7, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 7, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21600036511, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + }, + "rowCount": 1.94400328599E10 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_web_site_sk", + "ws_order_number" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 16, + "name": "$16" + } + ], + "rowCount": 1.94400328599E10 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_returns" + ], + "table:alias": "web_returns", + "inputs": [], + "rowCount": 2062802370, + "avgRowSize": 281, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "wr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_account_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "wr_returned_date_sk" + ], + "colStats": [ + { + "name": "wr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "wr_order_number", + "ndv": 1283768204, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "wr_return_amt", + "ndv": 1108704, + "minValue": 0, + "maxValue": 29191 + }, + { + "name": "wr_net_loss", + "ndv": 1225199, + "minValue": 0.5, + "maxValue": 16733.32 + }, + { + "name": "wr_returned_date_sk", + "ndv": 2184, + "minValue": 2450819, + "maxValue": 2453002 + }, + { + "name": "wr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "wr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_returning_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "wr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "wr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "wr_return_tax", + "ndv": 198814, + "minValue": 0, + "maxValue": 2620.34 + }, + { + "name": "wr_return_amt_inc_tax", + "ndv": 2111617, + "minValue": 0, + "maxValue": 31735.25 + }, + { + "name": "wr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "wr_return_ship_cost", + "ndv": 551289, + "minValue": 0, + "maxValue": 14624 + }, + { + "name": "wr_refunded_cash", + "ndv": 1630543, + "minValue": 0, + "maxValue": 28085.82 + }, + { + "name": "wr_reversed_charge", + "ndv": 1276207, + "minValue": 0, + "maxValue": 26135.99 + }, + { + "name": "wr_account_credit", + "ndv": 1245536, + "minValue": 0, + "maxValue": 24649.69 + } + ] + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 23, + "name": "$23" + } + ] + }, + "rowCount": 1856522133 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wr_item_sk", + "wr_order_number", + "wr_return_amt", + "wr_net_loss", + "wr_returned_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 23, + "name": "$23" + } + ], + "rowCount": 1856522133 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "38", + "41" + ], + "rowCount": 812044153589661952 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_web_site_sk", + "wr_returned_date_sk", + "$f2", + "$f3", + "wr_return_amt", + "wr_net_loss" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 7, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 7, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 812044153589661952 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "35", + "43" + ], + "rowCount": 812044171081319040 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wsr_web_site_sk", + "date_sk", + "sales_price", + "profit", + "return_amt", + "net_loss" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 812044171081319040 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_site" + ], + "table:alias": "web_site", + "inputs": [], + "rowCount": 84, + "avgRowSize": 1331, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "web_site_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "web_site_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "web_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "web_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "web_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "web_open_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "web_close_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "web_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "web_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "web_mkt_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "web_mkt_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "web_mkt_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "web_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "web_company_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "web_company_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "web_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "web_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "web_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "web_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "web_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "web_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "web_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "web_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "web_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "web_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "web_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "web_site_sk", + "ndv": 84, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "web_site_id", + "ndv": 42 + }, + { + "name": "web_rec_start_date", + "ndv": 0, + "minValue": 10089, + "maxValue": 11550 + }, + { + "name": "web_rec_end_date", + "ndv": 0, + "minValue": 10819, + "maxValue": 11549 + }, + { + "name": "web_name", + "ndv": 15 + }, + { + "name": "web_open_date_sk", + "ndv": 42, + "minValue": 2450118, + "maxValue": 2450807 + }, + { + "name": "web_close_date_sk", + "ndv": 28, + "minValue": 2440993, + "maxValue": 2446218 + }, + { + "name": "web_class", + "ndv": 2 + }, + { + "name": "web_manager", + "ndv": 60 + }, + { + "name": "web_mkt_id", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "web_mkt_class", + "ndv": 65 + }, + { + "name": "web_mkt_desc", + "ndv": 64 + }, + { + "name": "web_market_manager", + "ndv": 66 + }, + { + "name": "web_company_id", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "web_company_name", + "ndv": 7 + }, + { + "name": "web_street_number", + "ndv": 58 + }, + { + "name": "web_street_name", + "ndv": 80 + }, + { + "name": "web_street_type", + "ndv": 20 + }, + { + "name": "web_suite_number", + "ndv": 51 + }, + { + "name": "web_city", + "ndv": 52 + }, + { + "name": "web_county", + "ndv": 58 + }, + { + "name": "web_state", + "ndv": 30 + }, + { + "name": "web_zip", + "ndv": 56 + }, + { + "name": "web_country", + "ndv": 2 + }, + { + "name": "web_gmt_offset", + "ndv": 4, + "minValue": -8, + "maxValue": -5 + }, + { + "name": "web_tax_percentage", + "ndv": 13, + "minValue": 0, + "maxValue": 0.12 + } + ] + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "web_site_sk", + "web_site_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 84 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "45", + "47" + ], + "rowCount": 1.023175655562462E19 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 902188800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 903398400000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "inputs": [ + "11" + ], + "rowCount": 18262.25 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "48", + "50" + ], + "rowCount": 2.802823442369336E22 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 7 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + } + ], + "rowCount": 2.802823442369336E21 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "id", + "sales", + "returns", + "profit" + ], + "exprs": [ + { + "literal": "web channel", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "op": { + "name": "||", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": "web_site", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ], + "rowCount": 2.802823442369336E21 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "16", + "32", + "53" + ], + "rowCount": 2.8029010514664756E21 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "id", + "sales", + "returns", + "profit" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 2.8029010514664756E21 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "groups": [ + [ + 0, + 1 + ], + [ + 0 + ], + [] + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + } + ], + "rowCount": 8.4079398359428E20 + }, + { + "id": "57", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "id", + "sales", + "returns", + "profit" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 8.4079398359428E20 + }, + { + "id": "58", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query50.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query50.q.out new file mode 100644 index 000000000000..06270691a839 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query50.q.out @@ -0,0 +1,2553 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.0150431475531006E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_store_sk", + "ss_ticket_number", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.0150431475531006E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_returns" + ], + "table:alias": "store_returns", + "inputs": [], + "rowCount": 8332595709, + "avgRowSize": 249, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "sr_return_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "sr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "sr_returned_date_sk" + ], + "colStats": [ + { + "name": "sr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "sr_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "sr_ticket_number", + "ndv": 5065526774, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "sr_returned_date_sk", + "ndv": 2003, + "minValue": 2450820, + "maxValue": 2452822 + }, + { + "name": "sr_return_time_sk", + "ndv": 32389, + "minValue": 28799, + "maxValue": 61199 + }, + { + "name": "sr_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "sr_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "sr_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "sr_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "sr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "sr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "sr_return_amt", + "ndv": 715216, + "minValue": 0, + "maxValue": 19643 + }, + { + "name": "sr_return_tax", + "ndv": 141365, + "minValue": 0, + "maxValue": 1714.37 + }, + { + "name": "sr_return_amt_inc_tax", + "ndv": 1520430, + "minValue": 0, + "maxValue": 21018.01 + }, + { + "name": "sr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "sr_return_ship_cost", + "ndv": 363000, + "minValue": 0, + "maxValue": 9975 + }, + { + "name": "sr_refunded_cash", + "ndv": 1187970, + "minValue": 0, + "maxValue": 18413.33 + }, + { + "name": "sr_reversed_charge", + "ndv": 924833, + "minValue": 0, + "maxValue": 18104.5 + }, + { + "name": "sr_store_credit", + "ndv": 935681, + "minValue": 0, + "maxValue": 17792.48 + }, + { + "name": "sr_net_loss", + "ndv": 848797, + "minValue": 0.5, + "maxValue": 11008.17 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 19, + "name": "$19" + } + ] + } + ] + }, + "rowCount": 6.749402524290001E9 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_item_sk", + "sr_customer_sk", + "sr_ticket_number", + "sr_returned_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 19, + "name": "$19" + } + ], + "rowCount": 6.749402524290001E9 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d2", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 9, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "8" + ], + "rowCount": 1.6640002293644033E12 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 7, + "name": "$7" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "9" + ], + "rowCount": 3.378048697293235E20 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_name", + "s_company_id", + "s_street_number", + "s_street_name", + "s_street_type", + "s_suite_number", + "s_city", + "s_county", + "s_state", + "s_zip" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 23, + "name": "$23" + }, + { + "input": 24, + "name": "$24" + }, + { + "input": 25, + "name": "$25" + } + ], + "rowCount": 1704 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "12" + ], + "rowCount": 8.63429247028151E22 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7", + "$f8", + "$f9", + "$f10", + "$f11", + "$f12", + "$f13", + "$f14" + ], + "exprs": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 20, + "name": "$20" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + { + "literal": 30, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + { + "literal": 30, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + { + "literal": 60, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + { + "literal": 60, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + { + "literal": 90, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + { + "literal": 90, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + { + "literal": 120, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + { + "literal": 120, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 8.63429247028151E22 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 10 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 12 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 13 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 14 + ], + "name": null + } + ], + "rowCount": 8.634292470281509E21 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_name", + "s_company_id", + "s_street_number", + "s_street_name", + "s_street_type", + "s_suite_number", + "s_city", + "s_county", + "s_state", + "s_zip", + "30 days", + "31-60 days", + "61-90 days", + "91-120 days", + ">120 days" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + } + ], + "rowCount": 8.634292470281509E21 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 4, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 5, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 6, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 7, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 8, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 9, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query51.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query51.q.out new file mode 100644 index 000000000000..0cb897434c89 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query51.q.out @@ -0,0 +1,2068 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + }, + "rowCount": 7.42597919451E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 18262.25 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 2.0342263281741038E14 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 4 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 2.034226328174104E13 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "d_date", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 2.034226328174104E13 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "item_sk", + "d_date", + "cume_sales" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "distinct": false, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "window": { + "partition": [ + { + "input": 0, + "name": "$0" + } + ], + "order": [ + { + "expr": { + "input": 1, + "name": "$1" + }, + "direction": "ASCENDING", + "null-direction": "LAST" + } + ], + "rows-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "rows-upper": { + "type": "CURRENT_ROW" + } + } + } + ], + "rowCount": 2.034226328174104E13 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "rowCount": 1.94351746014E10 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_sales_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.94351746014E10 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 18262.25 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 18262.25 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "14" + ], + "rowCount": 5.323950260466258E13 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 4 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 5.323950260466258E12 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "d_date", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 5.323950260466258E12 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "item_sk", + "d_date", + "cume_sales" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "distinct": false, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "window": { + "partition": [ + { + "input": 0, + "name": "$0" + } + ], + "order": [ + { + "expr": { + "input": 1, + "name": "$1" + }, + "direction": "ASCENDING", + "null-direction": "LAST" + } + ], + "rows-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "rows-upper": { + "type": "CURRENT_ROW" + } + } + } + ], + "rowCount": 5.323950260466258E12 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "joinType": "full", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "18" + ], + "rowCount": 2.436776952714302E24 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "item_sk", + "d_date", + "web_sales", + "store_sales", + "max_window_0", + "max_window_1" + ], + "exprs": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 2, + "name": "$2" + }, + { + "op": { + "name": "max", + "kind": "MAX", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ], + "distinct": false, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "window": { + "partition": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + } + ], + "order": [ + { + "expr": { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "direction": "ASCENDING", + "null-direction": "LAST" + } + ], + "rows-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "rows-upper": { + "type": "CURRENT_ROW" + } + } + }, + { + "op": { + "name": "max", + "kind": "MAX", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "distinct": false, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "window": { + "partition": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + } + ], + "order": [ + { + "expr": { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "direction": "ASCENDING", + "null-direction": "LAST" + } + ], + "rows-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "rows-upper": { + "type": "CURRENT_ROW" + } + } + } + ], + "rowCount": 2.436776952714302E24 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "rowCount": 1.218388476357151E24 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "y.item_sk", + "y.d_date", + "y.web_sales", + "y.store_sales", + "y.web_cumulative", + "y.store_cumulative" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 1.218388476357151E24 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query52.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query52.q.out new file mode 100644 index 000000000000..9e2c9a4f237a --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query52.q.out @@ -0,0 +1,1324 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + }, + "rowCount": 7.42597919451E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "dt", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1998, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.8308036953566934E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 20, + "name": "$20" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 69300 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_brand" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 69300 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 190312044132328288 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5, + 6 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 19031204413232828 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_brand", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 19031204413232828 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 2, + "direction": "DESCENDING", + "nulls": "FIRST" + }, + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "dt.d_year", + "brand_id", + "brand", + "ext_price" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1998, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query53.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query53.q.out new file mode 100644 index 000000000000..fe16eecf283b --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query53.q.out @@ -0,0 +1,2027 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": "accessories", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 11 + } + }, + { + "literal": "classical", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + }, + { + "literal": "fragrances", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 10 + } + }, + { + "literal": "pants", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "personal", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 8 + } + }, + { + "literal": "portable", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 8 + } + }, + { + "literal": "reference", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + }, + { + "literal": "self-help", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Books", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "Children", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 8 + } + }, + { + "literal": "Electronics", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 11 + } + }, + { + "literal": "Men", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 3 + } + }, + { + "literal": "Music", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "Women", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "amalgimporto #1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 15 + } + }, + { + "literal": "edu packscholar #1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 18 + } + }, + { + "literal": "exportiimporto #1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 17 + } + }, + { + "literal": "exportiunivamalg #9", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 19 + } + }, + { + "literal": "importoamalg #1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 15 + } + }, + { + "literal": "scholaramalgamalg #14", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 21 + } + }, + { + "literal": "scholaramalgamalg #7", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 20 + } + }, + { + "literal": "scholaramalgamalg #9", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 20 + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Books", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "Children", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 8 + } + }, + { + "literal": "Electronics", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 11 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": "personal", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 8 + } + }, + { + "literal": "portable", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 8 + } + }, + { + "literal": "reference", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + }, + { + "literal": "self-help", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "exportiunivamalg #9", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 19 + } + }, + { + "literal": "scholaramalgamalg #14", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 21 + } + }, + { + "literal": "scholaramalgamalg #7", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 20 + } + }, + { + "literal": "scholaramalgamalg #9", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 20 + } + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Men", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 3 + } + }, + { + "literal": "Music", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "Women", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": "accessories", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 11 + } + }, + { + "literal": "classical", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + }, + { + "literal": "fragrances", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 10 + } + }, + { + "literal": "pants", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "amalgimporto #1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 15 + } + }, + { + "literal": "edu packscholar #1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 18 + } + }, + { + "literal": "exportiimporto #1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 17 + } + }, + { + "literal": "importoamalg #1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 15 + } + } + ] + } + ] + } + ] + } + ] + }, + "rowCount": 1804.6875 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_manufact_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 13, + "name": "$13" + } + ], + "rowCount": 1804.6875 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.809212196724956E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1213, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1214, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1215, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1216, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1217, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1218, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1219, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1220, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1221, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1222, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_qoy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 10, + "name": "$10" + } + ], + "rowCount": 18262.25 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 49560428159460488 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 4, + 6 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 4956042815946049 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_manufact_id", + "d_qoy", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 4956042815946049 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "(tok_table_or_col i_manufact_id)", + "(tok_function sum (tok_table_or_col ss_sales_price))", + "avg_window_0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "op": { + "name": "avg", + "kind": "AVG", + "syntax": "FUNCTION_STAR" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "distinct": false, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 21, + "scale": 6 + }, + "window": { + "partition": [ + { + "input": 0, + "name": "$0" + } + ], + "order": [ + { + "expr": { + "input": 0, + "name": "$0" + }, + "direction": "ASCENDING", + "null-direction": "FIRST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ], + "rowCount": 4956042815946049 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "ABS", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "literal": 0.1, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 1 + } + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + }, + "rowCount": 1.2390107039865122E15 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "tmp1.i_manufact_id", + "tmp1.sum_sales", + "tmp1.avg_quarterly_sales" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.2390107039865122E15 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query54.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query54.q.out new file mode 100644 index 000000000000..ed738de574bd --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query54.q.out @@ -0,0 +1,5182 @@ +Warning: Map Join MAPJOIN[294][bigTable=?] in task 'Map 21' is a cross product +Warning: Map Join MAPJOIN[291][bigTable=?] in task 'Map 21' is a cross product +Warning: Map Join MAPJOIN[292][bigTable=?] in task 'Map 1' is a cross product +Warning: Map Join MAPJOIN[286][bigTable=?] in task 'Map 1' is a cross product +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "rowCount": 1643.6025 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [], + "rowCount": 164.36025 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 164.36025 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "COUNT", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": false + }, + "distinct": false, + "operands": [], + "name": "cnt" + } + ], + "rowCount": 1 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "sq_count_check", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ], + "class": "org.apache.calcite.sql.SqlFunction", + "type": { + "type": "BOOLEAN", + "nullable": false + }, + "deterministic": true, + "dynamic": false + }, + "rowCount": 1 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "11" + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1643.6025 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "rowCount": 1643.6025 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [], + "rowCount": 164.36025 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 164.36025 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "COUNT", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": false + }, + "distinct": false, + "operands": [], + "name": "cnt" + } + ], + "rowCount": 1 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "sq_count_check", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ], + "class": "org.apache.calcite.sql.SqlFunction", + "type": { + "type": "BOOLEAN", + "nullable": false + }, + "deterministic": true, + "dynamic": false + }, + "rowCount": 1 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "20" + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 8, + "name": "$8" + } + ] + } + ] + }, + "rowCount": 3.2400000000000004E7 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_county", + "ca_state" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 3.2400000000000004E7 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 23, + "name": "$23" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 24, + "name": "$24" + } + ] + } + ] + }, + "rowCount": 1380.24 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_county", + "s_state" + ], + "exprs": [ + { + "input": 23, + "name": "$23" + }, + { + "input": 24, + "name": "$24" + } + ], + "rowCount": 1380.24 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "24", + "27" + ], + "rowCount": 1.0061949600000001E9 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "rowCount": 72000000 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_addr_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 72000000 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sold_date_sk", + "customer_sk", + "item_sk" + ], + "exprs": [ + { + "input": 33, + "name": "$33" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 14, + "name": "$14" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sold_date_sk", + "customer_sk", + "item_sk" + ], + "exprs": [ + { + "input": 33, + "name": "$33" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "34", + "37" + ], + "rowCount": 5.232579545151E10 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sold_date_sk", + "customer_sk", + "item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 5.232579545151E10 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "39", + "42" + ], + "rowCount": 1.290042123278857E13 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": "consignment ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Jewelry ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ] + } + ] + }, + "rowCount": 10395 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10395 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "43", + "46" + ], + "rowCount": 20114981807225576 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "customer_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 20114981807225576 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "semi", + "inputs": [ + "31", + "48" + ], + "rowCount": 29524.5 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_addr_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 29524.5 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "28", + "50" + ], + "rowCount": 4456110464478 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_county", + "ca_state", + "s_county", + "s_state", + "c_customer_sk", + "c_current_addr_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 4456110464478 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "21", + "52" + ], + "rowCount": 4.467282785683009E22 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + "rowCount": 65744.1 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_month_seq" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 65744.1 + }, + { + "id": "57", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1479.24225 + }, + { + "id": "58", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "rowCount": 1479.24225 + }, + { + "id": "59", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [], + "rowCount": 147.924225 + }, + { + "id": "60", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 147.924225 + }, + { + "id": "61", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "56", + "60" + ], + "rowCount": 4862572.520411251 + }, + { + "id": "62", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1479.24225 + }, + { + "id": "63", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "rowCount": 1479.24225 + }, + { + "id": "64", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [], + "rowCount": 147.924225 + }, + { + "id": "65", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 147.924225 + }, + { + "id": "66", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "61", + "65" + ], + "rowCount": 3.5964613579406554E8 + }, + { + "id": "67", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_month_seq", + "$f0", + "$f00" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 3.5964613579406554E8 + }, + { + "id": "68", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 12, + "name": "$12" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "53", + "67" + ], + "rowCount": 2.409961487055364E30 + }, + { + "id": "69", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 10 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 29524.5 + }, + { + "id": "70", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 50, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 29524.5 + }, + { + "id": "71", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 2952.45 + }, + { + "id": "72", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "segment", + "num_customers", + "segment_base" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "literal": 50, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "rowCount": 2952.45 + }, + { + "id": "73", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query55.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query55.q.out new file mode 100644 index 000000000000..0b93be275dd5 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query55.q.out @@ -0,0 +1,1308 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + }, + "rowCount": 7.42597919451E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.8308036953566934E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 20, + "name": "$20" + }, + { + "literal": 36, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 69300 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_brand" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 69300 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 190312044132328288 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5, + 6 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 19031204413232828 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "brand_id", + "brand", + "ext_price", + "(tok_table_or_col i_brand_id)" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 19031204413232828 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 2, + "direction": "DESCENDING", + "nulls": "FIRST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "brand_id", + "brand", + "ext_price" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query56.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query56.q.out new file mode 100644 index 000000000000..23e340919c8d --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query56.q.out @@ -0,0 +1,3954 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_addr_sk", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 1643.6025 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.647723325821024E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "literal": -8, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "rowCount": 6000000 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_gmt_offset" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": -8, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 5, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2 + } + } + ], + "rowCount": 6000000 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 1.4829509932389216E19 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 462000 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "12" + ], + "rowCount": 1.0276850383145725E24 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": "chiffon", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + }, + { + "literal": "lace", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 4 + } + }, + { + "literal": "orchid", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + }, + "rowCount": 115500 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 115500 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "semi", + "inputs": [ + "13", + "16" + ], + "rowCount": 2.5692125957864313E23 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 10 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 2.5692125957864313E22 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 2.5692125957864313E22 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_addr_sk", + "cs_item_sk", + "cs_ext_sales_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1643.6025 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 1643.6025 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "22", + "24" + ], + "rowCount": 8.5880215218109E12 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "literal": -8, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 6000000 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_gmt_offset" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": -8, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 5, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2 + } + } + ], + "rowCount": 6000000 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "25", + "27" + ], + "rowCount": 7729219369629809664 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "inputs": [ + "11" + ], + "rowCount": 462000 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "28", + "29" + ], + "rowCount": 5.356349023153458E23 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": "chiffon", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + }, + { + "literal": "lace", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 4 + } + }, + { + "literal": "orchid", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + }, + "inputs": [ + "14" + ], + "rowCount": 115500 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 115500 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "semi", + "inputs": [ + "30", + "32" + ], + "rowCount": 1.3390872557883645E23 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 10 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 1.3390872557883645E22 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 1.3390872557883645E22 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_bill_addr_sk", + "ws_ext_sales_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1643.6025 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 1643.6025 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "38", + "40" + ], + "rowCount": 4.312399710977669E12 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "literal": -8, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 6000000 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_gmt_offset" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": -8, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 5, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2 + } + } + ], + "rowCount": 6000000 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "41", + "43" + ], + "rowCount": 3881159739879902208 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "inputs": [ + "11" + ], + "rowCount": 462000 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "44", + "45" + ], + "rowCount": 2.689643699736772E23 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": "chiffon", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + }, + { + "literal": "lace", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 4 + } + }, + { + "literal": "orchid", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + }, + "inputs": [ + "14" + ], + "rowCount": 115500 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 115500 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "semi", + "inputs": [ + "46", + "48" + ], + "rowCount": 6.72410924934193E22 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 10 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 6.72410924934193E21 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 6.72410924934193E21 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "19", + "35", + "51" + ], + "rowCount": 4.580710776508988E22 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 4.580710776508988E22 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 4.580710776508988E21 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "total_sales" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 4.580710776508988E21 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query57.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query57.q.out new file mode 100644 index 000000000000..6548fd52522c --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query57.q.out @@ -0,0 +1,4028 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 10, + "name": "$10" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_call_center_sk", + "cs_item_sk", + "cs_sales_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + } + ] + }, + "rowCount": 4565.5625 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 4565.5625 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 2.3855615338363613E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "call_center" + ], + "table:alias": "call_center", + "inputs": [], + "rowCount": 60, + "avgRowSize": 1483, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cc_call_center_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "cc_call_center_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "cc_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "cc_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cc_closed_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cc_open_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "cc_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "cc_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_sq_ft" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cc_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "cc_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_mkt_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "cc_mkt_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "cc_mkt_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "cc_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_division" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "cc_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_company" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "cc_company_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cc_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "cc_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "cc_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cc_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "cc_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "cc_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "cc_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cc_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "cc_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "cc_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "cc_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cc_call_center_sk", + "ndv": 60, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cc_name", + "ndv": 30 + }, + { + "name": "cc_call_center_id", + "ndv": 30 + }, + { + "name": "cc_rec_start_date", + "ndv": 0, + "minValue": 10227, + "maxValue": 11688 + }, + { + "name": "cc_rec_end_date", + "ndv": 0, + "minValue": 10957, + "maxValue": 11687 + }, + { + "name": "cc_closed_date_sk", + "ndv": 1, + "minValue": null, + "maxValue": null + }, + { + "name": "cc_open_date_sk", + "ndv": 30, + "minValue": 2450794, + "maxValue": 2451146 + }, + { + "name": "cc_class", + "ndv": 3 + }, + { + "name": "cc_employees", + "ndv": 43, + "minValue": 5412266, + "maxValue": 1963174023 + }, + { + "name": "cc_sq_ft", + "ndv": 47, + "minValue": -2108783316, + "maxValue": 2044891959 + }, + { + "name": "cc_hours", + "ndv": 3 + }, + { + "name": "cc_manager", + "ndv": 42 + }, + { + "name": "cc_mkt_id", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "cc_mkt_class", + "ndv": 52 + }, + { + "name": "cc_mkt_desc", + "ndv": 48 + }, + { + "name": "cc_market_manager", + "ndv": 48 + }, + { + "name": "cc_division", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "cc_division_name", + "ndv": 6 + }, + { + "name": "cc_company", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "cc_company_name", + "ndv": 6 + }, + { + "name": "cc_street_number", + "ndv": 30 + }, + { + "name": "cc_street_name", + "ndv": 29 + }, + { + "name": "cc_street_type", + "ndv": 14 + }, + { + "name": "cc_suite_number", + "ndv": 26 + }, + { + "name": "cc_city", + "ndv": 25 + }, + { + "name": "cc_county", + "ndv": 25 + }, + { + "name": "cc_state", + "ndv": 19 + }, + { + "name": "cc_zip", + "ndv": 30 + }, + { + "name": "cc_country", + "ndv": 1 + }, + { + "name": "cc_gmt_offset", + "ndv": 4, + "minValue": -8, + "maxValue": -5 + }, + { + "name": "cc_tax_percentage", + "ndv": 13, + "minValue": 0, + "maxValue": 0.12 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + "rowCount": 54 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cc_call_center_sk", + "cc_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 54 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 1.9323048424074525E14 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 8, + "name": "$8" + } + ] + } + ] + }, + "rowCount": 374220 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand", + "i_category" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 374220 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "13" + ], + "rowCount": 1.0846606771885752E19 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5, + 6, + 8, + 10, + 11 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 1084660677188575232 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_year", + "d_moy", + "cc_name", + "i_brand", + "i_category", + "$f5" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 1084660677188575232 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "(tok_table_or_col i_category)", + "(tok_table_or_col i_brand)", + "(tok_table_or_col cc_name)", + "(tok_function sum (tok_table_or_col cs_sales_price))", + "rank_window_1" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + } + ], + "order": [ + { + "expr": { + "input": 0, + "name": "$0" + }, + "direction": "ASCENDING", + "null-direction": "LAST" + }, + { + "expr": { + "input": 1, + "name": "$1" + }, + "direction": "ASCENDING", + "null-direction": "LAST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ], + "rowCount": 1084660677188575232 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "rowCount": 976194609469717760 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "(tok_table_or_col i_category)", + "(tok_table_or_col i_brand)", + "(tok_table_or_col cc_name)", + "(tok_function sum (tok_table_or_col cs_sales_price))", + "EXPR$0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "rowCount": 976194609469717760 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 10, + "name": "$10" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_call_center_sk", + "cs_item_sk", + "cs_sales_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 4565.5625 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 4565.5625 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "21", + "23" + ], + "rowCount": 2.3855615338363613E13 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 54 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cc_call_center_sk", + "cc_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 54 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "24", + "26" + ], + "rowCount": 1.9323048424074525E14 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 8, + "name": "$8" + } + ] + } + ] + }, + "inputs": [ + "11" + ], + "rowCount": 374220 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand", + "i_category" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 374220 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "27", + "29" + ], + "rowCount": 1.0846606771885752E19 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5, + 6, + 8, + 10, + 11 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 1084660677188575232 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_year", + "d_moy", + "cc_name", + "i_brand", + "i_category", + "$f5" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 1084660677188575232 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "(tok_table_or_col i_category)", + "(tok_table_or_col i_brand)", + "(tok_table_or_col cc_name)", + "(tok_function sum (tok_table_or_col cs_sales_price))", + "rank_window_1" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + } + ], + "order": [ + { + "expr": { + "input": 0, + "name": "$0" + }, + "direction": "ASCENDING", + "null-direction": "LAST" + }, + { + "expr": { + "input": 1, + "name": "$1" + }, + "direction": "ASCENDING", + "null-direction": "LAST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ], + "rowCount": 1084660677188575232 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "rowCount": 976194609469717760 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "(tok_table_or_col i_category)", + "(tok_table_or_col i_brand)", + "(tok_table_or_col cc_name)", + "(tok_function sum (tok_table_or_col cs_sales_price))", + "EXPR$0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "rowCount": 976194609469717760 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 10, + "name": "$10" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_call_center_sk", + "cs_item_sk", + "cs_sales_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 4565.5625 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 4565.5625 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "37", + "39" + ], + "rowCount": 2.3855615338363613E13 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 54 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cc_call_center_sk", + "cc_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 54 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "40", + "42" + ], + "rowCount": 1.9323048424074525E14 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 8, + "name": "$8" + } + ] + } + ] + }, + "inputs": [ + "11" + ], + "rowCount": 374220 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand", + "i_category" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 374220 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "43", + "45" + ], + "rowCount": 1.0846606771885752E19 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5, + 6, + 8, + 10, + 11 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 1084660677188575232 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_year", + "d_moy", + "cc_name", + "i_brand", + "i_category", + "$f5" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 1084660677188575232 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "(tok_table_or_col i_category)", + "(tok_table_or_col i_brand)", + "(tok_table_or_col cc_name)", + "(tok_table_or_col d_year)", + "(tok_table_or_col d_moy)", + "(tok_function sum (tok_table_or_col cs_sales_price))", + "avg_window_0", + "rank_window_1" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "avg", + "kind": "AVG", + "syntax": "FUNCTION_STAR" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ], + "distinct": false, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 21, + "scale": 6 + }, + "window": { + "partition": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + } + ], + "order": [ + { + "expr": { + "input": 4, + "name": "$4" + }, + "direction": "ASCENDING", + "null-direction": "FIRST" + }, + { + "expr": { + "input": 3, + "name": "$3" + }, + "direction": "ASCENDING", + "null-direction": "FIRST" + }, + { + "expr": { + "input": 2, + "name": "$2" + }, + "direction": "ASCENDING", + "null-direction": "FIRST" + }, + { + "expr": { + "input": 0, + "name": "$0" + }, + "direction": "ASCENDING", + "null-direction": "FIRST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + } + ], + "order": [ + { + "expr": { + "input": 0, + "name": "$0" + }, + "direction": "ASCENDING", + "null-direction": "LAST" + }, + { + "expr": { + "input": 1, + "name": "$1" + }, + "direction": "ASCENDING", + "null-direction": "LAST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ], + "rowCount": 1084660677188575232 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "ABS", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ] + } + ] + }, + { + "input": 6, + "name": "$6" + } + ] + }, + { + "literal": 0.1, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 1 + } + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + } + ] + }, + "rowCount": 18303648927557208 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "(tok_table_or_col i_category)", + "(tok_table_or_col i_brand)", + "(tok_table_or_col cc_name)", + "(tok_table_or_col d_year)", + "(tok_table_or_col d_moy)", + "(tok_function sum (tok_table_or_col cs_sales_price))", + "avg_window_0", + "rank_window_1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 18303648927557208 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "35", + "51" + ], + "rowCount": 9.045636229708185E30 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "19", + "52" + ], + "rowCount": 4.4703400466242126E45 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_category", + "i_brand", + "d_year", + "d_moy", + "avg_monthly_sales", + "sum_sales", + "psum", + "nsum", + "(- (tok_table_or_col sum_sales) (tok_table_or_col avg_monthly_sales))1" + ], + "exprs": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + } + ] + } + ], + "rowCount": 4.4703400466242126E45 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 8, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "v2.i_category", + "v2.i_brand", + "v2.d_year", + "v2.d_moy", + "v2.avg_monthly_sales", + "v2.sum_sales", + "v2.psum", + "v2.nsum" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query58.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query58.q.out new file mode 100644 index 000000000000..08781edcc416 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query58.q.out @@ -0,0 +1,4963 @@ +Warning: Map Join MAPJOIN[375][bigTable=?] in task 'Map 5' is a cross product +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "rowCount": 1.94351746014E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_ext_sales_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.94351746014E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + "rowCount": 65744.1 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 65744.1 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.9166220937678528E14 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "rowCount": 59169.69 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date", + "d_week_seq" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 59169.69 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 10276, + "type": { + "type": "DATE", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "COUNT", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": false + }, + "distinct": false, + "operands": [], + "name": "cnt" + } + ], + "rowCount": 1 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "sq_count_check", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ], + "class": "org.apache.calcite.sql.SqlFunction", + "type": { + "type": "BOOLEAN", + "nullable": false + }, + "deterministic": true, + "dynamic": false + }, + "rowCount": 1 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "15" + ], + "rowCount": 59169.69 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 10276, + "type": { + "type": "DATE", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 9861.615 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_week_seq" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 9861.615 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "16", + "18" + ], + "rowCount": 8.75263053674025E7 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 8.75263053674025E7 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "semi", + "inputs": [ + "6", + "20" + ], + "rowCount": 3.1437393893027207E12 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 462000 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "21", + "23" + ], + "rowCount": 217861139678678560 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 6 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 21786113967867856 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "item_id", + "ws_item_rev", + "EXPR$0", + "EXPR$1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 0.9, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 1 + } + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 1.1, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "rowCount": 21786113967867856 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "rowCount": 3.87045981225E10 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_item_sk", + "cs_ext_sales_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.87045981225E10 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 65744.1 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 65744.1 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "29", + "31" + ], + "rowCount": 3.816898454138179E14 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 59169.69 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date", + "d_week_seq" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 59169.69 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 10276, + "type": { + "type": "DATE", + "nullable": false + } + } + ] + }, + "inputs": [ + "10" + ], + "rowCount": 10957.35 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "COUNT", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": false + }, + "distinct": false, + "operands": [], + "name": "cnt" + } + ], + "rowCount": 1 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "sq_count_check", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ], + "class": "org.apache.calcite.sql.SqlFunction", + "type": { + "type": "BOOLEAN", + "nullable": false + }, + "deterministic": true, + "dynamic": false + }, + "rowCount": 1 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "34", + "39" + ], + "rowCount": 59169.69 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 10276, + "type": { + "type": "DATE", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 9861.615 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_week_seq" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 9861.615 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "40", + "42" + ], + "rowCount": 8.75263053674025E7 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 8.75263053674025E7 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "semi", + "inputs": [ + "32", + "44" + ], + "rowCount": 6.260667689400147E12 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "inputs": [ + "22" + ], + "rowCount": 462000 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "45", + "46" + ], + "rowCount": 433864270875430208 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 6 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 43386427087543024 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 43386427087543024 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + }, + "rowCount": 7.42597919451E10 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 65744.1 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 65744.1 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "52", + "54" + ], + "rowCount": 7.323214781426775E14 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 59169.69 + }, + { + "id": "57", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date", + "d_week_seq" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 59169.69 + }, + { + "id": "58", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 10276, + "type": { + "type": "DATE", + "nullable": false + } + } + ] + }, + "inputs": [ + "10" + ], + "rowCount": 10957.35 + }, + { + "id": "59", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "COUNT", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": false + }, + "distinct": false, + "operands": [], + "name": "cnt" + } + ], + "rowCount": 1 + }, + { + "id": "60", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "61", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "sq_count_check", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ], + "class": "org.apache.calcite.sql.SqlFunction", + "type": { + "type": "BOOLEAN", + "nullable": false + }, + "deterministic": true, + "dynamic": false + }, + "rowCount": 1 + }, + { + "id": "62", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "63", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "57", + "62" + ], + "rowCount": 59169.69 + }, + { + "id": "64", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 10276, + "type": { + "type": "DATE", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 9861.615 + }, + { + "id": "65", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_week_seq" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 9861.615 + }, + { + "id": "66", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "63", + "65" + ], + "rowCount": 8.75263053674025E7 + }, + { + "id": "67", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 8.75263053674025E7 + }, + { + "id": "68", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "semi", + "inputs": [ + "55", + "67" + ], + "rowCount": 1.2011903045235268E13 + }, + { + "id": "69", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "inputs": [ + "22" + ], + "rowCount": 462000 + }, + { + "id": "70", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "68", + "69" + ], + "rowCount": 832424881034803968 + }, + { + "id": "71", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 6 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 83242488103480400 + }, + { + "id": "72", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 83242488103480400 + }, + { + "id": "73", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 0.9, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 1 + } + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 1.1, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 0.9, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 1 + } + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 1.1, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + }, + { + "input": 3, + "name": "$3" + } + ] + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "49", + "72" + ], + "rowCount": 3.385869506894362E31 + }, + { + "id": "74", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 0.9, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 1 + } + }, + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 1.1, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + }, + { + "input": 7, + "name": "$7" + } + ] + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 0.9, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 1 + } + }, + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 1.1, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + }, + { + "input": 5, + "name": "$5" + } + ] + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "26", + "73" + ], + "rowCount": 4.322164392042721E44 + }, + { + "id": "75", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_items.item_id", + "ss_item_rev", + "ss_dev", + "cs_item_rev", + "cs_dev", + "ws_item_rev", + "ws_dev", + "average" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 7, + "name": "$7" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + { + "literal": 3, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "literal": 100, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + { + "literal": 3, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "literal": 100, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + { + "literal": 3, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "literal": 100, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "literal": 3, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + } + ] + } + ], + "rowCount": 4.322164392042721E44 + }, + { + "id": "76", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query59.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query59.q.out new file mode 100644 index 000000000000..03cc9b2b4b45 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query59.q.out @@ -0,0 +1,3794 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_id", + "s_store_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 1704 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 1704 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "3" + ], + "rowCount": 435542.39999999997 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_store_sk", + "ss_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "rowCount": 65744.1 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_week_seq", + "EXPR$0", + "EXPR$1", + "EXPR$2", + "EXPR$3", + "EXPR$4", + "EXPR$5", + "EXPR$6" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Sunday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Monday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Tuesday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Wednesday", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Thursday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Friday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Saturday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + } + ], + "rowCount": 65744.1 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "7", + "10" + ], + "rowCount": 6.590893303284096E14 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7", + "$f8" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + } + ], + "rowCount": 6.590893303284096E14 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 8 + ], + "name": null + } + ], + "rowCount": 6.590893303284096E13 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7", + "$f8" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 6.590893303284096E13 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1185, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1196, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "rowCount": 16436.025 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_week_seq" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 16436.025 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "14", + "17" + ], + "rowCount": 162492130657664992 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7", + "$f8", + "d_week_seq" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "rowCount": 162492130657664992 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "4", + "19" + ], + "rowCount": 1.0615831885162947E22 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "inputs": [ + "5" + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_store_sk", + "ss_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "inputs": [ + "8" + ], + "rowCount": 65744.1 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_week_seq", + "EXPR$0", + "EXPR$1", + "EXPR$2", + "EXPR$3", + "EXPR$4", + "EXPR$5", + "EXPR$6" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Sunday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Monday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Tuesday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Wednesday", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Thursday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Friday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "Saturday ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + } + ], + "rowCount": 65744.1 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "22", + "24" + ], + "rowCount": 6.590893303284096E14 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7", + "$f8" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 1, + "name": "$1" + }, + { + "literal": null, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2 + } + } + ] + } + ], + "rowCount": 6.590893303284096E14 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 8 + ], + "name": null + } + ], + "rowCount": 6.590893303284096E13 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 6.590893303284096E13 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1197, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1208, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "inputs": [ + "15" + ], + "rowCount": 16436.025 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_week_seq" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 16436.025 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "28", + "30" + ], + "rowCount": 162492130657664992 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7", + "d_week_seq" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 162492130657664992 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 16, + "name": "$16" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "literal": 52, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "20", + "32" + ], + "rowCount": 3.8812255688783334E37 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_name1", + "s_store_id1", + "d_week_seq1", + "_c3", + "_c4", + "_c5", + "_c6", + "_c7", + "_c8", + "_c9" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 17, + "name": "$17" + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 18, + "name": "$18" + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 19, + "name": "$19" + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 20, + "name": "$20" + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "input": 21, + "name": "$21" + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 22, + "name": "$22" + } + ] + } + ], + "rowCount": 3.8812255688783334E37 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query6.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query6.q.out new file mode 100644 index 000000000000..c8e9dd75a992 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query6.q.out @@ -0,0 +1,3113 @@ +Warning: Map Join MAPJOIN[168][bigTable=?] in task 'Map 1' is a cross product +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "c", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "rowCount": 72000000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_addr_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 72000000 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 3 + ], + "aggs": [], + "rowCount": 164.36025 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_month_seq" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 164.36025 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "COUNT", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": false + }, + "distinct": false, + "operands": [], + "name": "cnt" + } + ], + "rowCount": 1 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "sq_count_check", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ], + "class": "org.apache.calcite.sql.SqlFunction", + "type": { + "type": "BOOLEAN", + "nullable": false + }, + "deterministic": true, + "dynamic": false + }, + "rowCount": 1 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "10" + ], + "rowCount": 72000000 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "a", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_state" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 40000000 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "11", + "13" + ], + "rowCount": 432000000000000 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "s", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "i", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + } + ] + }, + "rowCount": 374220 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_current_price", + "i_category" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 374220 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "j", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + }, + "rowCount": 415800 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 12 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + } + ], + "rowCount": 41580 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 16, + "scale": 6 + } + } + ] + }, + "rowCount": 33679.8 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_category", + "EXPR$0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 1.2, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 16, + "scale": 6 + } + } + ] + } + ], + "rowCount": 33679.8 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "20", + "25" + ], + "rowCount": 9.452741067000002E8 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "17", + "26" + ], + "rowCount": 9.476440896775356E18 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_sold_date_sk", + "i_item_sk", + "i_current_price", + "i_category", + "i_category0", + "EXPR$0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 9.476440896775356E18 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "14", + "28" + ], + "rowCount": 6.140733701110431E32 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + "rowCount": 65744.1 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_month_seq" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 65744.1 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1479.24225 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 3 + ], + "aggs": [], + "rowCount": 147.924225 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_month_seq" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 147.924225 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "32", + "35" + ], + "rowCount": 1458771.7561233754 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_month_seq", + "d_month_seq0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1458771.7561233754 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 13, + "name": "$13" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "29", + "37" + ], + "rowCount": 1.3436893327582287E38 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 4 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1.3436893327582288E37 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">=", + "kind": "GREATER_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 10, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + "rowCount": 6.718446663791144E36 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "state", + "cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 6.718446663791144E36 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query60.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query60.q.out new file mode 100644 index 000000000000..5890c919d5e9 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query60.q.out @@ -0,0 +1,3911 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_addr_sk", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 9, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 9, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 1643.6025 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.647723325821024E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "literal": -6, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "rowCount": 6000000 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_gmt_offset" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": -6, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 5, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2 + } + } + ], + "rowCount": 6000000 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 1.4829509932389216E19 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 462000 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "12" + ], + "rowCount": 1.0276850383145725E24 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Children ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + "rowCount": 69300 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 69300 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "semi", + "inputs": [ + "13", + "16" + ], + "rowCount": 1.5415275574718588E23 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 10 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 1.5415275574718588E22 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 1.5415275574718588E22 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_addr_sk", + "cs_item_sk", + "cs_ext_sales_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 9, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1643.6025 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 9, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 1643.6025 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "22", + "24" + ], + "rowCount": 8.5880215218109E12 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "literal": -6, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 6000000 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_gmt_offset" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": -6, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 5, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2 + } + } + ], + "rowCount": 6000000 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "25", + "27" + ], + "rowCount": 7729219369629809664 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "inputs": [ + "11" + ], + "rowCount": 462000 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "28", + "29" + ], + "rowCount": 5.356349023153458E23 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Children ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + "inputs": [ + "14" + ], + "rowCount": 69300 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 69300 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "semi", + "inputs": [ + "30", + "32" + ], + "rowCount": 8.034523534730186E22 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 10 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 8.034523534730186E21 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 8.034523534730186E21 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_bill_addr_sk", + "ws_ext_sales_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 9, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1643.6025 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 9, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 1643.6025 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "38", + "40" + ], + "rowCount": 4.312399710977669E12 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "literal": -6, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 6000000 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_gmt_offset" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": -6, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 5, + "scale": 2 + } + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2 + } + } + ], + "rowCount": 6000000 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "41", + "43" + ], + "rowCount": 3881159739879902208 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "inputs": [ + "11" + ], + "rowCount": 462000 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "44", + "45" + ], + "rowCount": 2.689643699736772E23 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Children ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + "inputs": [ + "14" + ], + "rowCount": 69300 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 69300 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "semi", + "inputs": [ + "46", + "48" + ], + "rowCount": 4.034465549605158E22 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 10 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 4.034465549605158E21 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 4.034465549605158E21 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "19", + "35", + "51" + ], + "rowCount": 2.748426465905393E22 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 2.748426465905393E22 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 2.748426465905393E21 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "total_sales" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 2.748426465905393E21 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query61.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query61.q.out new file mode 100644 index 000000000000..bc6b2b928896 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query61.q.out @@ -0,0 +1,3736 @@ +Warning: Map Join MAPJOIN[249][bigTable=?] in task 'Reducer 6' is a cross product +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "rowCount": 72000000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_addr_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 72000000 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "literal": -7, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "rowCount": 6000000 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6000000 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 64800000000000 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 5.413538832797791E10 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_store_sk", + "ss_promo_sk", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 5.413538832797791E10 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 11, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "12" + ], + "rowCount": 1.3346558939150297E13 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Electronics ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + "rowCount": 69300 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 69300 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "13", + "16" + ], + "rowCount": 138737480172467328 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 27, + "name": "$27" + }, + { + "literal": -7, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "rowCount": 255.6 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 255.6 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "17", + "20" + ], + "rowCount": 5319194989812397056 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "promotion" + ], + "table:alias": "promotion", + "inputs": [], + "rowCount": 2300, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "p_promo_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "p_promo_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "p_start_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "p_end_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "p_item_sk" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 2, + "name": "p_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "p_response_target" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "p_promo_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_dmail" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_email" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_catalog" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_tv" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_radio" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_press" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_event" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_demo" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "p_channel_details" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "p_purpose" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_discount_active" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "p_promo_sk", + "ndv": 2365, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "p_channel_dmail", + "ndv": 3 + }, + { + "name": "p_channel_email", + "ndv": 2 + }, + { + "name": "p_channel_tv", + "ndv": 2 + }, + { + "name": "p_promo_id", + "ndv": 2307 + }, + { + "name": "p_start_date_sk", + "ndv": 761, + "minValue": 2450096, + "maxValue": 2450915 + }, + { + "name": "p_end_date_sk", + "ndv": 736, + "minValue": 2450102, + "maxValue": 2450970 + }, + { + "name": "p_item_sk", + "ndv": 2252, + "minValue": 614, + "maxValue": 461932 + }, + { + "name": "p_cost", + "ndv": 1, + "minValue": 1000, + "maxValue": 1000 + }, + { + "name": "p_response_target", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "p_promo_name", + "ndv": 11 + }, + { + "name": "p_channel_catalog", + "ndv": 2 + }, + { + "name": "p_channel_radio", + "ndv": 2 + }, + { + "name": "p_channel_press", + "ndv": 2 + }, + { + "name": "p_channel_event", + "ndv": 2 + }, + { + "name": "p_channel_demo", + "ndv": 2 + }, + { + "name": "p_channel_details", + "ndv": 2242 + }, + { + "name": "p_purpose", + "ndv": 2 + }, + { + "name": "p_discount_active", + "ndv": 2 + } + ] + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "literal": "Y", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "literal": "Y", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "Y", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + } + ] + }, + "rowCount": 575 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "p_promo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 575 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "21", + "24" + ], + "rowCount": 4.5878056787131924E20 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_store_sk", + "ss_promo_sk", + "ss_ext_sales_price", + "ss_sold_date_sk", + "d_date_sk", + "i_item_sk", + "s_store_sk", + "p_promo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "rowCount": 4.5878056787131924E20 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "26" + ], + "rowCount": 4.459347119709223E33 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 72000000 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_addr_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 72000000 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "literal": -7, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 6000000 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6000000 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "31", + "33" + ], + "rowCount": 64800000000000 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.0150431475531006E10 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_store_sk", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.0150431475531006E10 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 11, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "10" + ], + "rowCount": 1643.6025 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "37", + "39" + ], + "rowCount": 1.4829509932389217E13 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Electronics ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + "inputs": [ + "14" + ], + "rowCount": 69300 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 69300 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "40", + "42" + ], + "rowCount": 154152755747185888 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 27, + "name": "$27" + }, + { + "literal": -7, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "inputs": [ + "18" + ], + "rowCount": 255.6 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 255.6 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "43", + "45" + ], + "rowCount": 5910216655347106816 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_store_sk", + "ss_ext_sales_price", + "ss_sold_date_sk", + "d_date_sk", + "i_item_sk", + "s_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 5910216655347106816 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "34", + "47" + ], + "rowCount": 5.744730588997387E31 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "29", + "50" + ], + "rowCount": 1 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "promotions", + "total", + "_c2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + } + ] + }, + { + "literal": 100, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + } + ] + } + ], + "rowCount": 1 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query62.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query62.q.out new file mode 100644 index 000000000000..cf7e62b14f3c --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query62.q.out @@ -0,0 +1,2521 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21600036511, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 14, + "name": "$14" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "rowCount": 1.4171783954867104E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_ship_date_sk", + "ws_web_site_sk", + "ws_ship_mode_sk", + "ws_warehouse_sk", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 33, + "name": "$33" + } + ] + }, + { + "literal": 30, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 33, + "name": "$33" + } + ] + }, + { + "literal": 30, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 33, + "name": "$33" + } + ] + }, + { + "literal": 60, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 33, + "name": "$33" + } + ] + }, + { + "literal": 60, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 33, + "name": "$33" + } + ] + }, + { + "literal": 90, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 33, + "name": "$33" + } + ] + }, + { + "literal": 90, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 33, + "name": "$33" + } + ] + }, + { + "literal": 120, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 33, + "name": "$33" + } + ] + }, + { + "literal": 120, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 1.4171783954867104E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1215, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1226, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 3.882129922946576E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "ship_mode" + ], + "table:alias": "ship_mode", + "inputs": [], + "rowCount": 20, + "avgRowSize": 397, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "sm_ship_mode_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "sm_ship_mode_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "sm_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "sm_code" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "sm_carrier" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "sm_contract" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "sm_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "sm_type", + "ndv": 6 + }, + { + "name": "sm_ship_mode_id", + "ndv": 20 + }, + { + "name": "sm_code", + "ndv": 4 + }, + { + "name": "sm_carrier", + "ndv": 20 + }, + { + "name": "sm_contract", + "ndv": 20 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sm_ship_mode_sk", + "sm_type" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 20 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "8" + ], + "rowCount": 1.1646389768839727E14 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "warehouse" + ], + "table:alias": "warehouse", + "inputs": [], + "rowCount": 27, + "avgRowSize": 679, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "w_warehouse_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "w_warehouse_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "w_warehouse_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "w_warehouse_sq_ft" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "w_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "w_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "w_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "w_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "w_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "w_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "w_gmt_offset" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "w_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "w_warehouse_name", + "ndv": 27 + }, + { + "name": "w_warehouse_id", + "ndv": 27 + }, + { + "name": "w_warehouse_sq_ft", + "ndv": 26, + "minValue": 73065, + "maxValue": 977787 + }, + { + "name": "w_street_number", + "ndv": 26 + }, + { + "name": "w_street_name", + "ndv": 27 + }, + { + "name": "w_street_type", + "ndv": 16 + }, + { + "name": "w_suite_number", + "ndv": 21 + }, + { + "name": "w_city", + "ndv": 18 + }, + { + "name": "w_county", + "ndv": 14 + }, + { + "name": "w_state", + "ndv": 12 + }, + { + "name": "w_zip", + "ndv": 24 + }, + { + "name": "w_country", + "ndv": 1 + }, + { + "name": "w_gmt_offset", + "ndv": 4, + "minValue": -8, + "maxValue": -5 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "w_warehouse_sk", + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 20, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + } + ], + "rowCount": 27 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 12, + "name": "$12" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "11" + ], + "rowCount": 4.716787856380089E14 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_site" + ], + "table:alias": "web_site", + "inputs": [], + "rowCount": 84, + "avgRowSize": 1331, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "web_site_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "web_site_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "web_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "web_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "web_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "web_open_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "web_close_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "web_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "web_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "web_mkt_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "web_mkt_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "web_mkt_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "web_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "web_company_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "web_company_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "web_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "web_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "web_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "web_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "web_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "web_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "web_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "web_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "web_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "web_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "web_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "web_site_sk", + "ndv": 84, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "web_name", + "ndv": 15 + }, + { + "name": "web_site_id", + "ndv": 42 + }, + { + "name": "web_rec_start_date", + "ndv": 0, + "minValue": 10089, + "maxValue": 11550 + }, + { + "name": "web_rec_end_date", + "ndv": 0, + "minValue": 10819, + "maxValue": 11549 + }, + { + "name": "web_open_date_sk", + "ndv": 42, + "minValue": 2450118, + "maxValue": 2450807 + }, + { + "name": "web_close_date_sk", + "ndv": 28, + "minValue": 2440993, + "maxValue": 2446218 + }, + { + "name": "web_class", + "ndv": 2 + }, + { + "name": "web_manager", + "ndv": 60 + }, + { + "name": "web_mkt_id", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "web_mkt_class", + "ndv": 65 + }, + { + "name": "web_mkt_desc", + "ndv": 64 + }, + { + "name": "web_market_manager", + "ndv": 66 + }, + { + "name": "web_company_id", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "web_company_name", + "ndv": 7 + }, + { + "name": "web_street_number", + "ndv": 58 + }, + { + "name": "web_street_name", + "ndv": 80 + }, + { + "name": "web_street_type", + "ndv": 20 + }, + { + "name": "web_suite_number", + "ndv": 51 + }, + { + "name": "web_city", + "ndv": 52 + }, + { + "name": "web_county", + "ndv": 58 + }, + { + "name": "web_state", + "ndv": 30 + }, + { + "name": "web_zip", + "ndv": 56 + }, + { + "name": "web_country", + "ndv": 2 + }, + { + "name": "web_gmt_offset", + "ndv": 4, + "minValue": -8, + "maxValue": -5 + }, + { + "name": "web_tax_percentage", + "ndv": 13, + "minValue": 0, + "maxValue": 0.12 + } + ] + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "web_site_sk", + "web_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 84 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 14, + "name": "$14" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "14" + ], + "rowCount": 5943152699038911 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 11, + 13, + 15 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 8 + ], + "name": null + } + ], + "rowCount": 5.943152699038911E14 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0", + "sm_type", + "web_name", + "30 days", + "31-60 days", + "61-90 days", + "91-120 days", + ">120 days", + "(tok_function substr (tok_table_or_col w_warehouse_name) 1 20)" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 5.943152699038911E14 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 8, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_c0", + "sm_type", + "web_name", + "30 days", + "31-60 days", + "61-90 days", + "91-120 days", + ">120 days" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query63.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query63.q.out new file mode 100644 index 000000000000..b6bf04178fca --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query63.q.out @@ -0,0 +1,2027 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": "accessories", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 11 + } + }, + { + "literal": "classical", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + }, + { + "literal": "fragrances", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 10 + } + }, + { + "literal": "pants", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "personal", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 8 + } + }, + { + "literal": "portable", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 8 + } + }, + { + "literal": "refernece", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + }, + { + "literal": "self-help", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Books", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "Children", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 8 + } + }, + { + "literal": "Electronics", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 11 + } + }, + { + "literal": "Men", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 3 + } + }, + { + "literal": "Music", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "Women", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "amalgimporto #1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 15 + } + }, + { + "literal": "edu packscholar #1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 18 + } + }, + { + "literal": "exportiimporto #1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 17 + } + }, + { + "literal": "exportiunivamalg #9", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 19 + } + }, + { + "literal": "importoamalg #1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 15 + } + }, + { + "literal": "scholaramalgamalg #14", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 21 + } + }, + { + "literal": "scholaramalgamalg #7", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 20 + } + }, + { + "literal": "scholaramalgamalg #9", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 20 + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Books", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "Children", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 8 + } + }, + { + "literal": "Electronics", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 11 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": "personal", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 8 + } + }, + { + "literal": "portable", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 8 + } + }, + { + "literal": "refernece", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + }, + { + "literal": "self-help", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "exportiunivamalg #9", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 19 + } + }, + { + "literal": "scholaramalgamalg #14", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 21 + } + }, + { + "literal": "scholaramalgamalg #7", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 20 + } + }, + { + "literal": "scholaramalgamalg #9", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 20 + } + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Men", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 3 + } + }, + { + "literal": "Music", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "Women", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": "accessories", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 11 + } + }, + { + "literal": "classical", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + }, + { + "literal": "fragrances", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 10 + } + }, + { + "literal": "pants", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "amalgimporto #1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 15 + } + }, + { + "literal": "edu packscholar #1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 18 + } + }, + { + "literal": "exportiimporto #1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 17 + } + }, + { + "literal": "importoamalg #1", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 15 + } + } + ] + } + ] + } + ] + } + ] + }, + "rowCount": 1804.6875 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_manager_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 20, + "name": "$20" + } + ], + "rowCount": 1804.6875 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.809212196724956E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1213, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1214, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1215, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1216, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1217, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1218, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1219, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1220, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1221, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1222, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 18262.25 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 49560428159460488 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 4, + 6 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 4956042815946049 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_manager_id", + "d_moy", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 4956042815946049 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "(tok_table_or_col i_manager_id)", + "(tok_function sum (tok_table_or_col ss_sales_price))", + "avg_window_0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "op": { + "name": "avg", + "kind": "AVG", + "syntax": "FUNCTION_STAR" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "distinct": false, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 21, + "scale": 6 + }, + "window": { + "partition": [ + { + "input": 0, + "name": "$0" + } + ], + "order": [ + { + "expr": { + "input": 0, + "name": "$0" + }, + "direction": "ASCENDING", + "null-direction": "FIRST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ], + "rowCount": 4956042815946049 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "ABS", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "literal": 0.1, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 1 + } + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + }, + "rowCount": 1.2390107039865122E15 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "tmp1.i_manager_id", + "tmp1.sum_sales", + "tmp1.avg_monthly_sales" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.2390107039865122E15 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query64.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query64.q.out new file mode 100644 index 000000000000..8152f020dc67 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query64.q.out @@ -0,0 +1,8158 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_returns" + ], + "table:alias": "store_returns", + "inputs": [], + "rowCount": 8634166995, + "avgRowSize": 249, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "sr_return_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "sr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "sr_returned_date_sk" + ], + "colStats": [ + { + "name": "sr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "sr_ticket_number", + "ndv": 5114579988, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "sr_return_time_sk", + "ndv": 32389, + "minValue": 28799, + "maxValue": 61199 + }, + { + "name": "sr_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "sr_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "sr_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "sr_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "sr_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "sr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "sr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "sr_return_amt", + "ndv": 715216, + "minValue": 0, + "maxValue": 19643 + }, + { + "name": "sr_return_tax", + "ndv": 141365, + "minValue": 0, + "maxValue": 1714.37 + }, + { + "name": "sr_return_amt_inc_tax", + "ndv": 1520430, + "minValue": 0, + "maxValue": 21018.01 + }, + { + "name": "sr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "sr_return_ship_cost", + "ndv": 363000, + "minValue": 0, + "maxValue": 9975 + }, + { + "name": "sr_refunded_cash", + "ndv": 1187970, + "minValue": 0, + "maxValue": 18413.33 + }, + { + "name": "sr_reversed_charge", + "ndv": 926355, + "minValue": 0, + "maxValue": 18104.5 + }, + { + "name": "sr_store_credit", + "ndv": 937950, + "minValue": 0, + "maxValue": 17792.48 + }, + { + "name": "sr_net_loss", + "ndv": 851834, + "minValue": 0.5, + "maxValue": 11008.17 + }, + { + "name": "sr_returned_date_sk", + "ndv": 2004, + "minValue": 2450820, + "maxValue": 2452822 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_item_sk", + "sr_ticket_number" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 8634166995 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "ad1", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_street_number", + "ca_street_name", + "ca_city", + "ca_zip" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 9, + "name": "$9" + } + ], + "rowCount": 40000000 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "rowCount": 4.7239200000000015E7 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_cdemo_sk", + "c_current_hdemo_sk", + "c_current_addr_sk", + "c_first_shipto_date_sk", + "c_first_sales_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 4.7239200000000015E7 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 3.94646980910959E10 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_cdemo_sk", + "ss_hdemo_sk", + "ss_addr_sk", + "ss_store_sk", + "ss_ticket_number", + "ss_wholesale_cost", + "ss_list_price", + "ss_coupon_amt", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 3.94646980910959E10 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_product_name", + "ndv": 461487 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 36, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 45, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": "burnished", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + }, + { + "literal": "chocolate", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + }, + { + "literal": "dim", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 3 + } + }, + { + "literal": "maroon", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + }, + { + "literal": "navajo", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + }, + { + "literal": "steel", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + } + ] + }, + "rowCount": 28875 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_product_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 21, + "name": "$21" + } + ], + "rowCount": 28875 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "12" + ], + "rowCount": 1.7093147360705912E14 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d1", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 13, + "name": "$13" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "13", + "16" + ], + "rowCount": 280943397349246368 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "17" + ], + "rowCount": 1.9907312004090784E24 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43220864887, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1644740, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1837, + "minValue": 2450815, + "maxValue": 2452654 + } + ] + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_item_sk", + "cs_order_number", + "cs_ext_list_price" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 24, + "name": "$24" + } + ], + "rowCount": 43220864887 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_returns" + ], + "table:alias": "catalog_returns", + "inputs": [], + "rowCount": 4320980099, + "avgRowSize": 305, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amount" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cr_returned_date_sk" + ], + "colStats": [ + { + "name": "cr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cr_order_number", + "ndv": 2681654419, + "minValue": 2, + "maxValue": 4800000000 + }, + { + "name": "cr_refunded_cash", + "ndv": 1257293, + "minValue": 0, + "maxValue": 26955.24 + }, + { + "name": "cr_reversed_charge", + "ndv": 895564, + "minValue": 0, + "maxValue": 24033.84 + }, + { + "name": "cr_store_credit", + "ndv": 906118, + "minValue": 0, + "maxValue": 24886.13 + }, + { + "name": "cr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_returning_customer_sk", + "ndv": 77511828, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cr_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cr_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cr_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "cr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cr_return_amount", + "ndv": 973170, + "minValue": 0, + "maxValue": 28805.04 + }, + { + "name": "cr_return_tax", + "ndv": 169232, + "minValue": 0, + "maxValue": 2511.58 + }, + { + "name": "cr_return_amt_inc_tax", + "ndv": 1689965, + "minValue": 0, + "maxValue": 30891.32 + }, + { + "name": "cr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "cr_return_ship_cost", + "ndv": 501353, + "minValue": 0, + "maxValue": 14273.28 + }, + { + "name": "cr_net_loss", + "ndv": 996464, + "minValue": 0.5, + "maxValue": 16346.37 + }, + { + "name": "cr_returned_date_sk", + "ndv": 2104, + "minValue": 2450821, + "maxValue": 2452924 + } + ] + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cr_item_sk", + "cr_order_number", + "$f2" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 15, + "name": "$15" + }, + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 22, + "name": "$22" + }, + { + "input": 23, + "name": "$23" + } + ] + }, + { + "input": 24, + "name": "$24" + } + ] + } + ], + "rowCount": 4320980099 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "20", + "22" + ], + "rowCount": 4202021183361634304 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 19, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + } + ], + "rowCount": 420202118336163456 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 2, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + }, + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "rowCount": 210101059168081728 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 210101059168081728 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 20, + "name": "$20" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "18", + "26" + ], + "rowCount": 6.273821005873412E40 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "3", + "27" + ], + "rowCount": 3.7642926035240464E47 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 19, + "name": "$19" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "28" + ], + "rowCount": 7.312844465295736E55 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 25, + "name": "$25" + } + ] + } + ] + }, + "rowCount": 1380.24 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_name", + "s_zip" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 25, + "name": "$25" + } + ], + "rowCount": 1380.24 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "input": 28, + "name": "$28" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "29", + "32" + ], + "rowCount": 1.514022066716968E58 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "household_demographics" + ], + "table:alias": "hd1", + "inputs": [], + "rowCount": 7200, + "avgRowSize": 183, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "hd_demo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "hd_income_band_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "hd_buy_potential" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_vehicle_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "hd_demo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "hd_income_band_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "hd_buy_potential", + "ndv": 6 + }, + { + "name": "hd_dep_count", + "ndv": 10, + "minValue": 0, + "maxValue": 9 + }, + { + "name": "hd_vehicle_count", + "ndv": 6, + "minValue": -1, + "maxValue": 4 + } + ] + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ] + }, + "rowCount": 6480 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6480 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 16, + "name": "$16" + }, + { + "input": 31, + "name": "$31" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "33", + "36" + ], + "rowCount": 1.4716294488488928E61 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "household_demographics" + ], + "table:alias": "hd2", + "inputs": [], + "rowCount": 7200, + "avgRowSize": 183, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "hd_demo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "hd_income_band_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "hd_buy_potential" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_vehicle_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "hd_demo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "hd_income_band_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "hd_buy_potential", + "ndv": 6 + }, + { + "name": "hd_dep_count", + "ndv": 10, + "minValue": 0, + "maxValue": 9 + }, + { + "name": "hd_vehicle_count", + "ndv": 6, + "minValue": -1, + "maxValue": 4 + } + ] + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ] + }, + "rowCount": 6480 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6480 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 32, + "name": "$32" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "37", + "40" + ], + "rowCount": 1.4304238242811236E64 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d2", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 73049 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "input": 33, + "name": "$33" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "41", + "43" + ], + "rowCount": 1.5673654490986768E68 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d3", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 73049 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 35, + "name": "$35" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "44", + "46" + ], + "rowCount": 1.7174171803681383E72 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_demographics" + ], + "table:alias": "cd1", + "inputs": [], + "rowCount": 1920800, + "avgRowSize": 217, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cd_demo_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_gender" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_marital_status" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cd_education_status" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_purchase_estimate" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cd_credit_rating" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_employed_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_college_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cd_demo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cd_marital_status", + "ndv": 5 + }, + { + "name": "cd_gender", + "ndv": 2 + }, + { + "name": "cd_education_status", + "ndv": 7 + }, + { + "name": "cd_purchase_estimate", + "ndv": 20, + "minValue": 500, + "maxValue": 10000 + }, + { + "name": "cd_credit_rating", + "ndv": 4 + }, + { + "name": "cd_dep_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_employed_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_college_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + } + ] + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk", + "cd_marital_status" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1920800 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "input": 37, + "name": "$37" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "47", + "49" + ], + "rowCount": 4.94822238007668E77 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_demographics" + ], + "table:alias": "cd2", + "inputs": [], + "rowCount": 1920800, + "avgRowSize": 217, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cd_demo_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_gender" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_marital_status" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cd_education_status" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_purchase_estimate" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cd_credit_rating" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_employed_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_college_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cd_demo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cd_marital_status", + "ndv": 5 + }, + { + "name": "cd_gender", + "ndv": 2 + }, + { + "name": "cd_education_status", + "ndv": 7 + }, + { + "name": "cd_purchase_estimate", + "ndv": 20, + "minValue": 500, + "maxValue": 10000 + }, + { + "name": "cd_credit_rating", + "ndv": 4 + }, + { + "name": "cd_dep_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_employed_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_college_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + } + ] + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk", + "cd_marital_status" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1920800 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 39, + "name": "$39" + } + ] + }, + { + "op": { + "name": "<>", + "kind": "NOT_EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 38, + "name": "$38" + }, + { + "input": 40, + "name": "$40" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "50", + "52" + ], + "rowCount": 7.128409160738465E82 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "ad2", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_street_number", + "ca_street_name", + "ca_city", + "ca_zip" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 9, + "name": "$9" + } + ], + "rowCount": 40000000 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 41, + "name": "$41" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "53", + "55" + ], + "rowCount": 4.277045496443079E89 + }, + { + "id": "57", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 3, + 4, + 5, + 6, + 24, + 29, + 30, + 34, + 36, + 42, + 43, + 44, + 45 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 20 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 21 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 22 + ], + "name": null + } + ], + "rowCount": 4.277045496443079E88 + }, + { + "id": "58", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "s_store_name", + "s_zip", + "ca_street_number", + "ca_street_name", + "ca_city", + "ca_zip", + "ca_street_number0", + "ca_street_name0", + "ca_city0", + "ca_zip0", + "d_year", + "d_year0", + "$f13", + "$f14", + "$f15", + "$f16" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + } + ], + "rowCount": 4.277045496443079E88 + }, + { + "id": "59", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + }, + "rowCount": 3.849340946798771E88 + }, + { + "id": "60", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f1", + "$f2", + "$f3", + "$f15", + "$f16", + "$f17", + "$f18" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + } + ], + "rowCount": 3.849340946798771E88 + }, + { + "id": "61", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_item_sk", + "sr_ticket_number" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + } + ], + "inputs": [ + "0" + ], + "rowCount": 8634166995 + }, + { + "id": "62", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_street_number", + "ca_street_name", + "ca_city", + "ca_zip" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 9, + "name": "$9" + } + ], + "inputs": [ + "2" + ], + "rowCount": 40000000 + }, + { + "id": "63", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "inputs": [ + "4" + ], + "rowCount": 4.7239200000000015E7 + }, + { + "id": "64", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_cdemo_sk", + "c_current_hdemo_sk", + "c_current_addr_sk", + "c_first_shipto_date_sk", + "c_first_sales_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 4.7239200000000015E7 + }, + { + "id": "65", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 3.94646980910959E10 + }, + { + "id": "66", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_cdemo_sk", + "ss_hdemo_sk", + "ss_addr_sk", + "ss_store_sk", + "ss_ticket_number", + "ss_wholesale_cost", + "ss_list_price", + "ss_coupon_amt", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 3.94646980910959E10 + }, + { + "id": "67", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 36, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 45, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "literal": "burnished", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + }, + { + "literal": "chocolate", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + }, + { + "literal": "dim", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 3 + } + }, + { + "literal": "maroon", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + }, + { + "literal": "navajo", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + }, + { + "literal": "steel", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + } + ] + }, + "inputs": [ + "10" + ], + "rowCount": 28875 + }, + { + "id": "68", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_product_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 21, + "name": "$21" + } + ], + "rowCount": 28875 + }, + { + "id": "69", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "66", + "68" + ], + "rowCount": 1.7093147360705912E14 + }, + { + "id": "70", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "14" + ], + "rowCount": 10957.35 + }, + { + "id": "71", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "72", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 13, + "name": "$13" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "69", + "71" + ], + "rowCount": 280943397349246368 + }, + { + "id": "73", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "64", + "72" + ], + "rowCount": 1.9907312004090784E24 + }, + { + "id": "74", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_item_sk", + "cs_order_number", + "cs_ext_list_price" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 24, + "name": "$24" + } + ], + "inputs": [ + "19" + ], + "rowCount": 43220864887 + }, + { + "id": "75", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cr_item_sk", + "cr_order_number", + "$f2" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 15, + "name": "$15" + }, + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 22, + "name": "$22" + }, + { + "input": 23, + "name": "$23" + } + ] + }, + { + "input": 24, + "name": "$24" + } + ] + } + ], + "inputs": [ + "21" + ], + "rowCount": 4320980099 + }, + { + "id": "76", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "74", + "75" + ], + "rowCount": 4202021183361634304 + }, + { + "id": "77", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 19, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + } + ], + "rowCount": 420202118336163456 + }, + { + "id": "78", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 2, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + }, + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "rowCount": 210101059168081728 + }, + { + "id": "79", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 210101059168081728 + }, + { + "id": "80", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 20, + "name": "$20" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "73", + "79" + ], + "rowCount": 6.273821005873412E40 + }, + { + "id": "81", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "62", + "80" + ], + "rowCount": 3.7642926035240464E47 + }, + { + "id": "82", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 19, + "name": "$19" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "61", + "81" + ], + "rowCount": 7.312844465295736E55 + }, + { + "id": "83", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 25, + "name": "$25" + } + ] + } + ] + }, + "inputs": [ + "30" + ], + "rowCount": 1380.24 + }, + { + "id": "84", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_name", + "s_zip" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 25, + "name": "$25" + } + ], + "rowCount": 1380.24 + }, + { + "id": "85", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "input": 28, + "name": "$28" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "82", + "84" + ], + "rowCount": 1.514022066716968E58 + }, + { + "id": "86", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ] + }, + "inputs": [ + "34" + ], + "rowCount": 6480 + }, + { + "id": "87", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6480 + }, + { + "id": "88", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 16, + "name": "$16" + }, + { + "input": 31, + "name": "$31" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "85", + "87" + ], + "rowCount": 1.4716294488488928E61 + }, + { + "id": "89", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ] + }, + "inputs": [ + "38" + ], + "rowCount": 6480 + }, + { + "id": "90", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6480 + }, + { + "id": "91", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 32, + "name": "$32" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "88", + "90" + ], + "rowCount": 1.4304238242811236E64 + }, + { + "id": "92", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "inputs": [ + "42" + ], + "rowCount": 73049 + }, + { + "id": "93", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "input": 33, + "name": "$33" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "91", + "92" + ], + "rowCount": 1.5673654490986768E68 + }, + { + "id": "94", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "inputs": [ + "45" + ], + "rowCount": 73049 + }, + { + "id": "95", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 35, + "name": "$35" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "93", + "94" + ], + "rowCount": 1.7174171803681383E72 + }, + { + "id": "96", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk", + "cd_marital_status" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "inputs": [ + "48" + ], + "rowCount": 1920800 + }, + { + "id": "97", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "input": 37, + "name": "$37" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "95", + "96" + ], + "rowCount": 4.94822238007668E77 + }, + { + "id": "98", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk", + "cd_marital_status" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "inputs": [ + "51" + ], + "rowCount": 1920800 + }, + { + "id": "99", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 39, + "name": "$39" + } + ] + }, + { + "op": { + "name": "<>", + "kind": "NOT_EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 38, + "name": "$38" + }, + { + "input": 40, + "name": "$40" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "97", + "98" + ], + "rowCount": 7.128409160738465E82 + }, + { + "id": "100", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_street_number", + "ca_street_name", + "ca_city", + "ca_zip" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 9, + "name": "$9" + } + ], + "inputs": [ + "54" + ], + "rowCount": 40000000 + }, + { + "id": "101", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 41, + "name": "$41" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "99", + "100" + ], + "rowCount": 4.277045496443079E89 + }, + { + "id": "102", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 3, + 4, + 5, + 6, + 24, + 25, + 29, + 30, + 34, + 36, + 42, + 43, + 44, + 45 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 20 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 21 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 22 + ], + "name": null + } + ], + "rowCount": 4.277045496443079E88 + }, + { + "id": "103", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_product_name", + "i_item_sk", + "s_store_name", + "s_zip", + "ca_street_number", + "ca_street_name", + "ca_city", + "ca_zip", + "ca_street_number0", + "ca_street_name0", + "ca_city0", + "ca_zip0", + "d_year", + "d_year0", + "$f14", + "$f15", + "$f16", + "$f17" + ], + "exprs": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + } + ], + "rowCount": 4.277045496443079E88 + }, + { + "id": "104", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 14, + "name": "$14" + } + ] + }, + "rowCount": 3.849340946798771E88 + }, + { + "id": "105", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7", + "$f8", + "$f9", + "$f10", + "$f11", + "$f15", + "$f16", + "$f17", + "$f18" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + } + ], + "rowCount": 3.849340946798771E88 + }, + { + "id": "106", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 19, + "name": "$19" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "60", + "105" + ], + "rowCount": 2.500440591043405E174 + }, + { + "id": "107", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "product_name", + "store_name", + "store_zip", + "b_street_number", + "b_streen_name", + "b_city", + "b_zip", + "c_street_number", + "c_street_name", + "c_city", + "c_zip", + "cnt", + "s1", + "s2", + "s3", + "s11", + "s21", + "s31", + "cnt1" + ], + "exprs": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 2.500440591043405E174 + }, + { + "id": "108", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 18, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "rowCount": 2.500440591043405E174 + }, + { + "id": "109", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs1.product_name", + "cs1.store_name", + "cs1.store_zip", + "cs1.b_street_number", + "cs1.b_streen_name", + "cs1.b_city", + "cs1.b_zip", + "cs1.c_street_number", + "cs1.c_street_name", + "cs1.c_city", + "cs1.c_zip", + "cs1.syear", + "cs1.cnt", + "cs1.s1", + "cs1.s2", + "cs1.s3", + "cs2.s1", + "cs2.s2", + "cs2.s3", + "cs2.syear", + "cs2.cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "input": 18, + "name": "$18" + } + ], + "rowCount": 2.500440591043405E174 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query65.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query65.q.out new file mode 100644 index 000000000000..e517f04a7332 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query65.q.out @@ -0,0 +1,2186 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 1704 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_store_sk", + "ss_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "4", + "7" + ], + "rowCount": 1.8308036953566934E14 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 1.8308036953566934E13 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_store_sk", + "ss_item_sk", + "$f2" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.8308036953566934E13 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + "rowCount": 1.647723325821024E13 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_store_sk", + "ss_item_sk", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.647723325821024E13 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "inputs": [ + "2" + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_store_sk", + "ss_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "5" + ], + "rowCount": 18262.25 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "14", + "16" + ], + "rowCount": 1.8308036953566934E14 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 1.8308036953566934E13 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_store_sk", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.8308036953566934E13 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 1.8308036953566934E12 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 21, + "scale": 6 + } + } + ] + }, + "rowCount": 1.6477233258210242E12 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "EXPR$0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 0.1, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 1 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 21, + "scale": 6 + } + } + ] + } + ], + "rowCount": 1.6477233258210242E12 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "22" + ], + "rowCount": 2.0362441188410223E24 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "23" + ], + "rowCount": 5.204639967757653E26 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_desc", + "i_current_price", + "i_wholesale_cost", + "i_brand" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 462000 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "24", + "26" + ], + "rowCount": 3.6068154976560536E31 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_name", + "i_item_desc", + "sc.revenue", + "i_current_price", + "i_wholesale_cost", + "i_brand" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + } + ], + "rowCount": 3.6068154976560536E31 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query66.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query66.q.out new file mode 100644 index 000000000000..6199d5a1fc8d --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query66.q.out @@ -0,0 +1,7517 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 14, + "name": "$14" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.4168242284420603E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_sold_time_sk", + "ws_ship_mode_sk", + "ws_warehouse_sk", + "ws_sold_date_sk", + "EXPR$0", + "EXPR$1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 33, + "name": "$33" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 20, + "name": "$20" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 29, + "name": "$29" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + } + ] + } + ], + "rowCount": 1.4168242284420603E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "time_dim" + ], + "table:alias": "time_dim", + "inputs": [], + "rowCount": 86400, + "avgRowSize": 377, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "t_time_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "t_time_id" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_time" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_hour" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_minute" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_second" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "t_am_pm" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "t_shift" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "t_sub_shift" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "t_meal_time" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "t_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "t_time", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "t_time_id", + "ndv": 87002 + }, + { + "name": "t_hour", + "ndv": 24, + "minValue": 0, + "maxValue": 23 + }, + { + "name": "t_minute", + "ndv": 62, + "minValue": 0, + "maxValue": 59 + }, + { + "name": "t_second", + "ndv": 62, + "minValue": 0, + "maxValue": 59 + }, + { + "name": "t_am_pm", + "ndv": 2 + }, + { + "name": "t_shift", + "ndv": 3 + }, + { + "name": "t_sub_shift", + "ndv": 4 + }, + { + "name": "t_meal_time", + "ndv": 4 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 2, + "name": "$2" + }, + { + "literal": 49530, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 78330, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 21600 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "t_time_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 21600 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 4.590510500152275E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "EXPR$0", + "EXPR$1", + "EXPR$2", + "EXPR$3", + "EXPR$4", + "EXPR$5", + "EXPR$6", + "EXPR$7", + "EXPR$8", + "EXPR$9", + "EXPR$10", + "EXPR$11" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 4, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 6, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 7, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 8, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 9, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 10, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 11, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "rowCount": 10957.35 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 75449745343265296 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "ship_mode" + ], + "table:alias": "ship_mode", + "inputs": [], + "rowCount": 20, + "avgRowSize": 397, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "sm_ship_mode_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "sm_ship_mode_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "sm_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "sm_code" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "sm_carrier" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "sm_contract" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "sm_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "sm_carrier", + "ndv": 20 + }, + { + "name": "sm_ship_mode_id", + "ndv": 20 + }, + { + "name": "sm_type", + "ndv": 6 + }, + { + "name": "sm_code", + "ndv": 4 + }, + { + "name": "sm_contract", + "ndv": 20 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": "AIRBORNE", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 8 + } + }, + { + "literal": "DIAMOND", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + } + ] + }, + "rowCount": 5 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sm_ship_mode_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 5 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 20, + "name": "$20" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "13" + ], + "rowCount": 56587309007448968 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "warehouse" + ], + "table:alias": "warehouse", + "inputs": [], + "rowCount": 27, + "avgRowSize": 679, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "w_warehouse_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "w_warehouse_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "w_warehouse_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "w_warehouse_sq_ft" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "w_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "w_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "w_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "w_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "w_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "w_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "w_gmt_offset" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "w_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "w_warehouse_name", + "ndv": 27 + }, + { + "name": "w_warehouse_sq_ft", + "ndv": 26, + "minValue": 73065, + "maxValue": 977787 + }, + { + "name": "w_city", + "ndv": 18 + }, + { + "name": "w_county", + "ndv": 14 + }, + { + "name": "w_state", + "ndv": 12 + }, + { + "name": "w_country", + "ndv": 1 + }, + { + "name": "w_warehouse_id", + "ndv": 27 + }, + { + "name": "w_street_number", + "ndv": 26 + }, + { + "name": "w_street_name", + "ndv": 27 + }, + { + "name": "w_street_type", + "ndv": 16 + }, + { + "name": "w_suite_number", + "ndv": 21 + }, + { + "name": "w_zip", + "ndv": 24 + }, + { + "name": "w_gmt_offset", + "ndv": 4, + "minValue": -8, + "maxValue": -5 + } + ] + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "w_warehouse_sk", + "w_warehouse_name", + "w_warehouse_sq_ft", + "w_city", + "w_county", + "w_state", + "w_country" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 27 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 21, + "name": "$21" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "14", + "16" + ], + "rowCount": 229178601480168288 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f7", + "$f8", + "$f9", + "$f10", + "$f11", + "$f12", + "$f13", + "$f14", + "$f15", + "$f16", + "$f17", + "$f18", + "$f19", + "$f20", + "$f21", + "$f22", + "$f23", + "$f24", + "$f25", + "$f26", + "$f27", + "$f28", + "$f29", + "$f30" + ], + "exprs": [ + { + "input": 22, + "name": "$22" + }, + { + "input": 23, + "name": "$23" + }, + { + "input": 24, + "name": "$24" + }, + { + "input": 25, + "name": "$25" + }, + { + "input": 26, + "name": "$26" + }, + { + "input": 27, + "name": "$27" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 16, + "name": "$16" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 19, + "name": "$19" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 16, + "name": "$16" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 19, + "name": "$19" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + } + ], + "rowCount": 229178601480168288 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2, + 3, + 4, + 5 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 8 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 9 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 10 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 12 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 13 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 14 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 15 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 16 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 17 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 18 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 19 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 20 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 21 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 22 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 23 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 24 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 25 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 26 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 27 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 28 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 29 + ], + "name": null + } + ], + "rowCount": 22917860148016828 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7", + "$f8", + "$f9", + "$f10", + "$f11", + "$f12", + "$f13", + "$f14", + "$f15", + "$f16", + "$f17", + "$f18", + "$f19", + "$f20", + "$f21", + "$f22", + "$f23", + "$f24", + "$f25", + "$f26", + "$f27", + "$f28", + "$f29" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 23, + "name": "$23" + }, + { + "input": 24, + "name": "$24" + }, + { + "input": 25, + "name": "$25" + }, + { + "input": 26, + "name": "$26" + }, + { + "input": 27, + "name": "$27" + }, + { + "input": 28, + "name": "$28" + }, + { + "input": 29, + "name": "$29" + } + ], + "rowCount": 22917860148016828 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 2.8215652031302505E10 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_sold_time_sk", + "cs_ship_mode_sk", + "cs_warehouse_sk", + "cs_sold_date_sk", + "EXPR$0", + "EXPR$1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 33, + "name": "$33" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 22, + "name": "$22" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 31, + "name": "$31" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + } + ] + } + ], + "rowCount": 2.8215652031302505E10 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 2, + "name": "$2" + }, + { + "literal": 49530, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 78330, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 21600 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "t_time_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 21600 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "23", + "25" + ], + "rowCount": 9.141871258142011E13 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 10957.35 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "EXPR$0", + "EXPR$1", + "EXPR$2", + "EXPR$3", + "EXPR$4", + "EXPR$5", + "EXPR$6", + "EXPR$7", + "EXPR$8", + "EXPR$9", + "EXPR$10", + "EXPR$11" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 4, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 6, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 7, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 8, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 9, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 10, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 11, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "rowCount": 10957.35 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "26", + "28" + ], + "rowCount": 150256024545603552 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": "AIRBORNE", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 8 + } + }, + { + "literal": "DIAMOND", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + } + ] + }, + "inputs": [ + "11" + ], + "rowCount": 5 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sm_ship_mode_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 5 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 20, + "name": "$20" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "29", + "31" + ], + "rowCount": 112692018409202672 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "w_warehouse_sk", + "w_warehouse_name", + "w_warehouse_sq_ft", + "w_city", + "w_county", + "w_state", + "w_country" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 12, + "name": "$12" + } + ], + "inputs": [ + "15" + ], + "rowCount": 27 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 21, + "name": "$21" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "32", + "33" + ], + "rowCount": 456402674557270784 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f7", + "$f8", + "$f9", + "$f10", + "$f11", + "$f12", + "$f13", + "$f14", + "$f15", + "$f16", + "$f17", + "$f18", + "$f19", + "$f20", + "$f21", + "$f22", + "$f23", + "$f24", + "$f25", + "$f26", + "$f27", + "$f28", + "$f29", + "$f30" + ], + "exprs": [ + { + "input": 22, + "name": "$22" + }, + { + "input": 23, + "name": "$23" + }, + { + "input": 24, + "name": "$24" + }, + { + "input": 25, + "name": "$25" + }, + { + "input": 26, + "name": "$26" + }, + { + "input": 27, + "name": "$27" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 16, + "name": "$16" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 19, + "name": "$19" + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 16, + "name": "$16" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 19, + "name": "$19" + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + } + ], + "rowCount": 456402674557270784 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2, + 3, + 4, + 5 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 8 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 9 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 10 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 12 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 13 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 14 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 15 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 16 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 17 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 18 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 19 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 20 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 21 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 22 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 23 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 24 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 25 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 26 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 27 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 28 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 29 + ], + "name": null + } + ], + "rowCount": 45640267455727080 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7", + "$f8", + "$f9", + "$f10", + "$f11", + "$f12", + "$f13", + "$f14", + "$f15", + "$f16", + "$f17", + "$f18", + "$f19", + "$f20", + "$f21", + "$f22", + "$f23", + "$f24", + "$f25", + "$f26", + "$f27", + "$f28", + "$f29" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 23, + "name": "$23" + }, + { + "input": 24, + "name": "$24" + }, + { + "input": 25, + "name": "$25" + }, + { + "input": 26, + "name": "$26" + }, + { + "input": 27, + "name": "$27" + }, + { + "input": 28, + "name": "$28" + }, + { + "input": 29, + "name": "$29" + } + ], + "rowCount": 45640267455727080 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "20", + "37" + ], + "rowCount": 68558127603743904 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f8", + "$f9", + "$f10", + "$f11", + "$f12", + "$f13", + "$f14", + "$f15", + "$f16", + "$f17", + "$f18", + "$f19", + "$f20", + "$f21", + "$f22", + "$f23", + "$f24", + "$f25", + "$f26", + "$f27", + "$f28", + "$f29", + "$f30", + "$f31", + "$f32", + "$f33", + "$f34", + "$f35", + "$f36", + "$f37", + "$f38", + "$f39", + "$f40", + "$f41", + "$f42", + "$f43" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 15, + "name": "$15" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 16, + "name": "$16" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 23, + "name": "$23" + }, + { + "input": 24, + "name": "$24" + }, + { + "input": 25, + "name": "$25" + }, + { + "input": 26, + "name": "$26" + }, + { + "input": 27, + "name": "$27" + }, + { + "input": 28, + "name": "$28" + }, + { + "input": 29, + "name": "$29" + } + ], + "rowCount": 68558127603743904 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2, + 3, + 4, + 5 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 8 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 9 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 10 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 11 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 12 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 13 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 14 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 15 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 16 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 17 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 12 + }, + "distinct": false, + "operands": [ + 18 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 12 + }, + "distinct": false, + "operands": [ + 19 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 12 + }, + "distinct": false, + "operands": [ + 20 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 12 + }, + "distinct": false, + "operands": [ + 21 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 12 + }, + "distinct": false, + "operands": [ + 22 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 12 + }, + "distinct": false, + "operands": [ + 23 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 12 + }, + "distinct": false, + "operands": [ + 24 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 12 + }, + "distinct": false, + "operands": [ + 25 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 12 + }, + "distinct": false, + "operands": [ + 26 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 12 + }, + "distinct": false, + "operands": [ + 27 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 12 + }, + "distinct": false, + "operands": [ + 28 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 12 + }, + "distinct": false, + "operands": [ + 29 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 30 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 31 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 32 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 33 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 34 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 35 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 36 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 37 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 38 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 39 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 40 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 38, + "scale": 2 + }, + "distinct": false, + "operands": [ + 41 + ], + "name": null + } + ], + "rowCount": 6855812760374390 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7", + "$f8", + "$f9", + "$f10", + "$f11", + "$f12", + "$f13", + "$f14", + "$f15", + "$f16", + "$f17", + "$f18", + "$f19", + "$f20", + "$f21", + "$f22", + "$f23", + "$f24", + "$f25", + "$f26", + "$f27", + "$f28", + "$f29", + "$f30", + "$f31", + "$f32", + "$f33", + "$f34", + "$f35", + "$f36", + "$f37", + "$f38", + "$f39", + "$f40", + "$f41" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 23, + "name": "$23" + }, + { + "input": 24, + "name": "$24" + }, + { + "input": 25, + "name": "$25" + }, + { + "input": 26, + "name": "$26" + }, + { + "input": 27, + "name": "$27" + }, + { + "input": 28, + "name": "$28" + }, + { + "input": 29, + "name": "$29" + }, + { + "input": 30, + "name": "$30" + }, + { + "input": 31, + "name": "$31" + }, + { + "input": 32, + "name": "$32" + }, + { + "input": 33, + "name": "$33" + }, + { + "input": 34, + "name": "$34" + }, + { + "input": 35, + "name": "$35" + }, + { + "input": 36, + "name": "$36" + }, + { + "input": 37, + "name": "$37" + }, + { + "input": 38, + "name": "$38" + }, + { + "input": 39, + "name": "$39" + }, + { + "input": 40, + "name": "$40" + }, + { + "input": 41, + "name": "$41" + } + ], + "rowCount": 6855812760374390 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "w_warehouse_name", + "w_warehouse_sq_ft", + "w_city", + "w_county", + "w_state", + "w_country", + "ship_carriers", + "year", + "jan_sales", + "feb_sales", + "mar_sales", + "apr_sales", + "may_sales", + "jun_sales", + "jul_sales", + "aug_sales", + "sep_sales", + "oct_sales", + "nov_sales", + "dec_sales", + "jan_sales_per_sq_foot", + "feb_sales_per_sq_foot", + "mar_sales_per_sq_foot", + "apr_sales_per_sq_foot", + "may_sales_per_sq_foot", + "jun_sales_per_sq_foot", + "jul_sales_per_sq_foot", + "aug_sales_per_sq_foot", + "sep_sales_per_sq_foot", + "oct_sales_per_sq_foot", + "nov_sales_per_sq_foot", + "dec_sales_per_sq_foot", + "jan_net", + "feb_net", + "mar_net", + "apr_net", + "may_net", + "jun_net", + "jul_net", + "aug_net", + "sep_net", + "oct_net", + "nov_net", + "dec_net" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": "DIAMOND,AIRBORNE", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + } + ], + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 23, + "name": "$23" + }, + { + "input": 24, + "name": "$24" + }, + { + "input": 25, + "name": "$25" + }, + { + "input": 26, + "name": "$26" + }, + { + "input": 27, + "name": "$27" + }, + { + "input": 28, + "name": "$28" + }, + { + "input": 29, + "name": "$29" + }, + { + "input": 30, + "name": "$30" + }, + { + "input": 31, + "name": "$31" + }, + { + "input": 32, + "name": "$32" + }, + { + "input": 33, + "name": "$33" + }, + { + "input": 34, + "name": "$34" + }, + { + "input": 35, + "name": "$35" + }, + { + "input": 36, + "name": "$36" + }, + { + "input": 37, + "name": "$37" + }, + { + "input": 38, + "name": "$38" + }, + { + "input": 39, + "name": "$39" + }, + { + "input": 40, + "name": "$40" + }, + { + "input": 41, + "name": "$41" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query67.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query67.q.out new file mode 100644 index 000000000000..2a0069d509c8 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query67.q.out @@ -0,0 +1,2103 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_store_sk", + "ss_sold_date_sk", + "$f8" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 22, + "name": "$22" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + } + ] + } + ] + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 18, + "scale": 2 + } + } + ] + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_moy", + "d_qoy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 10, + "name": "$10" + } + ], + "rowCount": 18262.25 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.8308036953566934E14 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 1704 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "8" + ], + "rowCount": 46795342453317080 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_product_name", + "ndv": 461487 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand", + "i_class", + "i_category", + "i_product_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 21, + "name": "$21" + } + ], + "rowCount": 462000 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "11" + ], + "rowCount": 3.242917232014873E21 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5, + 6, + 7, + 9, + 11, + 12, + 13, + 14 + ], + "groups": [ + [ + 5, + 6, + 7, + 9, + 11, + 12, + 13, + 14 + ], + [ + 5, + 6, + 7, + 11, + 12, + 13, + 14 + ], + [ + 5, + 7, + 11, + 12, + 13, + 14 + ], + [ + 5, + 11, + 12, + 13, + 14 + ], + [ + 11, + 12, + 13, + 14 + ], + [ + 11, + 12, + 13 + ], + [ + 12, + 13 + ], + [ + 13 + ], + [] + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + } + ], + "rowCount": 2.9186255088133855E21 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_year", + "d_moy", + "d_qoy", + "s_store_id", + "i_brand", + "i_class", + "i_category", + "i_product_name", + "$f8" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 2.9186255088133855E21 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_category", + "i_class", + "i_brand", + "i_product_name", + "d_year", + "d_qoy", + "d_moy", + "s_store_id", + "sumsales", + "rank_window_0" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 8, + "name": "$8" + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "input": 6, + "name": "$6" + } + ], + "order": [ + { + "expr": { + "input": 8, + "name": "$8" + }, + "direction": "DESCENDING", + "null-direction": "FIRST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ], + "rowCount": 2.9186255088133855E21 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 1.4593127544066927E21 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "dw2.i_category", + "dw2.i_class", + "dw2.i_brand", + "dw2.i_product_name", + "dw2.d_year", + "dw2.d_qoy", + "dw2.d_moy", + "dw2.s_store_id", + "dw2.sumsales", + "dw2.rk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "rowCount": 1.4593127544066927E21 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 4, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 5, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 6, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 7, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 8, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 9, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query68.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query68.q.out new file mode 100644 index 000000000000..86634fe40265 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query68.q.out @@ -0,0 +1,2601 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "rowCount": 72000000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_addr_sk", + "c_first_name", + "c_last_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "rowCount": 72000000 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "current_addr", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_city" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 40000000 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "4" + ], + "rowCount": 432000000000000 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_city" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 40000000 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 4.872184949518012E10 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_hdemo_sk", + "ss_addr_sk", + "ss_store_sk", + "ss_ticket_number", + "ss_ext_sales_price", + "ss_ext_list_price", + "ss_ext_tax", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 4.872184949518012E10 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1998, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 4565.5625 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 4565.5625 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "13" + ], + "rowCount": 3.3366397347875746E13 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 22, + "name": "$22" + }, + { + "literal": "Cedar Grove", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 60 + } + }, + { + "literal": "Wildwood", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 60 + } + } + ] + }, + "rowCount": 426 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 426 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "14", + "17" + ], + "rowCount": 2132112790529260 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "household_demographics" + ], + "table:alias": "household_demographics", + "inputs": [], + "rowCount": 7200, + "avgRowSize": 183, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "hd_demo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "hd_income_band_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "hd_buy_potential" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_vehicle_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "hd_demo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "hd_dep_count", + "ndv": 10, + "minValue": 0, + "maxValue": 9 + }, + { + "name": "hd_vehicle_count", + "ndv": 6, + "minValue": -1, + "maxValue": 4 + }, + { + "name": "hd_income_band_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "hd_buy_potential", + "ndv": 6 + } + ] + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1800 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1800 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "18", + "21" + ], + "rowCount": 575670453442900224 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "7", + "22" + ], + "rowCount": 3.454022720657401E24 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1, + 2, + 4, + 6 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 8 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 9 + ], + "name": null + } + ], + "rowCount": 3.454022720657401E23 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_ticket_number", + "ss_customer_sk", + "bought_city", + "extended_price", + "list_price", + "extended_tax" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 3.454022720657401E23 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "<>", + "kind": "NOT_EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 8, + "name": "$8" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "25" + ], + "rowCount": 1.119103361492998E37 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_last_name", + "c_first_name", + "ca_city", + "bought_city", + "ss_ticket_number", + "extended_price", + "extended_tax", + "list_price" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 10, + "name": "$10" + } + ], + "rowCount": 1.119103361492998E37 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 4, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query69.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query69.q.out new file mode 100644 index 000000000000..3b413dc4a442 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query69.q.out @@ -0,0 +1,3339 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "c", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "rowCount": 6.480000000000001E7 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_cdemo_sk", + "c_current_addr_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 6.480000000000001E7 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "ca", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "CO", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "IL", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "MN", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + "rowCount": 10000000 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_state" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 10000000 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 9.720000000000002E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 8, + "name": "$8" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 2739.3375 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 2739.3375 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "12" + ], + "rowCount": 2.7462055430350402E13 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 2.7462055430350402E13 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "semi", + "inputs": [ + "6", + "14" + ], + "rowCount": 2.9524500000000005E12 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_bill_customer_sk", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 8, + "name": "$8" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "10" + ], + "rowCount": 2739.3375 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 2739.3375 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "18", + "20" + ], + "rowCount": 7.187332851629448E12 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "literalTrue", + "ws_bill_customer_sk" + ], + "exprs": [ + { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 7.187332851629448E12 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "15", + "22" + ], + "rowCount": 3.1830361316715143E24 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NULL", + "kind": "IS_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + "rowCount": 7.957590329178786E23 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_cdemo_sk", + "c_current_addr_sk", + "ca_address_sk", + "ca_state", + "literalTrue", + "ws_bill_customer_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 7.957590329178786E23 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_demographics" + ], + "table:alias": "customer_demographics", + "inputs": [], + "rowCount": 1920800, + "avgRowSize": 217, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cd_demo_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_gender" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_marital_status" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cd_education_status" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_purchase_estimate" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cd_credit_rating" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_employed_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_college_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cd_demo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cd_gender", + "ndv": 2 + }, + { + "name": "cd_marital_status", + "ndv": 5 + }, + { + "name": "cd_education_status", + "ndv": 7 + }, + { + "name": "cd_purchase_estimate", + "ndv": 20, + "minValue": 500, + "maxValue": 10000 + }, + { + "name": "cd_credit_rating", + "ndv": 4 + }, + { + "name": "cd_dep_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_employed_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_college_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + } + ] + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk", + "cd_gender", + "cd_marital_status", + "cd_education_status", + "cd_purchase_estimate", + "cd_credit_rating" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 1920800 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "25", + "27" + ], + "rowCount": 2.2927409256429917E29 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_cdemo_sk", + "c_current_addr_sk", + "ca_address_sk", + "ca_state", + "cd_demo_sk", + "cd_gender", + "cd_marital_status", + "cd_education_status", + "cd_purchase_estimate", + "cd_credit_rating", + "literalTrue", + "ws_bill_customer_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 2.2927409256429917E29 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_ship_customer_sk", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 8, + "name": "$8" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "10" + ], + "rowCount": 2739.3375 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 2739.3375 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "32", + "34" + ], + "rowCount": 1.431336920301817E13 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "literalTrue", + "cs_ship_customer_sk" + ], + "exprs": [ + { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1.431336920301817E13 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAntiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 14, + "name": "$14" + } + ] + }, + "joinType": "anti", + "inputs": [ + "29", + "36" + ], + "rowCount": 2.223098920026586E29 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 6, + 7, + 8, + 9, + 10 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 2.2230989200265857E28 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_gender", + "cd_marital_status", + "cd_education_status", + "cnt1", + "cd_purchase_estimate", + "cnt2", + "cd_credit_rating", + "cnt3" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 2.2230989200265857E28 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 4, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 6, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query7.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query7.q.out new file mode 100644 index 000000000000..478c496107de --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query7.q.out @@ -0,0 +1,2134 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.0150431475531006E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_cdemo_sk", + "ss_promo_sk", + "ss_quantity", + "ss_list_price", + "ss_sales_price", + "ss_coupon_amt", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.0150431475531006E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1998, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 9.886339954926145E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_demographics" + ], + "table:alias": "customer_demographics", + "inputs": [], + "rowCount": 1920800, + "avgRowSize": 217, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cd_demo_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_gender" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_marital_status" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cd_education_status" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_purchase_estimate" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cd_credit_rating" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_employed_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_college_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cd_demo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cd_gender", + "ndv": 2 + }, + { + "name": "cd_marital_status", + "ndv": 5 + }, + { + "name": "cd_education_status", + "ndv": 7 + }, + { + "name": "cd_purchase_estimate", + "ndv": 20, + "minValue": 500, + "maxValue": 10000 + }, + { + "name": "cd_credit_rating", + "ndv": 4 + }, + { + "name": "cd_dep_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_employed_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_college_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": "W", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": "F", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": "Primary ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 20 + } + } + ] + } + ] + }, + "rowCount": 6482.7 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6482.7 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 96135264038699568 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "promotion" + ], + "table:alias": "promotion", + "inputs": [], + "rowCount": 2300, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "p_promo_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "p_promo_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "p_start_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "p_end_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "p_item_sk" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 2, + "name": "p_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "p_response_target" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "p_promo_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_dmail" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_email" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_catalog" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_tv" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_radio" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_press" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_event" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_demo" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "p_channel_details" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "p_purpose" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_discount_active" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "p_promo_sk", + "ndv": 2365, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "p_channel_email", + "ndv": 2 + }, + { + "name": "p_channel_event", + "ndv": 2 + }, + { + "name": "p_promo_id", + "ndv": 2307 + }, + { + "name": "p_start_date_sk", + "ndv": 761, + "minValue": 2450096, + "maxValue": 2450915 + }, + { + "name": "p_end_date_sk", + "ndv": 736, + "minValue": 2450102, + "maxValue": 2450970 + }, + { + "name": "p_item_sk", + "ndv": 2252, + "minValue": 614, + "maxValue": 461932 + }, + { + "name": "p_cost", + "ndv": 1, + "minValue": 1000, + "maxValue": 1000 + }, + { + "name": "p_response_target", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "p_promo_name", + "ndv": 11 + }, + { + "name": "p_channel_dmail", + "ndv": 3 + }, + { + "name": "p_channel_catalog", + "ndv": 2 + }, + { + "name": "p_channel_tv", + "ndv": 2 + }, + { + "name": "p_channel_radio", + "ndv": 2 + }, + { + "name": "p_channel_press", + "ndv": 2 + }, + { + "name": "p_channel_demo", + "ndv": 2 + }, + { + "name": "p_channel_details", + "ndv": 2242 + }, + { + "name": "p_purpose", + "ndv": 2 + }, + { + "name": "p_discount_active", + "ndv": 2 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "literal": "N", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "N", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + } + ] + }, + "rowCount": 575 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "p_promo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 575 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "13" + ], + "rowCount": 8291666523337837568 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 462000 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "14", + "16" + ], + "rowCount": 5.746124900673121E23 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 12 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + } + ], + "rowCount": 5.746124900673121E22 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "agg1", + "agg2", + "agg3", + "agg4" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "rowCount": 5.746124900673121E22 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query70.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query70.q.out new file mode 100644 index 000000000000..cecf9df32207 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query70.q.out @@ -0,0 +1,2904 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_store_sk", + "ss_net_profit", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d1", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_month_seq" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 18262.25 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.8308036953566934E14 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 24, + "name": "$24" + } + ] + }, + "rowCount": 1533.6000000000001 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_county", + "s_state" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 23, + "name": "$23" + }, + { + "input": 24, + "name": "$24" + } + ], + "rowCount": 1533.6000000000001 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 42115808207985376 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_store_sk", + "ss_net_profit", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "15" + ], + "rowCount": 1.8308036953566934E14 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 24, + "name": "$24" + } + ] + }, + "rowCount": 1533.6000000000001 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_state" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 24, + "name": "$24" + } + ], + "rowCount": 1533.6000000000001 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "16", + "19" + ], + "rowCount": 42115808207985376 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 4.2115808207985375E15 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_state", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 4.2115808207985375E15 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "(tok_table_or_col s_state)", + "rank_window_0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "input": 0, + "name": "$0" + } + ], + "order": [ + { + "expr": { + "input": 1, + "name": "$1" + }, + "direction": "DESCENDING", + "null-direction": "FIRST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ], + "rowCount": 4.2115808207985375E15 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 2.1057904103992688E15 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_state" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 2.1057904103992688E15 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "semi", + "inputs": [ + "10", + "25" + ], + "rowCount": 3.8378030229526685E15 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2" + ], + "exprs": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 3.8378030229526685E15 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "groups": [ + [ + 0, + 1 + ], + [ + 0 + ], + [] + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "GROUPING__ID", + "kind": "OTHER", + "syntax": "FUNCTION" + }, + "type": { + "type": "BIGINT", + "nullable": false + }, + "distinct": false, + "operands": [], + "name": "GROUPING__ID" + } + ], + "rowCount": 1.1513409068858005E15 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "GROUPING__ID" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 1.1513409068858005E15 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "total_sum", + "s_state", + "s_county", + "lochierarchy", + "rank_within_parent", + "(tok_function when (= (tok_table_or_col lochierarchy) 0) (tok_table_or_col s_state))" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + } + ] + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "BIGINT", + "nullable": true + } + } + ] + }, + { + "input": 0, + "name": "$0" + }, + { + "literal": null, + "type": { + "type": "CHAR", + "nullable": true, + "precision": 2 + } + } + ] + } + ], + "order": [ + { + "expr": { + "input": 2, + "name": "$2" + }, + "direction": "DESCENDING", + "null-direction": "FIRST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + } + ] + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "input": 0, + "name": "$0" + }, + { + "literal": null, + "type": { + "type": "CHAR", + "nullable": true, + "precision": 2 + } + } + ] + } + ], + "rowCount": 1.1513409068858005E15 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 3, + "direction": "DESCENDING", + "nulls": "FIRST" + }, + { + "field": 5, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 4, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "total_sum", + "s_state", + "s_county", + "lochierarchy", + "rank_within_parent" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query71.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query71.q.out new file mode 100644 index 000000000000..c27cda4031a3 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query71.q.out @@ -0,0 +1,2969 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_sold_time_sk", + "ws_item_sk", + "ws_ext_sales_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 4.312399710977669E12 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ext_price", + "sold_item_sk", + "time_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 4.312399710977669E12 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_sold_time_sk", + "cs_item_sk", + "cs_ext_sales_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1643.6025 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "12" + ], + "rowCount": 8.5880215218109E12 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ext_price", + "sold_item_sk", + "time_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 8.5880215218109E12 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_sold_time_sk", + "ss_item_sk", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1643.6025 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "17", + "19" + ], + "rowCount": 1.647723325821024E13 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ext_price", + "sold_item_sk", + "time_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1.647723325821024E13 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "7", + "14", + "21" + ], + "rowCount": 2.9377654490998812E13 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ext_price", + "sold_item_sk", + "time_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 2.9377654490998812E13 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 20, + "name": "$20" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 69300 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_brand" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 69300 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "23", + "26" + ], + "rowCount": 305380718433932672 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "time_dim" + ], + "table:alias": "time_dim", + "inputs": [], + "rowCount": 86400, + "avgRowSize": 377, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "t_time_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "t_time_id" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_time" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_hour" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_minute" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_second" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "t_am_pm" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "t_shift" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "t_sub_shift" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "t_meal_time" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "t_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "t_hour", + "ndv": 24, + "minValue": 0, + "maxValue": 23 + }, + { + "name": "t_minute", + "ndv": 62, + "minValue": 0, + "maxValue": 59 + }, + { + "name": "t_meal_time", + "ndv": 4 + }, + { + "name": "t_time_id", + "ndv": 87002 + }, + { + "name": "t_time", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "t_second", + "ndv": 62, + "minValue": 0, + "maxValue": 59 + }, + { + "name": "t_am_pm", + "ndv": 2 + }, + { + "name": "t_shift", + "ndv": 3 + }, + { + "name": "t_sub_shift", + "ndv": 4 + } + ] + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "literal": "breakfast", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + }, + { + "literal": "dinner", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + }, + "rowCount": 21600 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "t_time_sk", + "t_hour", + "t_minute" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 21600 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "27", + "30" + ], + "rowCount": 9.894335277259417E20 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 4, + 5, + 7, + 8 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 0 + ], + "name": null + } + ], + "rowCount": 9.894335277259417E19 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "brand_id", + "brand", + "t_hour", + "t_minute", + "ext_price", + "(tok_table_or_col i_brand_id)" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 9.894335277259417E19 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 4, + "direction": "DESCENDING", + "nulls": "FIRST" + }, + { + "field": 5, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "rowCount": 9.894335277259417E19 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "brand_id", + "brand", + "t_hour", + "t_minute", + "ext_price" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 9.894335277259417E19 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query72.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query72.q.out new file mode 100644 index 000000000000..6085a1a1c228 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query72.q.out @@ -0,0 +1,4275 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "inventory" + ], + "table:alias": "inventory", + "inputs": [], + "rowCount": 1627857000, + "avgRowSize": 157, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "inv_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "inv_item_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "inv_warehouse_sk" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "inv_quantity_on_hand" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "inv_date_sk", + "ndv": 258, + "minValue": 2450815, + "maxValue": 2452635 + }, + { + "name": "inv_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "inv_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "inv_quantity_on_hand", + "ndv": 987, + "minValue": 0, + "maxValue": 1000 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + "rowCount": 1465071300 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "inv_date_sk", + "inv_item_sk", + "inv_warehouse_sk", + "inv_quantity_on_hand" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 1465071300 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 17, + "name": "$17" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 2.5394086828172256E10 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_ship_date_sk", + "cs_bill_cdemo_sk", + "cs_bill_hdemo_sk", + "cs_item_sk", + "cs_promo_sk", + "cs_order_number", + "cs_quantity", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 2.5394086828172256E10 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "household_demographics" + ], + "table:alias": "household_demographics", + "inputs": [], + "rowCount": 7200, + "avgRowSize": 183, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "hd_demo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "hd_income_band_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "hd_buy_potential" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_vehicle_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "hd_demo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "hd_buy_potential", + "ndv": 6 + }, + { + "name": "hd_income_band_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "hd_dep_count", + "ndv": 10, + "minValue": 0, + "maxValue": 9 + }, + { + "name": "hd_vehicle_count", + "ndv": 6, + "minValue": -1, + "maxValue": 4 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": "1001-5000 ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 15 + } + } + ] + }, + "rowCount": 1080 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1080 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "8" + ], + "rowCount": 4.1138420661639053E12 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_demographics" + ], + "table:alias": "customer_demographics", + "inputs": [], + "rowCount": 1920800, + "avgRowSize": 217, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cd_demo_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_gender" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_marital_status" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cd_education_status" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_purchase_estimate" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cd_credit_rating" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_employed_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_college_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cd_demo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cd_marital_status", + "ndv": 5 + }, + { + "name": "cd_gender", + "ndv": 2 + }, + { + "name": "cd_education_status", + "ndv": 7 + }, + { + "name": "cd_purchase_estimate", + "ndv": 20, + "minValue": 500, + "maxValue": 10000 + }, + { + "name": "cd_credit_rating", + "ndv": 4 + }, + { + "name": "cd_dep_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_employed_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_college_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": "M", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + "rowCount": 288120 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 288120 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "12" + ], + "rowCount": 177792026415471648 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d2", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "rowCount": 65744.1 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_week_seq" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 65744.1 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d1", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "rowCount": 8875.453500000001 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_week_seq", + "EXPR$0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "rowCount": 8875.453500000001 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "16", + "19" + ], + "rowCount": 8.752630536740251E7 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_week_seq", + "d_date_sk0", + "d_week_seq0", + "EXPR$0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 8.752630536740251E7 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 12, + "name": "$12" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "13", + "21" + ], + "rowCount": 2.3342218793894795E24 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 14, + "name": "$14" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "op": { + "name": "<", + "kind": "LESS_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 10, + "name": "$10" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "22" + ], + "rowCount": 3.8472766687412865E31 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "promotion" + ], + "table:alias": "promotion", + "inputs": [], + "rowCount": 2300, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "p_promo_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "p_promo_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "p_start_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "p_end_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "p_item_sk" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 2, + "name": "p_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "p_response_target" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "p_promo_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_dmail" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_email" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_catalog" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_tv" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_radio" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_press" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_event" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_demo" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "p_channel_details" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "p_purpose" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_discount_active" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "p_promo_sk", + "ndv": 2365, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "p_promo_id", + "ndv": 2307 + }, + { + "name": "p_start_date_sk", + "ndv": 761, + "minValue": 2450096, + "maxValue": 2450915 + }, + { + "name": "p_end_date_sk", + "ndv": 736, + "minValue": 2450102, + "maxValue": 2450970 + }, + { + "name": "p_item_sk", + "ndv": 2252, + "minValue": 614, + "maxValue": 461932 + }, + { + "name": "p_cost", + "ndv": 1, + "minValue": 1000, + "maxValue": 1000 + }, + { + "name": "p_response_target", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "p_promo_name", + "ndv": 11 + }, + { + "name": "p_channel_dmail", + "ndv": 3 + }, + { + "name": "p_channel_email", + "ndv": 2 + }, + { + "name": "p_channel_catalog", + "ndv": 2 + }, + { + "name": "p_channel_tv", + "ndv": 2 + }, + { + "name": "p_channel_radio", + "ndv": 2 + }, + { + "name": "p_channel_press", + "ndv": 2 + }, + { + "name": "p_channel_event", + "ndv": 2 + }, + { + "name": "p_channel_demo", + "ndv": 2 + }, + { + "name": "p_channel_details", + "ndv": 2242 + }, + { + "name": "p_purpose", + "ndv": 2 + }, + { + "name": "p_discount_active", + "ndv": 2 + } + ] + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "p_promo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 2300 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 19, + "name": "$19" + } + ] + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "23", + "25" + ], + "rowCount": 1.3305806358841739E34 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d3", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + "rowCount": 65744.1 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 65744.1 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 20, + "name": "$20" + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 21, + "name": "$21" + }, + { + "input": 18, + "name": "$18" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "26", + "29" + ], + "rowCount": 6.560836978772454E37 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_ship_date_sk", + "cs_bill_cdemo_sk", + "cs_bill_hdemo_sk", + "cs_item_sk", + "cs_promo_sk", + "cs_order_number", + "cs_quantity", + "cs_sold_date_sk", + "inv_date_sk", + "inv_item_sk", + "inv_warehouse_sk", + "inv_quantity_on_hand", + "cd_demo_sk", + "hd_demo_sk", + "d_date_sk", + "d_week_seq", + "EXPR$0", + "d_date_sk0", + "d_week_seq0", + "d_date_sk1", + "d_date", + "p_promo_sk" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 19, + "name": "$19" + } + ], + "rowCount": 6.560836978772454E37 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_returns" + ], + "table:alias": "catalog_returns", + "inputs": [], + "rowCount": 4320980099, + "avgRowSize": 305, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amount" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cr_returned_date_sk" + ], + "colStats": [ + { + "name": "cr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cr_order_number", + "ndv": 2681654419, + "minValue": 2, + "maxValue": 4800000000 + }, + { + "name": "cr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_returning_customer_sk", + "ndv": 77511828, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cr_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cr_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cr_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "cr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cr_return_amount", + "ndv": 973170, + "minValue": 0, + "maxValue": 28805.04 + }, + { + "name": "cr_return_tax", + "ndv": 169232, + "minValue": 0, + "maxValue": 2511.58 + }, + { + "name": "cr_return_amt_inc_tax", + "ndv": 1689965, + "minValue": 0, + "maxValue": 30891.32 + }, + { + "name": "cr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "cr_return_ship_cost", + "ndv": 501353, + "minValue": 0, + "maxValue": 14273.28 + }, + { + "name": "cr_refunded_cash", + "ndv": 1257293, + "minValue": 0, + "maxValue": 26955.24 + }, + { + "name": "cr_reversed_charge", + "ndv": 895564, + "minValue": 0, + "maxValue": 24033.84 + }, + { + "name": "cr_store_credit", + "ndv": 906118, + "minValue": 0, + "maxValue": 24886.13 + }, + { + "name": "cr_net_loss", + "ndv": 996464, + "minValue": 0.5, + "maxValue": 16346.37 + }, + { + "name": "cr_returned_date_sk", + "ndv": 2104, + "minValue": 2450821, + "maxValue": 2452924 + } + ] + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cr_item_sk", + "cr_order_number" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 15, + "name": "$15" + } + ], + "rowCount": 4320980099 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 22, + "name": "$22" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 23, + "name": "$23" + }, + { + "input": 5, + "name": "$5" + } + ] + } + ] + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "31", + "33" + ], + "rowCount": 6.37858041819547E45 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "warehouse" + ], + "table:alias": "warehouse", + "inputs": [], + "rowCount": 27, + "avgRowSize": 679, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "w_warehouse_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "w_warehouse_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "w_warehouse_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "w_warehouse_sq_ft" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "w_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "w_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "w_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "w_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "w_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "w_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "w_gmt_offset" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "w_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "w_warehouse_name", + "ndv": 27 + }, + { + "name": "w_warehouse_id", + "ndv": 27 + }, + { + "name": "w_warehouse_sq_ft", + "ndv": 26, + "minValue": 73065, + "maxValue": 977787 + }, + { + "name": "w_street_number", + "ndv": 26 + }, + { + "name": "w_street_name", + "ndv": 27 + }, + { + "name": "w_street_type", + "ndv": 16 + }, + { + "name": "w_suite_number", + "ndv": 21 + }, + { + "name": "w_city", + "ndv": 18 + }, + { + "name": "w_county", + "ndv": 14 + }, + { + "name": "w_state", + "ndv": 12 + }, + { + "name": "w_zip", + "ndv": 24 + }, + { + "name": "w_country", + "ndv": 1 + }, + { + "name": "w_gmt_offset", + "ndv": 4, + "minValue": -8, + "maxValue": -5 + } + ] + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "w_warehouse_sk", + "w_warehouse_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 27 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 24, + "name": "$24" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "34", + "36" + ], + "rowCount": 2.5833250693691657E46 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_desc" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 462000 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 26, + "name": "$26" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "37", + "39" + ], + "rowCount": 1.7902442730728318E51 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 27, + "name": "$27" + }, + { + "input": 25, + "name": "$25" + }, + { + "input": 15, + "name": "$15" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NULL", + "kind": "IS_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 21, + "name": "$21" + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 21, + "name": "$21" + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "rowCount": 1.7902442730728318E51 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1.7902442730728318E50 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_desc", + "w_warehouse_name", + "d1.d_week_seq", + "no_promo", + "promo", + "total_cnt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 1.7902442730728318E50 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 5, + "direction": "DESCENDING", + "nulls": "FIRST" + }, + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query73.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query73.q.out new file mode 100644 index 000000000000..ef77eb5759f7 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query73.q.out @@ -0,0 +1,2157 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_salutation", + "c_first_name", + "c_last_name", + "c_preferred_cust_flag" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + } + ], + "rowCount": 80000000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 5.413538832797791E10 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_hdemo_sk", + "ss_store_sk", + "ss_ticket_number", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 5.413538832797791E10 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 4565.5625 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 4565.5625 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "4", + "7" + ], + "rowCount": 3.707377483097305E13 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "household_demographics" + ], + "table:alias": "household_demographics", + "inputs": [], + "rowCount": 7200, + "avgRowSize": 183, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "hd_demo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "hd_income_band_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "hd_buy_potential" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_vehicle_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "hd_demo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "hd_buy_potential", + "ndv": 6 + }, + { + "name": "hd_dep_count", + "ndv": 10, + "minValue": 0, + "maxValue": 9 + }, + { + "name": "hd_vehicle_count", + "ndv": 6, + "minValue": -1, + "maxValue": 4 + }, + { + "name": "hd_income_band_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + } + ] + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": ">10000", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + }, + { + "literal": "unknown", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + } + ] + }, + { + "literal": 1, + "type": { + "type": "DOUBLE", + "nullable": false + } + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 225 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 225 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "8", + "11" + ], + "rowCount": 1.2512399005453402E15 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 23, + "name": "$23" + }, + { + "literal": "Huron County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + }, + { + "literal": "Kittitas County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + }, + { + "literal": "Maverick County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + }, + { + "literal": "Mobile County", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 30 + } + } + ] + }, + "rowCount": 426 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 426 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "15" + ], + "rowCount": 79954229644847232 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 3 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 7995422964484723 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_ticket_number", + "ss_customer_sk", + "$f2" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 7995422964484723 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 2, + "name": "$2" + }, + { + "literal": 1, + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "literal": 5, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + "rowCount": 1.9988557411211808E15 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_ticket_number", + "ss_customer_sk", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.9988557411211808E15 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "20" + ], + "rowCount": 2.398626889345417E22 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_last_name", + "c_first_name", + "c_salutation", + "c_preferred_cust_flag", + "ss_ticket_number", + "cnt" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 2.398626889345417E22 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 5, + "direction": "DESCENDING", + "nulls": "FIRST" + } + ], + "rowCount": 2.398626889345417E22 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query74.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query74.q.out new file mode 100644 index 000000000000..2f588d5d2a1e --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query74.q.out @@ -0,0 +1,2720 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_net_paid", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.0984822172140161E14 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_customer_id", + "c_first_name", + "c_last_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "rowCount": 80000000 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "8" + ], + "rowCount": 1.3181786606568192E21 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5, + 6, + 7 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_id", + "c_first_name", + "c_last_name", + "$f3" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 80000000 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_net_paid", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1998, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 10957.35 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "13", + "15" + ], + "rowCount": 1.0984822172140161E14 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_customer_id", + "c_first_name", + "c_last_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "inputs": [ + "7" + ], + "rowCount": 80000000 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "16", + "17" + ], + "rowCount": 1.3181786606568192E21 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "rowCount": 40000000 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "customer_id", + "year_total", + "EXPR$0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + } + ], + "rowCount": 40000000 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "11", + "21" + ], + "rowCount": 480000000000000 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_bill_customer_sk", + "ws_net_paid", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 28, + "name": "$28" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 10957.35 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "25", + "27" + ], + "rowCount": 2.8749331406517793E13 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_customer_id", + "c_first_name", + "c_last_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "inputs": [ + "7" + ], + "rowCount": 80000000 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "28", + "29" + ], + "rowCount": 3.449919768782135E20 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 80000000 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "22", + "32" + ], + "rowCount": 5.76E21 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "inputs": [ + "23" + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_bill_customer_sk", + "ws_net_paid", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 28, + "name": "$28" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1998, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 10957.35 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "35", + "37" + ], + "rowCount": 2.8749331406517793E13 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_customer_id", + "c_first_name", + "c_last_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "inputs": [ + "7" + ], + "rowCount": 80000000 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "38", + "39" + ], + "rowCount": 3.449919768782135E20 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "rowCount": 40000000 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "customer_id", + "year_total", + "EXPR$1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + } + ], + "rowCount": 40000000 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 5, + "name": "$5" + } + ] + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "33", + "43" + ], + "rowCount": 8.639999999999999E27 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "t_s_secyear.customer_id", + "t_s_secyear.customer_first_name", + "t_s_secyear.customer_last_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 8.639999999999999E27 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query75.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query75.q.out new file mode 100644 index 000000000000..1716905ee9bc --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query75.q.out @@ -0,0 +1,6764 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_returns" + ], + "table:alias": "catalog_returns", + "inputs": [], + "rowCount": 4320980099, + "avgRowSize": 305, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amount" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cr_returned_date_sk" + ], + "colStats": [ + { + "name": "cr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cr_order_number", + "ndv": 2681654419, + "minValue": 2, + "maxValue": 4800000000 + }, + { + "name": "cr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cr_return_amount", + "ndv": 973170, + "minValue": 0, + "maxValue": 28805.04 + }, + { + "name": "cr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_returning_customer_sk", + "ndv": 77511828, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cr_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cr_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cr_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "cr_return_tax", + "ndv": 169232, + "minValue": 0, + "maxValue": 2511.58 + }, + { + "name": "cr_return_amt_inc_tax", + "ndv": 1689965, + "minValue": 0, + "maxValue": 30891.32 + }, + { + "name": "cr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "cr_return_ship_cost", + "ndv": 501353, + "minValue": 0, + "maxValue": 14273.28 + }, + { + "name": "cr_refunded_cash", + "ndv": 1257293, + "minValue": 0, + "maxValue": 26955.24 + }, + { + "name": "cr_reversed_charge", + "ndv": 895564, + "minValue": 0, + "maxValue": 24033.84 + }, + { + "name": "cr_store_credit", + "ndv": 906118, + "minValue": 0, + "maxValue": 24886.13 + }, + { + "name": "cr_net_loss", + "ndv": 996464, + "minValue": 0.5, + "maxValue": 16346.37 + }, + { + "name": "cr_returned_date_sk", + "ndv": 2104, + "minValue": 2450821, + "maxValue": 2452924 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cr_item_sk", + "cr_order_number", + "cr_return_quantity", + "cr_return_amount" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + } + ], + "rowCount": 4320980099 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "rowCount": 3.87045981225E10 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_item_sk", + "cs_order_number", + "cs_quantity", + "cs_ext_sales_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.87045981225E10 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "4", + "7" + ], + "rowCount": 6.3614974235636305E13 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Sports ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "rowCount": 45467.73000000001 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 13, + "name": "$13" + } + ], + "rowCount": 45467.73000000001 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "8", + "11" + ], + "rowCount": 433864270875430272 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "joinType": "right", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "12" + ], + "rowCount": 4.218117522679961E25 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id", + "sales_cnt", + "sales_amt" + ], + "exprs": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "input": 2, + "name": "$2" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + } + ] + } + ], + "rowCount": 4.218117522679961E25 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_returns" + ], + "table:alias": "store_returns", + "inputs": [], + "rowCount": 8634166995, + "avgRowSize": 249, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "sr_return_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "sr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "sr_returned_date_sk" + ], + "colStats": [ + { + "name": "sr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "sr_ticket_number", + "ndv": 5114579988, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "sr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "sr_return_amt", + "ndv": 715216, + "minValue": 0, + "maxValue": 19643 + }, + { + "name": "sr_return_time_sk", + "ndv": 32389, + "minValue": 28799, + "maxValue": 61199 + }, + { + "name": "sr_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "sr_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "sr_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "sr_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "sr_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "sr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "sr_return_tax", + "ndv": 141365, + "minValue": 0, + "maxValue": 1714.37 + }, + { + "name": "sr_return_amt_inc_tax", + "ndv": 1520430, + "minValue": 0, + "maxValue": 21018.01 + }, + { + "name": "sr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "sr_return_ship_cost", + "ndv": 363000, + "minValue": 0, + "maxValue": 9975 + }, + { + "name": "sr_refunded_cash", + "ndv": 1187970, + "minValue": 0, + "maxValue": 18413.33 + }, + { + "name": "sr_reversed_charge", + "ndv": 926355, + "minValue": 0, + "maxValue": 18104.5 + }, + { + "name": "sr_store_credit", + "ndv": 937950, + "minValue": 0, + "maxValue": 17792.48 + }, + { + "name": "sr_net_loss", + "ndv": 851834, + "minValue": 0.5, + "maxValue": 11008.17 + }, + { + "name": "sr_returned_date_sk", + "ndv": 2004, + "minValue": 2450820, + "maxValue": 2452822 + } + ] + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_item_sk", + "sr_ticket_number", + "sr_return_quantity", + "sr_return_amt" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + } + ], + "rowCount": 8634166995 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + }, + "rowCount": 7.42597919451E10 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_ticket_number", + "ss_quantity", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "5" + ], + "rowCount": 10957.35 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "19", + "21" + ], + "rowCount": 1.2205357969044623E14 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Sports ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "inputs": [ + "9" + ], + "rowCount": 45467.73000000001 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 13, + "name": "$13" + } + ], + "rowCount": 45467.73000000001 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "22", + "24" + ], + "rowCount": 832424881034804096 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "joinType": "right", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "16", + "25" + ], + "rowCount": 1.6171414807076423E26 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id", + "sales_cnt", + "sales_amt" + ], + "exprs": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "input": 2, + "name": "$2" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + } + ] + } + ], + "rowCount": 1.6171414807076423E26 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "14", + "27" + ], + "rowCount": 2.0389532329756385E26 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id", + "sales_cnt", + "sales_amt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 2.0389532329756385E26 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2, + 3, + 4, + 5 + ], + "aggs": [], + "rowCount": 2.0389532329756385E25 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id", + "sales_cnt", + "sales_amt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 2.0389532329756385E25 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_returns" + ], + "table:alias": "web_returns", + "inputs": [], + "rowCount": 2160007345, + "avgRowSize": 281, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "wr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_account_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "wr_returned_date_sk" + ], + "colStats": [ + { + "name": "wr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "wr_order_number", + "ndv": 1317116406, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "wr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "wr_return_amt", + "ndv": 1108704, + "minValue": 0, + "maxValue": 29191 + }, + { + "name": "wr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "wr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_returning_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "wr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "wr_return_tax", + "ndv": 198904, + "minValue": 0, + "maxValue": 2620.34 + }, + { + "name": "wr_return_amt_inc_tax", + "ndv": 2111617, + "minValue": 0, + "maxValue": 31735.25 + }, + { + "name": "wr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "wr_return_ship_cost", + "ndv": 553061, + "minValue": 0, + "maxValue": 14624 + }, + { + "name": "wr_refunded_cash", + "ndv": 1631618, + "minValue": 0, + "maxValue": 28085.82 + }, + { + "name": "wr_reversed_charge", + "ndv": 1277260, + "minValue": 0, + "maxValue": 26135.99 + }, + { + "name": "wr_account_credit", + "ndv": 1249055, + "minValue": 0, + "maxValue": 24649.69 + }, + { + "name": "wr_net_loss", + "ndv": 1227508, + "minValue": 0.5, + "maxValue": 16733.32 + }, + { + "name": "wr_returned_date_sk", + "ndv": 2185, + "minValue": 2450819, + "maxValue": 2453002 + } + ] + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wr_item_sk", + "wr_order_number", + "wr_return_quantity", + "wr_return_amt" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + } + ], + "rowCount": 2160007345 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "rowCount": 1.94351746014E10 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_order_number", + "ws_quantity", + "ws_ext_sales_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.94351746014E10 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "5" + ], + "rowCount": 10957.35 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "36", + "38" + ], + "rowCount": 3.1943701562797547E13 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Sports ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "inputs": [ + "9" + ], + "rowCount": 45467.73000000001 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 13, + "name": "$13" + } + ], + "rowCount": 45467.73000000001 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "39", + "41" + ], + "rowCount": 217861139678678592 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "joinType": "right", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "33", + "42" + ], + "rowCount": 1.058808760561964E25 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id", + "sales_cnt", + "sales_amt" + ], + "exprs": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "input": 2, + "name": "$2" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + } + ] + } + ], + "rowCount": 1.058808760561964E25 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "31", + "44" + ], + "rowCount": 3.0977619935376024E25 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id", + "sales_cnt", + "sales_amt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 3.0977619935376024E25 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2, + 3, + 4, + 5 + ], + "aggs": [], + "rowCount": 3.097761993537602E24 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id", + "sales_cnt", + "sales_amt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 3.097761993537602E24 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2, + 3 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 18, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + } + ], + "rowCount": 3.097761993537602E23 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id", + "$f4", + "$f5" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 3.097761993537602E23 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cr_item_sk", + "cr_order_number", + "cr_return_quantity", + "cr_return_amount" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + } + ], + "inputs": [ + "0" + ], + "rowCount": 4320980099 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "inputs": [ + "2" + ], + "rowCount": 3.87045981225E10 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_item_sk", + "cs_order_number", + "cs_quantity", + "cs_ext_sales_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.87045981225E10 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "5" + ], + "rowCount": 10957.35 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "53", + "55" + ], + "rowCount": 6.3614974235636305E13 + }, + { + "id": "57", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Sports ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "inputs": [ + "9" + ], + "rowCount": 45467.73000000001 + }, + { + "id": "58", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 13, + "name": "$13" + } + ], + "rowCount": 45467.73000000001 + }, + { + "id": "59", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "56", + "58" + ], + "rowCount": 433864270875430272 + }, + { + "id": "60", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "joinType": "right", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "51", + "59" + ], + "rowCount": 4.218117522679961E25 + }, + { + "id": "61", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id", + "sales_cnt", + "sales_amt" + ], + "exprs": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "input": 2, + "name": "$2" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + } + ] + } + ], + "rowCount": 4.218117522679961E25 + }, + { + "id": "62", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_item_sk", + "sr_ticket_number", + "sr_return_quantity", + "sr_return_amt" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + } + ], + "inputs": [ + "15" + ], + "rowCount": 8634166995 + }, + { + "id": "63", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + }, + "inputs": [ + "17" + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "64", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_ticket_number", + "ss_quantity", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "65", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "5" + ], + "rowCount": 10957.35 + }, + { + "id": "66", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "67", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "64", + "66" + ], + "rowCount": 1.2205357969044623E14 + }, + { + "id": "68", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Sports ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "inputs": [ + "9" + ], + "rowCount": 45467.73000000001 + }, + { + "id": "69", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 13, + "name": "$13" + } + ], + "rowCount": 45467.73000000001 + }, + { + "id": "70", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "67", + "69" + ], + "rowCount": 832424881034804096 + }, + { + "id": "71", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "joinType": "right", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "62", + "70" + ], + "rowCount": 1.6171414807076423E26 + }, + { + "id": "72", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id", + "sales_cnt", + "sales_amt" + ], + "exprs": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "input": 2, + "name": "$2" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + } + ] + } + ], + "rowCount": 1.6171414807076423E26 + }, + { + "id": "73", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "61", + "72" + ], + "rowCount": 2.0389532329756385E26 + }, + { + "id": "74", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id", + "sales_cnt", + "sales_amt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 2.0389532329756385E26 + }, + { + "id": "75", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2, + 3, + 4, + 5 + ], + "aggs": [], + "rowCount": 2.0389532329756385E25 + }, + { + "id": "76", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id", + "sales_cnt", + "sales_amt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 2.0389532329756385E25 + }, + { + "id": "77", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wr_item_sk", + "wr_order_number", + "wr_return_quantity", + "wr_return_amt" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + } + ], + "inputs": [ + "32" + ], + "rowCount": 2160007345 + }, + { + "id": "78", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "inputs": [ + "34" + ], + "rowCount": 1.94351746014E10 + }, + { + "id": "79", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_order_number", + "ws_quantity", + "ws_ext_sales_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.94351746014E10 + }, + { + "id": "80", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "5" + ], + "rowCount": 10957.35 + }, + { + "id": "81", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "82", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "79", + "81" + ], + "rowCount": 3.1943701562797547E13 + }, + { + "id": "83", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Sports ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "inputs": [ + "9" + ], + "rowCount": 45467.73000000001 + }, + { + "id": "84", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 13, + "name": "$13" + } + ], + "rowCount": 45467.73000000001 + }, + { + "id": "85", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "82", + "84" + ], + "rowCount": 217861139678678592 + }, + { + "id": "86", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "joinType": "right", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "77", + "85" + ], + "rowCount": 1.058808760561964E25 + }, + { + "id": "87", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id", + "sales_cnt", + "sales_amt" + ], + "exprs": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "input": 2, + "name": "$2" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + } + ] + } + ], + "rowCount": 1.058808760561964E25 + }, + { + "id": "88", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "76", + "87" + ], + "rowCount": 3.0977619935376024E25 + }, + { + "id": "89", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id", + "sales_cnt", + "sales_amt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 3.0977619935376024E25 + }, + { + "id": "90", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2, + 3, + 4, + 5 + ], + "aggs": [], + "rowCount": 3.097761993537602E24 + }, + { + "id": "91", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id", + "sales_cnt", + "sales_amt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 3.097761993537602E24 + }, + { + "id": "92", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2, + 3 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 18, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + } + ], + "rowCount": 3.097761993537602E23 + }, + { + "id": "93", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id", + "$f4", + "$f5" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 3.097761993537602E23 + }, + { + "id": "94", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "<", + "kind": "LESS_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + } + } + ] + }, + { + "literal": 0.9, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 1 + } + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "50", + "93" + ], + "rowCount": 2.4290202464284087E43 + }, + { + "id": "95", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand_id", + "i_class_id", + "i_category_id", + "i_manufact_id", + "prev_yr_cnt", + "curr_yr_cnt", + "sales_cnt_diff", + "sales_amt_diff" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 10, + "name": "$10" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 5, + "name": "$5" + } + ] + } + ], + "rowCount": 2.4290202464284087E43 + }, + { + "id": "96", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 6, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "97", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "prev_year", + "year", + "curr_yr.i_brand_id", + "curr_yr.i_class_id", + "curr_yr.i_category_id", + "curr_yr.i_manufact_id", + "prev_yr_cnt", + "curr_yr_cnt", + "sales_cnt_diff", + "sales_amt_diff" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2001, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query76.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query76.q.out new file mode 100644 index 000000000000..62726c8edf59 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query76.q.out @@ -0,0 +1,2738 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_qoy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 10, + "name": "$10" + } + ], + "rowCount": 73049 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NULL", + "kind": "IS_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 1.8564947986275E10 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 1.8564947986275E10 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "4" + ], + "rowCount": 2.0342263281741038E14 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_category" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 462000 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "7" + ], + "rowCount": 1.4097188454246537E19 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "col_name", + "d_year", + "d_qoy", + "i_category", + "ext_sales_price" + ], + "exprs": [ + { + "literal": "store", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "ss_addr_sk", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 1.4097188454246537E19 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NULL", + "kind": "IS_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 4.85879365035E9 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_ext_sales_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 4.85879365035E9 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_qoy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 10, + "name": "$10" + } + ], + "inputs": [ + "0" + ], + "rowCount": 73049 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "13" + ], + "rowCount": 5.323950260466258E13 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_category" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 12, + "name": "$12" + } + ], + "inputs": [ + "6" + ], + "rowCount": 462000 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "14", + "15" + ], + "rowCount": 3689497530503116800 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "col_name", + "d_year", + "d_qoy", + "i_category", + "ext_sales_price" + ], + "exprs": [ + { + "literal": "web", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "ws_web_page_sk", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 3689497530503116800 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NULL", + "kind": "IS_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 9.676149530625E9 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_item_sk", + "cs_ext_sales_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 9.676149530625E9 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_year", + "d_qoy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 10, + "name": "$10" + } + ], + "inputs": [ + "0" + ], + "rowCount": 73049 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "20", + "21" + ], + "rowCount": 1.0602495705939384E14 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_category" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 12, + "name": "$12" + } + ], + "inputs": [ + "6" + ], + "rowCount": 462000 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "22", + "23" + ], + "rowCount": 7347529524215993344 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "col_name", + "d_year", + "d_qoy", + "i_category", + "ext_sales_price" + ], + "exprs": [ + { + "literal": "catalog", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "cs_warehouse_sk", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 7347529524215993344 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "9", + "17", + "25" + ], + "rowCount": 2.5134215508965646E19 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "col_name", + "d_year", + "d_qoy", + "i_category", + "ext_sales_price" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 2.5134215508965646E19 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2, + 3, + 4 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + } + ], + "rowCount": 2513421550896564736 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "col_name", + "d_year", + "d_qoy", + "i_category", + "sales_cnt", + "sales_amt" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 2513421550896564736 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 4, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query77.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query77.q.out new file mode 100644 index 000000000000..cffd523483c8 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query77.q.out @@ -0,0 +1,4695 @@ +Warning: Map Join MAPJOIN[213][bigTable=?] in task 'Reducer 9' is a cross product +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_store_sk", + "ss_ext_sales_price", + "ss_net_profit", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 902188800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 904780800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.8308036953566934E14 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_store_sk", + "ss_ext_sales_price", + "ss_net_profit" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ], + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.8308036953566934E14 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 1.8308036953566934E13 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_store_sk", + "$f1", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.8308036953566934E13 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_returns" + ], + "table:alias": "store_returns", + "inputs": [], + "rowCount": 8332595709, + "avgRowSize": 249, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "sr_return_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "sr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "sr_returned_date_sk" + ], + "colStats": [ + { + "name": "sr_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "sr_return_amt", + "ndv": 715216, + "minValue": 0, + "maxValue": 19643 + }, + { + "name": "sr_net_loss", + "ndv": 848797, + "minValue": 0.5, + "maxValue": 11008.17 + }, + { + "name": "sr_returned_date_sk", + "ndv": 2003, + "minValue": 2450820, + "maxValue": 2452822 + }, + { + "name": "sr_return_time_sk", + "ndv": 32389, + "minValue": 28799, + "maxValue": 61199 + }, + { + "name": "sr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "sr_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "sr_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "sr_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "sr_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "sr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "sr_ticket_number", + "ndv": 5065526774, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "sr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "sr_return_tax", + "ndv": 141365, + "minValue": 0, + "maxValue": 1714.37 + }, + { + "name": "sr_return_amt_inc_tax", + "ndv": 1520430, + "minValue": 0, + "maxValue": 21018.01 + }, + { + "name": "sr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "sr_return_ship_cost", + "ndv": 363000, + "minValue": 0, + "maxValue": 9975 + }, + { + "name": "sr_refunded_cash", + "ndv": 1187970, + "minValue": 0, + "maxValue": 18413.33 + }, + { + "name": "sr_reversed_charge", + "ndv": 924833, + "minValue": 0, + "maxValue": 18104.5 + }, + { + "name": "sr_store_credit", + "ndv": 935681, + "minValue": 0, + "maxValue": 17792.48 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 19, + "name": "$19" + } + ] + } + ] + }, + "rowCount": 6.749402524290001E9 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_store_sk", + "sr_return_amt", + "sr_net_loss", + "sr_returned_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 19, + "name": "$19" + } + ], + "rowCount": 6.749402524290001E9 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 902188800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 904780800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 18262.25 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "14" + ], + "rowCount": 1.8488891437382258E13 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_store_sk", + "sr_return_amt", + "sr_net_loss" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ], + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.8488891437382258E13 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 1.8488891437382258E12 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_store_sk", + "$f1", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.8488891437382258E12 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "18" + ], + "rowCount": 5.077429615006786E24 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "id", + "sales", + "returns", + "profit" + ], + "exprs": [ + { + "literal": "store channel", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 17, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 17, + "scale": 2 + } + } + ] + } + ] + } + ], + "rowCount": 5.077429615006786E24 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + } + ] + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "rowCount": 3.87045981225E10 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_call_center_sk", + "cs_ext_sales_price", + "cs_net_profit", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 32, + "name": "$32" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.87045981225E10 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 902188800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 904780800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 18262.25 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "23", + "25" + ], + "rowCount": 1.0602495705939384E14 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 1.0602495705939385E13 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_call_center_sk", + "$f1", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.0602495705939385E13 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_returns" + ], + "table:alias": "catalog_returns", + "inputs": [], + "rowCount": 4320980099, + "avgRowSize": 305, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amount" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cr_returned_date_sk" + ], + "colStats": [ + { + "name": "cr_return_amount", + "ndv": 973170, + "minValue": 0, + "maxValue": 28805.04 + }, + { + "name": "cr_net_loss", + "ndv": 996464, + "minValue": 0.5, + "maxValue": 16346.37 + }, + { + "name": "cr_returned_date_sk", + "ndv": 2104, + "minValue": 2450821, + "maxValue": 2452924 + }, + { + "name": "cr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_returning_customer_sk", + "ndv": 77511828, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cr_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cr_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cr_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "cr_order_number", + "ndv": 2681654419, + "minValue": 2, + "maxValue": 4800000000 + }, + { + "name": "cr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cr_return_tax", + "ndv": 169232, + "minValue": 0, + "maxValue": 2511.58 + }, + { + "name": "cr_return_amt_inc_tax", + "ndv": 1689965, + "minValue": 0, + "maxValue": 30891.32 + }, + { + "name": "cr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "cr_return_ship_cost", + "ndv": 501353, + "minValue": 0, + "maxValue": 14273.28 + }, + { + "name": "cr_refunded_cash", + "ndv": 1257293, + "minValue": 0, + "maxValue": 26955.24 + }, + { + "name": "cr_reversed_charge", + "ndv": 895564, + "minValue": 0, + "maxValue": 24033.84 + }, + { + "name": "cr_store_credit", + "ndv": 906118, + "minValue": 0, + "maxValue": 24886.13 + } + ] + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 26, + "name": "$26" + } + ] + }, + "rowCount": 3.8888820891E9 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cr_return_amount", + "cr_net_loss", + "cr_returned_date_sk" + ], + "exprs": [ + { + "input": 17, + "name": "$17" + }, + { + "input": 25, + "name": "$25" + }, + { + "input": 26, + "name": "$26" + } + ], + "rowCount": 3.8888820891E9 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 902188800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 904780800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 18262.25 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "31", + "33" + ], + "rowCount": 1.065296053974997E13 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 0 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 1 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "28", + "36" + ], + "rowCount": 1.0602495705939385E13 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "id", + "sales", + "returns", + "profit" + ], + "exprs": [ + { + "literal": "catalog channel", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ], + "rowCount": 1.0602495705939385E13 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + } + ] + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_web_page_sk", + "ws_ext_sales_price", + "ws_net_profit", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 32, + "name": "$32" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 902188800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 904780800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 18262.25 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "41", + "43" + ], + "rowCount": 4.791555234419632E13 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_web_page_sk", + "ws_ext_sales_price", + "ws_net_profit" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ], + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 4.791555234419632E13 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 4.791555234419632E12 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_web_page_sk", + "$f1", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 4.791555234419632E12 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_returns" + ], + "table:alias": "web_returns", + "inputs": [], + "rowCount": 2062802370, + "avgRowSize": 281, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "wr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_account_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "wr_returned_date_sk" + ], + "colStats": [ + { + "name": "wr_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "wr_return_amt", + "ndv": 1108704, + "minValue": 0, + "maxValue": 29191 + }, + { + "name": "wr_net_loss", + "ndv": 1225199, + "minValue": 0.5, + "maxValue": 16733.32 + }, + { + "name": "wr_returned_date_sk", + "ndv": 2184, + "minValue": 2450819, + "maxValue": 2453002 + }, + { + "name": "wr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "wr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "wr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_returning_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "wr_order_number", + "ndv": 1283768204, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "wr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "wr_return_tax", + "ndv": 198814, + "minValue": 0, + "maxValue": 2620.34 + }, + { + "name": "wr_return_amt_inc_tax", + "ndv": 2111617, + "minValue": 0, + "maxValue": 31735.25 + }, + { + "name": "wr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "wr_return_ship_cost", + "ndv": 551289, + "minValue": 0, + "maxValue": 14624 + }, + { + "name": "wr_refunded_cash", + "ndv": 1630543, + "minValue": 0, + "maxValue": 28085.82 + }, + { + "name": "wr_reversed_charge", + "ndv": 1276207, + "minValue": 0, + "maxValue": 26135.99 + }, + { + "name": "wr_account_credit", + "ndv": 1245536, + "minValue": 0, + "maxValue": 24649.69 + } + ] + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 10, + "name": "$10" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 23, + "name": "$23" + } + ] + } + ] + }, + "rowCount": 1.6708699197E9 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wr_web_page_sk", + "wr_return_amt", + "wr_net_loss", + "wr_returned_date_sk" + ], + "exprs": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 23, + "name": "$23" + } + ], + "rowCount": 1.6708699197E9 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 902188800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 904780800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 18262.25 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "50", + "52" + ], + "rowCount": 4.577076628656198E12 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wr_web_page_sk", + "wr_return_amt", + "wr_net_loss" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ], + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 4.577076628656198E12 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 4.577076628656198E11 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wr_web_page_sk", + "$f1", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 4.577076628656198E11 + }, + { + "id": "57", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "47", + "56" + ], + "rowCount": 3.2896973217973334E23 + }, + { + "id": "58", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "id", + "sales", + "returns", + "profit" + ], + "exprs": [ + { + "literal": "web channel", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 17, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 17, + "scale": 2 + } + } + ] + } + ] + } + ], + "rowCount": 3.2896973217973334E23 + }, + { + "id": "59", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "20", + "38", + "58" + ], + "rowCount": 5.406399347197122E24 + }, + { + "id": "60", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "id", + "sales", + "returns", + "profit" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 5.406399347197122E24 + }, + { + "id": "61", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "groups": [ + [ + 0, + 1 + ], + [ + 0 + ], + [] + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + } + ], + "rowCount": 1.6219198041591368E24 + }, + { + "id": "62", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "id", + "sales", + "returns", + "profit" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 1.6219198041591368E24 + }, + { + "id": "63", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query78.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query78.q.out new file mode 100644 index 000000000000..19cf58fff11f --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query78.q.out @@ -0,0 +1,4563 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_ticket_number", + "ss_quantity", + "ss_wholesale_cost", + "ss_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_returns" + ], + "table:alias": "store_returns", + "inputs": [], + "rowCount": 8634166995, + "avgRowSize": 249, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "sr_return_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "sr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "sr_returned_date_sk" + ], + "colStats": [ + { + "name": "sr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "sr_ticket_number", + "ndv": 5114579988, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "sr_return_time_sk", + "ndv": 32389, + "minValue": 28799, + "maxValue": 61199 + }, + { + "name": "sr_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "sr_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "sr_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "sr_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "sr_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "sr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "sr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "sr_return_amt", + "ndv": 715216, + "minValue": 0, + "maxValue": 19643 + }, + { + "name": "sr_return_tax", + "ndv": 141365, + "minValue": 0, + "maxValue": 1714.37 + }, + { + "name": "sr_return_amt_inc_tax", + "ndv": 1520430, + "minValue": 0, + "maxValue": 21018.01 + }, + { + "name": "sr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "sr_return_ship_cost", + "ndv": 363000, + "minValue": 0, + "maxValue": 9975 + }, + { + "name": "sr_refunded_cash", + "ndv": 1187970, + "minValue": 0, + "maxValue": 18413.33 + }, + { + "name": "sr_reversed_charge", + "ndv": 926355, + "minValue": 0, + "maxValue": 18104.5 + }, + { + "name": "sr_store_credit", + "ndv": 937950, + "minValue": 0, + "maxValue": 17792.48 + }, + { + "name": "sr_net_loss", + "ndv": 851834, + "minValue": 0.5, + "maxValue": 11008.17 + }, + { + "name": "sr_returned_date_sk", + "ndv": 2004, + "minValue": 2450820, + "maxValue": 2452822 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_item_sk", + "sr_ticket_number" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 8634166995 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAntiJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "joinType": "anti", + "inputs": [ + "2", + "4" + ], + "rowCount": 5.984013748464001E10 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_quantity", + "ss_wholesale_cost", + "ss_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 5.984013748464001E10 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 9.835339957009803E13 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + } + ], + "rowCount": 9.835339957009803E12 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 9.835339957009803E12 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_bill_customer_sk", + "ws_order_number", + "ws_quantity", + "ws_wholesale_cost", + "ws_sales_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_returns" + ], + "table:alias": "web_returns", + "inputs": [], + "rowCount": 2160007345, + "avgRowSize": 281, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "wr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_account_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "wr_returned_date_sk" + ], + "colStats": [ + { + "name": "wr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "wr_order_number", + "ndv": 1317116406, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "wr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "wr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_returning_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "wr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "wr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "wr_return_amt", + "ndv": 1108704, + "minValue": 0, + "maxValue": 29191 + }, + { + "name": "wr_return_tax", + "ndv": 198904, + "minValue": 0, + "maxValue": 2620.34 + }, + { + "name": "wr_return_amt_inc_tax", + "ndv": 2111617, + "minValue": 0, + "maxValue": 31735.25 + }, + { + "name": "wr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "wr_return_ship_cost", + "ndv": 553061, + "minValue": 0, + "maxValue": 14624 + }, + { + "name": "wr_refunded_cash", + "ndv": 1631618, + "minValue": 0, + "maxValue": 28085.82 + }, + { + "name": "wr_reversed_charge", + "ndv": 1277260, + "minValue": 0, + "maxValue": 26135.99 + }, + { + "name": "wr_account_credit", + "ndv": 1249055, + "minValue": 0, + "maxValue": 24649.69 + }, + { + "name": "wr_net_loss", + "ndv": 1227508, + "minValue": 0.5, + "maxValue": 16733.32 + }, + { + "name": "wr_returned_date_sk", + "ndv": 2185, + "minValue": 2450819, + "maxValue": 2453002 + } + ] + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wr_item_sk", + "wr_order_number" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 2160007345 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAntiJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "joinType": "anti", + "inputs": [ + "15", + "17" + ], + "rowCount": 1.5742051191810001E10 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_bill_customer_sk", + "ws_quantity", + "ws_wholesale_cost", + "ws_sales_price", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 1.5742051191810001E10 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 10957.35 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "19", + "21" + ], + "rowCount": 2.5873674693986895E13 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + } + ], + "rowCount": 2.5873674693986895E12 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + "rowCount": 1.2936837346993447E12 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_bill_customer_sk", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 1.2936837346993447E12 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 0, + "name": "$0" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "25" + ], + "rowCount": 2.86285934871498E23 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_customer_sk", + "cs_item_sk", + "cs_order_number", + "cs_quantity", + "cs_wholesale_cost", + "cs_sales_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_returns" + ], + "table:alias": "catalog_returns", + "inputs": [], + "rowCount": 4320980099, + "avgRowSize": 305, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amount" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cr_returned_date_sk" + ], + "colStats": [ + { + "name": "cr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cr_order_number", + "ndv": 2681654419, + "minValue": 2, + "maxValue": 4800000000 + }, + { + "name": "cr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_returning_customer_sk", + "ndv": 77511828, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cr_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cr_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cr_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "cr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cr_return_amount", + "ndv": 973170, + "minValue": 0, + "maxValue": 28805.04 + }, + { + "name": "cr_return_tax", + "ndv": 169232, + "minValue": 0, + "maxValue": 2511.58 + }, + { + "name": "cr_return_amt_inc_tax", + "ndv": 1689965, + "minValue": 0, + "maxValue": 30891.32 + }, + { + "name": "cr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "cr_return_ship_cost", + "ndv": 501353, + "minValue": 0, + "maxValue": 14273.28 + }, + { + "name": "cr_refunded_cash", + "ndv": 1257293, + "minValue": 0, + "maxValue": 26955.24 + }, + { + "name": "cr_reversed_charge", + "ndv": 895564, + "minValue": 0, + "maxValue": 24033.84 + }, + { + "name": "cr_store_credit", + "ndv": 906118, + "minValue": 0, + "maxValue": 24886.13 + }, + { + "name": "cr_net_loss", + "ndv": 996464, + "minValue": 0.5, + "maxValue": 16346.37 + }, + { + "name": "cr_returned_date_sk", + "ndv": 2104, + "minValue": 2450821, + "maxValue": 2452924 + } + ] + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cr_item_sk", + "cr_order_number" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 15, + "name": "$15" + } + ], + "rowCount": 4320980099 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAntiJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "joinType": "anti", + "inputs": [ + "29", + "31" + ], + "rowCount": 3.133414443006E10 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_customer_sk", + "cs_item_sk", + "cs_quantity", + "cs_wholesale_cost", + "cs_sales_price", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 3.133414443006E10 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 10957.35 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "33", + "35" + ], + "rowCount": 5.150087812060769E13 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + } + ], + "rowCount": 5.150087812060769E12 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_item_sk", + "cs_bill_customer_sk", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 5.150087812060769E12 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + "rowCount": 2.5750439060303843E12 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f2", + "$f3", + "$f4", + "$f5" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 2.5750439060303843E12 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "26", + "40" + ], + "rowCount": 1.1057982779595935E35 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ratio", + "store_qty", + "store_wholesale_cost", + "store_sales_price", + "other_chan_qty", + "other_chan_wholesale_cost", + "other_chan_sales_price", + "ss_qty", + "ss_wc", + "ss_sp", + "(tok_function round (/ (tok_table_or_col ss_qty) (tok_function coalesce (+ (tok_table_or_col ws_qty) (tok_table_or_col cs_qty)) 1)) 2)" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "round", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + } + ] + }, + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + { + "literal": 1, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + } + ] + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "DOUBLE", + "nullable": true + }, + "deterministic": true, + "dynamic": false + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "input": 7, + "name": "$7" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "input": 11, + "name": "$11" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ] + }, + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 8, + "name": "$8" + } + ] + }, + { + "input": 8, + "name": "$8" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 17, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + }, + { + "input": 12, + "name": "$12" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 17, + "scale": 2 + } + } + ] + } + ] + }, + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 17, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + }, + { + "input": 13, + "name": "$13" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 17, + "scale": 2 + } + } + ] + } + ] + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "round", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + } + ] + }, + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + { + "literal": 1, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + } + ] + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "DOUBLE", + "nullable": true + }, + "deterministic": true, + "dynamic": false + } + ], + "rowCount": 1.1057982779595935E35 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 9, + "direction": "DESCENDING", + "nulls": "FIRST" + }, + { + "field": 10, + "direction": "DESCENDING", + "nulls": "FIRST" + }, + { + "field": 11, + "direction": "DESCENDING", + "nulls": "FIRST" + }, + { + "field": 6, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 7, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 8, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 12, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_sold_year", + "ss_item_sk", + "ss_customer_sk", + "ratio", + "store_qty", + "store_wholesale_cost", + "store_sales_price", + "other_chan_qty", + "other_chan_wholesale_cost", + "other_chan_sales_price" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query79.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query79.q.out new file mode 100644 index 000000000000..f240753ba081 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query79.q.out @@ -0,0 +1,2106 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_first_name", + "c_last_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "rowCount": 80000000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 5.413538832797791E10 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_hdemo_sk", + "ss_addr_sk", + "ss_store_sk", + "ss_ticket_number", + "ss_coupon_amt", + "ss_net_profit", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 5.413538832797791E10 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1998, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 2739.3375 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 2739.3375 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "4", + "7" + ], + "rowCount": 2.224426489858383E13 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 6, + "name": "$6" + }, + { + "literal": 200, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 295, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 426 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_city" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 426 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "8", + "11" + ], + "rowCount": 1.4214085270195065E15 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "household_demographics" + ], + "table:alias": "household_demographics", + "inputs": [], + "rowCount": 7200, + "avgRowSize": 183, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "hd_demo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "hd_income_band_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "hd_buy_potential" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_vehicle_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "hd_demo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "hd_dep_count", + "ndv": 10, + "minValue": 0, + "maxValue": 9 + }, + { + "name": "hd_vehicle_count", + "ndv": 6, + "minValue": -1, + "maxValue": 4 + }, + { + "name": "hd_income_band_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "hd_buy_potential", + "ndv": 6 + } + ] + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 8, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1800 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1800 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "15" + ], + "rowCount": 383780302295266752 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 2, + 4, + 10 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + } + ], + "rowCount": 38378030229526672 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_ticket_number", + "ss_customer_sk", + "amt", + "profit", + "_o__c2" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 30, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + } + ], + "rowCount": 38378030229526672 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "18" + ], + "rowCount": 4.6053636275432005E23 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_last_name", + "c_first_name", + "_o__c2", + "ss_ticket_number", + "amt", + "profit", + "(tok_function substr (tok_table_or_col s_city) 1 30)" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 4.6053636275432005E23 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 6, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 5, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_last_name", + "c_first_name", + "_c2", + "ss_ticket_number", + "amt", + "profit" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query8.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query8.q.out new file mode 100644 index 000000000000..9c38d69c6e9e --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query8.q.out @@ -0,0 +1,5973 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_store_sk", + "ss_net_profit", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2002, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.647723325821024E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + }, + { + "literal": "89436", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "30868", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "65085", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "22977", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "83927", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "77557", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "58429", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "40697", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "80614", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "10502", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "32779", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "91137", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "61265", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "98294", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "17921", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "18427", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "21203", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "59362", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "87291", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "84093", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "21505", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "17184", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "10866", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "67898", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "25797", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "28055", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "18377", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "80332", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "74535", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "21757", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "29742", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "90885", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "29898", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "17819", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "40811", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "25990", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "47513", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "89531", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "91068", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "10391", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "18846", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "99223", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "82637", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "41368", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "83658", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "86199", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "81625", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "26696", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "89338", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "88425", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "32200", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "81427", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "19053", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "77471", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "36610", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "99823", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "43276", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "41249", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "48584", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "83550", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "82276", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "18842", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "78890", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "14090", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "38123", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "40936", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "34425", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "19850", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "43286", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "80072", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "79188", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "54191", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "11395", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "50497", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "84861", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "90733", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "21068", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "57666", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "37119", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "25004", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "57835", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "70067", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "62878", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "95806", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "19303", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "18840", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "19124", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "29785", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "16737", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "16022", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "49613", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "89977", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "68310", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "60069", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "98360", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "48649", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "39050", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "41793", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "25002", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "27413", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "39736", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "47208", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "16515", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "94808", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "57648", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "15009", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "80015", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "42961", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "63982", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "21744", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "71853", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "81087", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "67468", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "34175", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "64008", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "20261", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "11201", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "51799", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "48043", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "45645", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "61163", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "48375", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "36447", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "57042", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "21218", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "41100", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "89951", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "22745", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "35851", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "83326", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "61125", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "78298", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "80752", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "49858", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "52940", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "96976", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "63792", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "11376", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "53582", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "18717", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "90226", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "50530", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "94203", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "99447", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "27670", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "96577", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "57856", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "56372", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "16165", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "23427", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "54561", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "28806", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "44439", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "22926", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "30123", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "61451", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "92397", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "56979", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "92309", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "70873", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "13355", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "21801", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "46346", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "37562", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "56458", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "28286", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "47306", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "99555", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "69399", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "26234", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "47546", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "49661", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "88601", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "35943", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "39936", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "25632", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "24611", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "44166", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "56648", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "30379", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "59785", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "11110", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "14329", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "93815", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "52226", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "71381", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "13842", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "25612", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "63294", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "14664", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "21077", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "82626", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "18799", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "60915", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "81020", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "56447", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "76619", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "11433", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "13414", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "42548", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "92713", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "70467", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "30884", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "47484", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "16072", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "38936", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "13036", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "88376", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "45539", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "35901", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "19506", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "65690", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "73957", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "71850", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "49231", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "14276", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "20005", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "18384", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "76615", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "11635", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "38177", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "55607", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "41369", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "95447", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "58581", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "58149", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "91946", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "33790", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "76232", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "75692", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "95464", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "22246", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "51061", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "56692", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "53121", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "77209", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "15482", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "10688", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "14868", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "45907", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "73520", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "72666", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "25734", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "17959", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "24677", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "66446", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "94627", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "53535", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "15560", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "41967", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "69297", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "11929", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "59403", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "33283", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "52232", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "57350", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "43933", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "40921", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "36635", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "10827", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "71286", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "19736", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "80619", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "25251", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "95042", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "15526", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "36496", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "55854", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "49124", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "81980", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "35375", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "49157", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "63512", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "28944", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "14946", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "36503", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "54010", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "18767", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "23969", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "43905", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "66979", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "33113", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "21286", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "58471", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "59080", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "13395", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "79144", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "70373", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "67031", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "38360", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "26705", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "50906", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "52406", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "26066", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "73146", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "15884", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "31897", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "30045", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "61068", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "45550", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "92454", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "13376", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "14354", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "19770", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "22928", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "97790", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "50723", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "46081", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "30202", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "14410", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "20223", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "88500", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "67298", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "13261", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "14172", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "81410", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "93578", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "83583", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "46047", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "94167", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "82564", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "21156", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "15799", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "86709", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "37931", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "74703", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "83103", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "23054", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "70470", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "72008", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "49247", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "91911", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "69998", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "20961", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "70070", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "63197", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "54853", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "88191", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "91830", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "49521", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "19454", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "81450", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "89091", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "62378", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "25683", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "61869", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "51744", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "36580", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "85778", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "36871", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "48121", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "28810", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "83712", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "45486", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "67393", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "26935", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "42393", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "20132", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "55349", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "86057", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "21309", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "80218", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "10094", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "11357", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "48819", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "39734", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "40758", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "30432", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "21204", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "29467", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "30214", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "61024", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "55307", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "74621", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "11622", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "68908", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "33032", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "52868", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "99194", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "99900", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "84936", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "69036", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "99149", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "45013", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "32895", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "59004", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "32322", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "14933", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "32936", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "33562", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "72550", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "27385", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "58049", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "58200", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "16808", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "21360", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "32961", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "18586", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "79307", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "literal": "15492", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + } + ] + } + ] + }, + "rowCount": 9000000 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + } + ], + "rowCount": 9000000 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 899918.3009814302 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 899918.3009814302 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + } + ] + }, + "rowCount": 36000000 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_zip" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 9, + "name": "$9" + } + ], + "rowCount": 36000000 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": "Y", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "rowCount": 10800000 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_current_addr_sk" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 10800000 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "14", + "17" + ], + "rowCount": 58320000000000 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 5832000000000 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 10, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + "rowCount": 2916000000000 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + } + ], + "rowCount": 2916000000000 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 2.9157352937095514E11 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 2.9157352937095514E11 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "11", + "23" + ], + "rowCount": 2.915744292892561E11 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 2.915744292892561E11 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 2.915744292892561E11 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 2, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + "rowCount": 4.373616439338841E10 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "EXPR$0" + ], + "exprs": [ + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + } + ], + "rowCount": 4.373616439338841E10 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 25, + "name": "$25" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + } + ] + }, + "rowCount": 1533.6000000000001 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_name", + "EXPR$0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 25, + "name": "$25" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + } + ], + "rowCount": 1533.6000000000001 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "28", + "31" + ], + "rowCount": 1.006106725705507E13 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "EXPR$0", + "s_store_sk", + "s_store_name", + "EXPR$00" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 1.006106725705507E13 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "33" + ], + "rowCount": 2.4866782803155682E25 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 6 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 2.486678280315568E24 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_name", + "_c1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 2.486678280315568E24 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query80.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query80.q.out new file mode 100644 index 000000000000..9387c36b864c --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query80.q.out @@ -0,0 +1,6281 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.0150431475531006E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_store_sk", + "ss_promo_sk", + "ss_ticket_number", + "ss_ext_sales_price", + "ss_net_profit", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.0150431475531006E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_returns" + ], + "table:alias": "store_returns", + "inputs": [], + "rowCount": 8634166995, + "avgRowSize": 249, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "sr_return_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "sr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "sr_returned_date_sk" + ], + "colStats": [ + { + "name": "sr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "sr_ticket_number", + "ndv": 5114579988, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "sr_return_amt", + "ndv": 715216, + "minValue": 0, + "maxValue": 19643 + }, + { + "name": "sr_net_loss", + "ndv": 851834, + "minValue": 0.5, + "maxValue": 11008.17 + }, + { + "name": "sr_return_time_sk", + "ndv": 32389, + "minValue": 28799, + "maxValue": 61199 + }, + { + "name": "sr_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "sr_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "sr_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "sr_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "sr_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "sr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "sr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "sr_return_tax", + "ndv": 141365, + "minValue": 0, + "maxValue": 1714.37 + }, + { + "name": "sr_return_amt_inc_tax", + "ndv": 1520430, + "minValue": 0, + "maxValue": 21018.01 + }, + { + "name": "sr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "sr_return_ship_cost", + "ndv": 363000, + "minValue": 0, + "maxValue": 9975 + }, + { + "name": "sr_refunded_cash", + "ndv": 1187970, + "minValue": 0, + "maxValue": 18413.33 + }, + { + "name": "sr_reversed_charge", + "ndv": 926355, + "minValue": 0, + "maxValue": 18104.5 + }, + { + "name": "sr_store_credit", + "ndv": 937950, + "minValue": 0, + "maxValue": 17792.48 + }, + { + "name": "sr_returned_date_sk", + "ndv": 2004, + "minValue": 2450820, + "maxValue": 2452822 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_item_sk", + "sr_ticket_number", + "sr_return_amt", + "sr_net_loss" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 18, + "name": "$18" + } + ], + "rowCount": 8634166995 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 8, + "name": "$8" + } + ] + } + ] + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "4" + ], + "rowCount": 1.1685349637870422E19 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "literal": 50, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 0 + } + } + ] + }, + "rowCount": 231000 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 231000 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "8" + ], + "rowCount": 4.048973649522101E23 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "promotion" + ], + "table:alias": "promotion", + "inputs": [], + "rowCount": 2300, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "p_promo_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "p_promo_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "p_start_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "p_end_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "p_item_sk" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 2, + "name": "p_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "p_response_target" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "p_promo_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_dmail" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_email" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_catalog" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_tv" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_radio" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_press" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_event" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_channel_demo" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "p_channel_details" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "p_purpose" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "p_discount_active" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "p_promo_sk", + "ndv": 2365, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "p_channel_tv", + "ndv": 2 + }, + { + "name": "p_promo_id", + "ndv": 2307 + }, + { + "name": "p_start_date_sk", + "ndv": 761, + "minValue": 2450096, + "maxValue": 2450915 + }, + { + "name": "p_end_date_sk", + "ndv": 736, + "minValue": 2450102, + "maxValue": 2450970 + }, + { + "name": "p_item_sk", + "ndv": 2252, + "minValue": 614, + "maxValue": 461932 + }, + { + "name": "p_cost", + "ndv": 1, + "minValue": 1000, + "maxValue": 1000 + }, + { + "name": "p_response_target", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "p_promo_name", + "ndv": 11 + }, + { + "name": "p_channel_dmail", + "ndv": 3 + }, + { + "name": "p_channel_email", + "ndv": 2 + }, + { + "name": "p_channel_catalog", + "ndv": 2 + }, + { + "name": "p_channel_radio", + "ndv": 2 + }, + { + "name": "p_channel_press", + "ndv": 2 + }, + { + "name": "p_channel_event", + "ndv": 2 + }, + { + "name": "p_channel_demo", + "ndv": 2 + }, + { + "name": "p_channel_details", + "ndv": 2242 + }, + { + "name": "p_purpose", + "ndv": 2 + }, + { + "name": "p_discount_active", + "ndv": 2 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "literal": "N", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + "rowCount": 345 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "p_promo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 345 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 12, + "name": "$12" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "12" + ], + "rowCount": 2.095343863627687E25 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 902188800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 904780800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 13, + "name": "$13" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "13", + "16" + ], + "rowCount": 5.739854021030209E28 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 1704 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 14, + "name": "$14" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "17", + "19" + ], + "rowCount": 1.4671066877753214E31 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3" + ], + "exprs": [ + { + "input": 15, + "name": "$15" + }, + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 10, + "name": "$10" + } + ] + }, + { + "input": 10, + "name": "$10" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + } + ] + } + ], + "rowCount": 1.4671066877753214E31 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 22, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 23, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + } + ], + "rowCount": 1.4671066877753214E30 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "id", + "sales", + "returns", + "profit" + ], + "exprs": [ + { + "literal": "store channel", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "op": { + "name": "||", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": "store", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 1.4671066877753214E30 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + } + ] + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 15, + "name": "$15" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.1350724479225002E10 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_catalog_page_sk", + "cs_item_sk", + "cs_promo_sk", + "cs_order_number", + "cs_ext_sales_price", + "cs_net_profit", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 11, + "name": "$11" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 32, + "name": "$32" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.1350724479225002E10 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_returns" + ], + "table:alias": "catalog_returns", + "inputs": [], + "rowCount": 4320980099, + "avgRowSize": 305, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amount" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cr_returned_date_sk" + ], + "colStats": [ + { + "name": "cr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cr_order_number", + "ndv": 2681654419, + "minValue": 2, + "maxValue": 4800000000 + }, + { + "name": "cr_return_amount", + "ndv": 973170, + "minValue": 0, + "maxValue": 28805.04 + }, + { + "name": "cr_net_loss", + "ndv": 996464, + "minValue": 0.5, + "maxValue": 16346.37 + }, + { + "name": "cr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_returning_customer_sk", + "ndv": 77511828, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cr_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cr_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cr_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "cr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cr_return_tax", + "ndv": 169232, + "minValue": 0, + "maxValue": 2511.58 + }, + { + "name": "cr_return_amt_inc_tax", + "ndv": 1689965, + "minValue": 0, + "maxValue": 30891.32 + }, + { + "name": "cr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "cr_return_ship_cost", + "ndv": 501353, + "minValue": 0, + "maxValue": 14273.28 + }, + { + "name": "cr_refunded_cash", + "ndv": 1257293, + "minValue": 0, + "maxValue": 26955.24 + }, + { + "name": "cr_reversed_charge", + "ndv": 895564, + "minValue": 0, + "maxValue": 24033.84 + }, + { + "name": "cr_store_credit", + "ndv": 906118, + "minValue": 0, + "maxValue": 24886.13 + }, + { + "name": "cr_returned_date_sk", + "ndv": 2104, + "minValue": 2450821, + "maxValue": 2452924 + } + ] + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cr_item_sk", + "cr_order_number", + "cr_return_amount", + "cr_net_loss" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 25, + "name": "$25" + } + ], + "rowCount": 4320980099 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 8, + "name": "$8" + } + ] + } + ] + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "26", + "28" + ], + "rowCount": 3047981803334509056 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "literal": 50, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 0 + } + } + ] + }, + "inputs": [ + "6" + ], + "rowCount": 231000 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 231000 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "29", + "31" + ], + "rowCount": 1.0561256948554074E23 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "literal": "N", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + "inputs": [ + "10" + ], + "rowCount": 345 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "p_promo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 345 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 12, + "name": "$12" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "32", + "34" + ], + "rowCount": 5.465450470876733E24 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 902188800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 904780800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "inputs": [ + "14" + ], + "rowCount": 18262.25 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 13, + "name": "$13" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "35", + "37" + ], + "rowCount": 1.497171342926529E28 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_page" + ], + "table:alias": "catalog_page", + "inputs": [], + "rowCount": 46000, + "avgRowSize": 561, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cp_catalog_page_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "cp_catalog_page_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cp_start_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cp_end_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "cp_department" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cp_catalog_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cp_catalog_page_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "cp_description" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "cp_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cp_catalog_page_sk", + "ndv": 47200, + "minValue": 1, + "maxValue": 46000 + }, + { + "name": "cp_catalog_page_id", + "ndv": 45891 + }, + { + "name": "cp_start_date_sk", + "ndv": 91, + "minValue": 2450815, + "maxValue": 2453005 + }, + { + "name": "cp_end_date_sk", + "ndv": 96, + "minValue": 2450844, + "maxValue": 2453186 + }, + { + "name": "cp_department", + "ndv": 2 + }, + { + "name": "cp_catalog_number", + "ndv": 112, + "minValue": 1, + "maxValue": 109 + }, + { + "name": "cp_catalog_page_number", + "ndv": 427, + "minValue": 1, + "maxValue": 425 + }, + { + "name": "cp_description", + "ndv": 44192 + }, + { + "name": "cp_type", + "ndv": 4 + } + ] + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cp_catalog_page_sk", + "cp_catalog_page_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 46000 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 14, + "name": "$14" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "38", + "40" + ], + "rowCount": 1.033048226619305E32 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3" + ], + "exprs": [ + { + "input": 15, + "name": "$15" + }, + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 10, + "name": "$10" + } + ] + }, + { + "input": 10, + "name": "$10" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + } + ] + } + ], + "rowCount": 1.033048226619305E32 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 22, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 23, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + } + ], + "rowCount": 1.033048226619305E31 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "id", + "sales", + "returns", + "profit" + ], + "exprs": [ + { + "literal": "catalog channel", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "op": { + "name": "||", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": "catalog_page", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 1.033048226619305E31 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + } + ] + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 15, + "name": "$15" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.5742491427134003E10 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_web_site_sk", + "ws_promo_sk", + "ws_order_number", + "ws_ext_sales_price", + "ws_net_profit", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 32, + "name": "$32" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.5742491427134003E10 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_returns" + ], + "table:alias": "web_returns", + "inputs": [], + "rowCount": 2160007345, + "avgRowSize": 281, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "wr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_account_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "wr_returned_date_sk" + ], + "colStats": [ + { + "name": "wr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "wr_order_number", + "ndv": 1317116406, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "wr_return_amt", + "ndv": 1108704, + "minValue": 0, + "maxValue": 29191 + }, + { + "name": "wr_net_loss", + "ndv": 1227508, + "minValue": 0.5, + "maxValue": 16733.32 + }, + { + "name": "wr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "wr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_returning_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "wr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "wr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "wr_return_tax", + "ndv": 198904, + "minValue": 0, + "maxValue": 2620.34 + }, + { + "name": "wr_return_amt_inc_tax", + "ndv": 2111617, + "minValue": 0, + "maxValue": 31735.25 + }, + { + "name": "wr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "wr_return_ship_cost", + "ndv": 553061, + "minValue": 0, + "maxValue": 14624 + }, + { + "name": "wr_refunded_cash", + "ndv": 1631618, + "minValue": 0, + "maxValue": 28085.82 + }, + { + "name": "wr_reversed_charge", + "ndv": 1277260, + "minValue": 0, + "maxValue": 26135.99 + }, + { + "name": "wr_account_credit", + "ndv": 1249055, + "minValue": 0, + "maxValue": 24649.69 + }, + { + "name": "wr_returned_date_sk", + "ndv": 2185, + "minValue": 2450819, + "maxValue": 2453002 + } + ] + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wr_item_sk", + "wr_order_number", + "wr_return_amt", + "wr_net_loss" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 2160007345 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 8, + "name": "$8" + } + ] + } + ] + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "47", + "49" + ], + "rowCount": 765087700390487296 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "literal": 50, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 0 + } + } + ] + }, + "inputs": [ + "6" + ], + "rowCount": 231000 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 231000 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "50", + "52" + ], + "rowCount": 2.6510288818530387E22 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "literal": "N", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + "inputs": [ + "10" + ], + "rowCount": 345 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "p_promo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 345 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 12, + "name": "$12" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "53", + "55" + ], + "rowCount": 1.3719074463589475E24 + }, + { + "id": "57", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 902188800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 904780800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "inputs": [ + "14" + ], + "rowCount": 18262.25 + }, + { + "id": "58", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "59", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 13, + "name": "$13" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "56", + "58" + ], + "rowCount": 3.7581175143403033E27 + }, + { + "id": "60", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_site" + ], + "table:alias": "web_site", + "inputs": [], + "rowCount": 84, + "avgRowSize": 1331, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "web_site_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "web_site_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "web_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "web_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "web_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "web_open_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "web_close_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "web_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "web_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "web_mkt_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "web_mkt_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "web_mkt_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "web_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "web_company_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "web_company_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "web_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "web_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "web_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "web_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "web_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "web_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "web_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "web_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "web_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "web_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "web_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "web_site_sk", + "ndv": 84, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "web_site_id", + "ndv": 42 + }, + { + "name": "web_rec_start_date", + "ndv": 0, + "minValue": 10089, + "maxValue": 11550 + }, + { + "name": "web_rec_end_date", + "ndv": 0, + "minValue": 10819, + "maxValue": 11549 + }, + { + "name": "web_name", + "ndv": 15 + }, + { + "name": "web_open_date_sk", + "ndv": 42, + "minValue": 2450118, + "maxValue": 2450807 + }, + { + "name": "web_close_date_sk", + "ndv": 28, + "minValue": 2440993, + "maxValue": 2446218 + }, + { + "name": "web_class", + "ndv": 2 + }, + { + "name": "web_manager", + "ndv": 60 + }, + { + "name": "web_mkt_id", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "web_mkt_class", + "ndv": 65 + }, + { + "name": "web_mkt_desc", + "ndv": 64 + }, + { + "name": "web_market_manager", + "ndv": 66 + }, + { + "name": "web_company_id", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "web_company_name", + "ndv": 7 + }, + { + "name": "web_street_number", + "ndv": 58 + }, + { + "name": "web_street_name", + "ndv": 80 + }, + { + "name": "web_street_type", + "ndv": 20 + }, + { + "name": "web_suite_number", + "ndv": 51 + }, + { + "name": "web_city", + "ndv": 52 + }, + { + "name": "web_county", + "ndv": 58 + }, + { + "name": "web_state", + "ndv": 30 + }, + { + "name": "web_zip", + "ndv": 56 + }, + { + "name": "web_country", + "ndv": 2 + }, + { + "name": "web_gmt_offset", + "ndv": 4, + "minValue": -8, + "maxValue": -5 + }, + { + "name": "web_tax_percentage", + "ndv": 13, + "minValue": 0, + "maxValue": 0.12 + } + ] + }, + { + "id": "61", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "web_site_sk", + "web_site_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 84 + }, + { + "id": "62", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 14, + "name": "$14" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "59", + "61" + ], + "rowCount": 4.735228068068782E28 + }, + { + "id": "63", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3" + ], + "exprs": [ + { + "input": 15, + "name": "$15" + }, + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 10, + "name": "$10" + } + ] + }, + { + "input": 10, + "name": "$10" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + } + ] + } + ], + "rowCount": 4.735228068068782E28 + }, + { + "id": "64", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 22, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 23, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + } + ], + "rowCount": 4.735228068068782E27 + }, + { + "id": "65", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "id", + "sales", + "returns", + "profit" + ], + "exprs": [ + { + "literal": "web channel", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "op": { + "name": "||", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": "web_site", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 4.735228068068782E27 + }, + { + "id": "66", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "23", + "44", + "65" + ], + "rowCount": 1.1802324182036442E31 + }, + { + "id": "67", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "id", + "sales", + "returns", + "profit" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 1.1802324182036442E31 + }, + { + "id": "68", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "groups": [ + [ + 0, + 1 + ], + [ + 0 + ], + [] + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 32, + "scale": 2 + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 33, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + } + ], + "rowCount": 3.5403758400581596E30 + }, + { + "id": "69", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "channel", + "id", + "sales", + "returns", + "profit" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 3.5403758400581596E30 + }, + { + "id": "70", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query81.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query81.q.out new file mode 100644 index 000000000000..7aab2ab3cb3d --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query81.q.out @@ -0,0 +1,2630 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + "rowCount": 72000000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_customer_id", + "c_current_addr_sk", + "c_salutation", + "c_first_name", + "c_last_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "rowCount": 72000000 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "IL", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + "rowCount": 6000000 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_street_number", + "ca_street_name", + "ca_street_type", + "ca_suite_number", + "ca_city", + "ca_county", + "ca_zip", + "ca_country", + "ca_gmt_offset", + "ca_location_type" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 6000000 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 64800000000000 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 8, + "name": "$8" + } + ] + }, + "rowCount": 36000000 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_state" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 36000000 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_returns" + ], + "table:alias": "catalog_returns", + "inputs": [], + "rowCount": 4320980099, + "avgRowSize": 305, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amount" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cr_returned_date_sk" + ], + "colStats": [ + { + "name": "cr_returning_customer_sk", + "ndv": 77511828, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_return_amt_inc_tax", + "ndv": 1689965, + "minValue": 0, + "maxValue": 30891.32 + }, + { + "name": "cr_returned_date_sk", + "ndv": 2104, + "minValue": 2450821, + "maxValue": 2452924 + }, + { + "name": "cr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cr_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cr_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cr_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "cr_order_number", + "ndv": 2681654419, + "minValue": 2, + "maxValue": 4800000000 + }, + { + "name": "cr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cr_return_amount", + "ndv": 973170, + "minValue": 0, + "maxValue": 28805.04 + }, + { + "name": "cr_return_tax", + "ndv": 169232, + "minValue": 0, + "maxValue": 2511.58 + }, + { + "name": "cr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "cr_return_ship_cost", + "ndv": 501353, + "minValue": 0, + "maxValue": 14273.28 + }, + { + "name": "cr_refunded_cash", + "ndv": 1257293, + "minValue": 0, + "maxValue": 26955.24 + }, + { + "name": "cr_reversed_charge", + "ndv": 895564, + "minValue": 0, + "maxValue": 24033.84 + }, + { + "name": "cr_store_credit", + "ndv": 906118, + "minValue": 0, + "maxValue": 24886.13 + }, + { + "name": "cr_net_loss", + "ndv": 996464, + "minValue": 0.5, + "maxValue": 16346.37 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 26, + "name": "$26" + } + ] + } + ] + }, + "rowCount": 3.1499944921710005E9 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cr_returning_customer_sk", + "cr_returning_addr_sk", + "cr_return_amt_inc_tax", + "cr_returned_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 26, + "name": "$26" + } + ], + "rowCount": 3.1499944921710005E9 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1998, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "15" + ], + "rowCount": 5.177338822318487E12 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "16" + ], + "rowCount": 2.7957629640519827E19 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + } + ], + "rowCount": 2795762964051982848 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cr_returning_customer_sk", + "ca_state", + "$f2" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 2795762964051982848 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + "rowCount": 2516186667646784512 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cr_returning_customer_sk", + "ca_state", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 2516186667646784512 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 17, + "name": "$17" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "21" + ], + "rowCount": 2.4457334409526745E31 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 8, + "name": "$8" + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 36000000 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_state" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 36000000 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 26, + "name": "$26" + } + ] + } + ] + }, + "inputs": [ + "10" + ], + "rowCount": 3.49999388019E9 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cr_returning_customer_sk", + "cr_returning_addr_sk", + "cr_return_amt_inc_tax", + "cr_returned_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 26, + "name": "$26" + } + ], + "rowCount": 3.49999388019E9 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1998, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "13" + ], + "rowCount": 10957.35 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "26", + "28" + ], + "rowCount": 5.752598691464984E12 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "24", + "29" + ], + "rowCount": 3.1064032933910917E19 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + } + ], + "rowCount": 3106403293391091712 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_state", + "cr_returning_customer_sk", + "$f2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 3106403293391091712 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 36000000 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 21, + "scale": 6 + } + } + ] + }, + "rowCount": 32400000 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0", + "ctr_state" + ], + "exprs": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 21, + "scale": 6 + } + }, + { + "literal": 1.2, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + } + ] + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 32400000 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 18, + "name": "$18" + }, + { + "input": 21, + "name": "$21" + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 19, + "name": "$19" + }, + { + "input": 20, + "name": "$20" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "22", + "35" + ], + "rowCount": 5.943132261514999E37 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_id", + "c_salutation", + "c_first_name", + "c_last_name", + "ca_street_number", + "ca_street_name", + "ca_street_type", + "ca_suite_number", + "ca_city", + "ca_county", + "ca_zip", + "ca_country", + "ca_gmt_offset", + "ca_location_type", + "ctr_total_return" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 19, + "name": "$19" + } + ], + "rowCount": 5.943132261514999E37 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 4, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 5, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 6, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 7, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 8, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 9, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 10, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 11, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 12, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 13, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 14, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_id", + "c_salutation", + "c_first_name", + "c_last_name", + "ca_street_number", + "ca_street_name", + "ca_street_type", + "ca_suite_number", + "ca_city", + "ca_county", + "ca_state", + "ca_zip", + "ca_country", + "ca_gmt_offset", + "ca_location_type", + "ctr_total_return" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": "IL", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ], + "type": { + "type": "CHAR", + "nullable": true, + "precision": 2 + } + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query82.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query82.q.out new file mode 100644 index 000000000000..644be5361e56 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query82.q.out @@ -0,0 +1,1489 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 86404891377, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 159044, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1334023, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1468124, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 86404891377 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 1022716800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 1027900800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "inventory" + ], + "table:alias": "inventory", + "inputs": [], + "rowCount": 1627857000, + "avgRowSize": 157, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "inv_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "inv_item_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "inv_warehouse_sk" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "inv_quantity_on_hand" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "inv_date_sk", + "ndv": 258, + "minValue": 2450815, + "maxValue": 2452635 + }, + { + "name": "inv_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "inv_quantity_on_hand", + "ndv": 987, + "minValue": 0, + "maxValue": 1000 + }, + { + "name": "inv_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + } + ] + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 500, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 406964250 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "inv_date_sk", + "inv_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 406964250 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "literal": 129, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 437, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 663, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 727, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 5, + "name": "$5" + }, + { + "literal": 30, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 60, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + } + ] + }, + "rowCount": 28875 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id", + "i_item_desc", + "i_current_price" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 28875 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "7", + "10" + ], + "rowCount": 1.7626639078125E12 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "4", + "11" + ], + "rowCount": 4828531342567324 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "12" + ], + "rowCount": 6.258130892474544E25 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5, + 6, + 7 + ], + "aggs": [], + "rowCount": 6.258130892474543E24 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "i_item_desc", + "i_current_price" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 6.258130892474543E24 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query83.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query83.q.out new file mode 100644 index 000000000000..1058d4386299 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query83.q.out @@ -0,0 +1,3736 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_returns" + ], + "table:alias": "catalog_returns", + "inputs": [], + "rowCount": 4320980099, + "avgRowSize": 305, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amount" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cr_returned_date_sk" + ], + "colStats": [ + { + "name": "cr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cr_returned_date_sk", + "ndv": 2104, + "minValue": 2450821, + "maxValue": 2452924 + }, + { + "name": "cr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_returning_customer_sk", + "ndv": 77511828, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cr_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cr_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cr_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "cr_order_number", + "ndv": 2681654419, + "minValue": 2, + "maxValue": 4800000000 + }, + { + "name": "cr_return_amount", + "ndv": 973170, + "minValue": 0, + "maxValue": 28805.04 + }, + { + "name": "cr_return_tax", + "ndv": 169232, + "minValue": 0, + "maxValue": 2511.58 + }, + { + "name": "cr_return_amt_inc_tax", + "ndv": 1689965, + "minValue": 0, + "maxValue": 30891.32 + }, + { + "name": "cr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "cr_return_ship_cost", + "ndv": 501353, + "minValue": 0, + "maxValue": 14273.28 + }, + { + "name": "cr_refunded_cash", + "ndv": 1257293, + "minValue": 0, + "maxValue": 26955.24 + }, + { + "name": "cr_reversed_charge", + "ndv": 895564, + "minValue": 0, + "maxValue": 24033.84 + }, + { + "name": "cr_store_credit", + "ndv": 906118, + "minValue": 0, + "maxValue": 24886.13 + }, + { + "name": "cr_net_loss", + "ndv": 996464, + "minValue": 0.5, + "maxValue": 16346.37 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 26, + "name": "$26" + } + ] + }, + "rowCount": 3.8888820891E9 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cr_item_sk", + "cr_return_quantity", + "cr_returned_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 26, + "name": "$26" + } + ], + "rowCount": 3.8888820891E9 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + "rowCount": 65744.1 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 65744.1 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 3.83506579430999E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "rowCount": 59169.69 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date", + "d_week_seq" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 59169.69 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 10228, + "type": { + "type": "DATE", + "nullable": false + } + }, + { + "literal": 10514, + "type": { + "type": "DATE", + "nullable": false + } + }, + { + "literal": 10540, + "type": { + "type": "DATE", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 16436.025 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_week_seq" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 16436.025 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "semi", + "inputs": [ + "9", + "11" + ], + "rowCount": 13313.180250000003 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 13313.180250000003 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "semi", + "inputs": [ + "6", + "13" + ], + "rowCount": 6.989407410129958E12 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 462000 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "14", + "16" + ], + "rowCount": 484365933522006080 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 6 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 48436593352200608 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 48436593352200608 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_returns" + ], + "table:alias": "store_returns", + "inputs": [], + "rowCount": 8332595709, + "avgRowSize": 249, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "sr_return_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "sr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "sr_returned_date_sk" + ], + "colStats": [ + { + "name": "sr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "sr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "sr_returned_date_sk", + "ndv": 2003, + "minValue": 2450820, + "maxValue": 2452822 + }, + { + "name": "sr_return_time_sk", + "ndv": 32389, + "minValue": 28799, + "maxValue": 61199 + }, + { + "name": "sr_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "sr_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "sr_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "sr_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "sr_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "sr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "sr_ticket_number", + "ndv": 5065526774, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "sr_return_amt", + "ndv": 715216, + "minValue": 0, + "maxValue": 19643 + }, + { + "name": "sr_return_tax", + "ndv": 141365, + "minValue": 0, + "maxValue": 1714.37 + }, + { + "name": "sr_return_amt_inc_tax", + "ndv": 1520430, + "minValue": 0, + "maxValue": 21018.01 + }, + { + "name": "sr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "sr_return_ship_cost", + "ndv": 363000, + "minValue": 0, + "maxValue": 9975 + }, + { + "name": "sr_refunded_cash", + "ndv": 1187970, + "minValue": 0, + "maxValue": 18413.33 + }, + { + "name": "sr_reversed_charge", + "ndv": 924833, + "minValue": 0, + "maxValue": 18104.5 + }, + { + "name": "sr_store_credit", + "ndv": 935681, + "minValue": 0, + "maxValue": 17792.48 + }, + { + "name": "sr_net_loss", + "ndv": 848797, + "minValue": 0.5, + "maxValue": 11008.17 + } + ] + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 19, + "name": "$19" + } + ] + }, + "rowCount": 7.4993361381E9 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_item_sk", + "sr_return_quantity", + "sr_returned_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 19, + "name": "$19" + } + ], + "rowCount": 7.4993361381E9 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 65744.1 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 65744.1 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "22", + "24" + ], + "rowCount": 7.395556574952903E13 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 59169.69 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date", + "d_week_seq" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 59169.69 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 10228, + "type": { + "type": "DATE", + "nullable": false + } + }, + { + "literal": 10514, + "type": { + "type": "DATE", + "nullable": false + } + }, + { + "literal": 10540, + "type": { + "type": "DATE", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 16436.025 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_week_seq" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 16436.025 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "semi", + "inputs": [ + "27", + "29" + ], + "rowCount": 13313.180250000003 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 13313.180250000003 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "semi", + "inputs": [ + "25", + "31" + ], + "rowCount": 1.347840185785167E13 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "inputs": [ + "15" + ], + "rowCount": 462000 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "32", + "33" + ], + "rowCount": 934053248749120640 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 6 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 93405324874912064 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_id", + "$f1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 93405324874912064 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "19", + "36" + ], + "rowCount": 6.786353606844455E32 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_returns" + ], + "table:alias": "web_returns", + "inputs": [], + "rowCount": 2062802370, + "avgRowSize": 281, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "wr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_account_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "wr_returned_date_sk" + ], + "colStats": [ + { + "name": "wr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "wr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "wr_returned_date_sk", + "ndv": 2184, + "minValue": 2450819, + "maxValue": 2453002 + }, + { + "name": "wr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "wr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_returning_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "wr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "wr_order_number", + "ndv": 1283768204, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "wr_return_amt", + "ndv": 1108704, + "minValue": 0, + "maxValue": 29191 + }, + { + "name": "wr_return_tax", + "ndv": 198814, + "minValue": 0, + "maxValue": 2620.34 + }, + { + "name": "wr_return_amt_inc_tax", + "ndv": 2111617, + "minValue": 0, + "maxValue": 31735.25 + }, + { + "name": "wr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "wr_return_ship_cost", + "ndv": 551289, + "minValue": 0, + "maxValue": 14624 + }, + { + "name": "wr_refunded_cash", + "ndv": 1630543, + "minValue": 0, + "maxValue": 28085.82 + }, + { + "name": "wr_reversed_charge", + "ndv": 1276207, + "minValue": 0, + "maxValue": 26135.99 + }, + { + "name": "wr_account_credit", + "ndv": 1245536, + "minValue": 0, + "maxValue": 24649.69 + }, + { + "name": "wr_net_loss", + "ndv": 1225199, + "minValue": 0.5, + "maxValue": 16733.32 + } + ] + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 23, + "name": "$23" + } + ] + }, + "rowCount": 1856522133 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wr_item_sk", + "wr_return_quantity", + "wr_returned_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 23, + "name": "$23" + } + ], + "rowCount": 1856522133 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 65744.1 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 65744.1 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "40", + "42" + ], + "rowCount": 1.8308306514624797E13 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 59169.69 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date", + "d_week_seq" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 59169.69 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 10228, + "type": { + "type": "DATE", + "nullable": false + } + }, + { + "literal": 10514, + "type": { + "type": "DATE", + "nullable": false + } + }, + { + "literal": 10540, + "type": { + "type": "DATE", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 16436.025 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_week_seq" + ], + "exprs": [ + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 16436.025 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "semi", + "inputs": [ + "45", + "47" + ], + "rowCount": 13313.180250000003 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 13313.180250000003 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "semi", + "inputs": [ + "43", + "49" + ], + "rowCount": 3.33668886229037E12 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "inputs": [ + "15" + ], + "rowCount": 462000 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "50", + "51" + ], + "rowCount": 231232538156722624 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 6 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 23123253815672264 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "item_id", + "wr_item_qty", + "EXPR$0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + } + ], + "rowCount": 23123253815672264 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "37", + "54" + ], + "rowCount": 2.353838654009509E48 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_items.item_id", + "sr_item_qty", + "sr_dev", + "cr_item_qty", + "cr_dev", + "wr_item_qty", + "wr_dev", + "average" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "input": 5, + "name": "$5" + } + ] + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + } + ] + }, + { + "literal": 3, + "type": { + "type": "DOUBLE", + "nullable": false + } + } + ] + }, + { + "literal": 100, + "type": { + "type": "DOUBLE", + "nullable": false + } + } + ] + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "input": 5, + "name": "$5" + } + ] + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + } + ] + }, + { + "literal": 3, + "type": { + "type": "DOUBLE", + "nullable": false + } + } + ] + }, + { + "literal": 100, + "type": { + "type": "DOUBLE", + "nullable": false + } + } + ] + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "input": 5, + "name": "$5" + } + ] + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + } + ] + }, + { + "literal": 3, + "type": { + "type": "DOUBLE", + "nullable": false + } + } + ] + }, + { + "literal": 100, + "type": { + "type": "DOUBLE", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + { + "input": 5, + "name": "$5" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 19, + "scale": 0 + } + }, + { + "literal": 3, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + } + ], + "rowCount": 2.353838654009509E48 + }, + { + "id": "57", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query84.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query84.q.out new file mode 100644 index 000000000000..f0f4b2284e33 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query84.q.out @@ -0,0 +1,1682 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_returns" + ], + "table:alias": "store_returns", + "inputs": [], + "rowCount": 8634166995, + "avgRowSize": 249, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "sr_return_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "sr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "sr_returned_date_sk" + ], + "colStats": [ + { + "name": "sr_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "sr_return_time_sk", + "ndv": 32389, + "minValue": 28799, + "maxValue": 61199 + }, + { + "name": "sr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "sr_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "sr_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "sr_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "sr_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "sr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "sr_ticket_number", + "ndv": 5114579988, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "sr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "sr_return_amt", + "ndv": 715216, + "minValue": 0, + "maxValue": 19643 + }, + { + "name": "sr_return_tax", + "ndv": 141365, + "minValue": 0, + "maxValue": 1714.37 + }, + { + "name": "sr_return_amt_inc_tax", + "ndv": 1520430, + "minValue": 0, + "maxValue": 21018.01 + }, + { + "name": "sr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "sr_return_ship_cost", + "ndv": 363000, + "minValue": 0, + "maxValue": 9975 + }, + { + "name": "sr_refunded_cash", + "ndv": 1187970, + "minValue": 0, + "maxValue": 18413.33 + }, + { + "name": "sr_reversed_charge", + "ndv": 926355, + "minValue": 0, + "maxValue": 18104.5 + }, + { + "name": "sr_store_credit", + "ndv": 937950, + "minValue": 0, + "maxValue": 17792.48 + }, + { + "name": "sr_net_loss", + "ndv": 851834, + "minValue": 0.5, + "maxValue": 11008.17 + }, + { + "name": "sr_returned_date_sk", + "ndv": 2004, + "minValue": 2450820, + "maxValue": 2452822 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + "rowCount": 7.7707502955E9 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_cdemo_sk" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 7.7707502955E9 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_demographics" + ], + "table:alias": "customer_demographics", + "inputs": [], + "rowCount": 1920800, + "avgRowSize": 217, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cd_demo_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_gender" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_marital_status" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cd_education_status" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_purchase_estimate" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cd_credit_rating" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_employed_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_college_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cd_demo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cd_gender", + "ndv": 2 + }, + { + "name": "cd_marital_status", + "ndv": 5 + }, + { + "name": "cd_education_status", + "ndv": 7 + }, + { + "name": "cd_purchase_estimate", + "ndv": 20, + "minValue": 500, + "maxValue": 10000 + }, + { + "name": "cd_credit_rating", + "ndv": 4 + }, + { + "name": "cd_dep_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_employed_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_college_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1920800 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "4" + ], + "rowCount": 2238908575139460 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "rowCount": 5.832000000000001E7 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_id", + "c_current_cdemo_sk", + "c_current_hdemo_sk", + "c_current_addr_sk", + "customername" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "||", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "||", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 9, + "name": "$9" + }, + { + "literal": ", ", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + } + ] + }, + { + "input": 8, + "name": "$8" + } + ] + } + ], + "rowCount": 5.832000000000001E7 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": "Hopewell", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 60 + } + } + ] + }, + "rowCount": 6000000 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6000000 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "8", + "11" + ], + "rowCount": 5.248800000000001E13 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "household_demographics" + ], + "table:alias": "household_demographics", + "inputs": [], + "rowCount": 7200, + "avgRowSize": 183, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "hd_demo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "hd_income_band_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "hd_buy_potential" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_vehicle_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "hd_demo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "hd_income_band_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "hd_buy_potential", + "ndv": 6 + }, + { + "name": "hd_dep_count", + "ndv": 10, + "minValue": 0, + "maxValue": 9 + }, + { + "name": "hd_vehicle_count", + "ndv": 6, + "minValue": -1, + "maxValue": 4 + } + ] + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ] + }, + "rowCount": 6480 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk", + "hd_income_band_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 6480 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "income_band" + ], + "table:alias": "income_band", + "inputs": [], + "rowCount": 20, + "avgRowSize": 145, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ib_income_band_sk" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ib_lower_bound" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ib_upper_bound" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ib_income_band_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ib_lower_bound", + "ndv": 20, + "minValue": 0, + "maxValue": 190001 + }, + { + "name": "ib_upper_bound", + "ndv": 20, + "minValue": 10000, + "maxValue": 200000 + } + ] + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": ">=", + "kind": "GREATER_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "literal": 32287, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 82287, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 5 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ib_income_band_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 5 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "15", + "18" + ], + "rowCount": 4860 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk", + "hd_income_band_sk", + "ib_income_band_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 4860 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "20" + ], + "rowCount": 38263752000000000 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_id", + "c_current_cdemo_sk", + "c_current_hdemo_sk", + "c_current_addr_sk", + "customername", + "ca_address_sk", + "hd_demo_sk", + "hd_income_band_sk", + "ib_income_band_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 38263752000000000 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "22" + ], + "rowCount": 1.285035637047145E31 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "customer_id", + "customername", + "c_customer_id" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.285035637047145E31 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "customer_id", + "customername" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query85.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query85.q.out new file mode 100644 index 000000000000..624265e7307e --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query85.q.out @@ -0,0 +1,3800 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 20, + "name": "$20" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 32, + "name": "$32" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.4168242284420603E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_order_number", + "ws_quantity", + "ws_sold_date_sk", + "EXPR$0", + "EXPR$1", + "EXPR$2", + "EXPR$3", + "EXPR$4", + "EXPR$5" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 33, + "name": "$33" + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 32, + "name": "$32" + }, + { + "literal": 100, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 200, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 32, + "name": "$32" + }, + { + "literal": 150, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 300, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 32, + "name": "$32" + }, + { + "literal": 50, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + }, + { + "literal": 250, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 12, + "scale": 2 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 20, + "name": "$20" + }, + { + "literal": 100, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 0 + } + }, + { + "literal": 150, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 20, + "name": "$20" + }, + { + "literal": 50, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 0 + } + }, + { + "literal": 100, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 20, + "name": "$20" + }, + { + "literal": 150, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 0 + } + }, + { + "literal": 200, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 3, + "scale": 0 + } + } + ] + } + ], + "rowCount": 1.4168242284420603E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1998, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10957.35 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 2.3286958439279414E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_returns" + ], + "table:alias": "web_returns", + "inputs": [], + "rowCount": 2160007345, + "avgRowSize": 281, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "wr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_account_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "wr_returned_date_sk" + ], + "colStats": [ + { + "name": "wr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "wr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "wr_order_number", + "ndv": 1317116406, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "wr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "wr_refunded_cash", + "ndv": 1631618, + "minValue": 0, + "maxValue": 28085.82 + }, + { + "name": "wr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "wr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_returning_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "wr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "wr_return_amt", + "ndv": 1108704, + "minValue": 0, + "maxValue": 29191 + }, + { + "name": "wr_return_tax", + "ndv": 198904, + "minValue": 0, + "maxValue": 2620.34 + }, + { + "name": "wr_return_amt_inc_tax", + "ndv": 2111617, + "minValue": 0, + "maxValue": 31735.25 + }, + { + "name": "wr_return_ship_cost", + "ndv": 553061, + "minValue": 0, + "maxValue": 14624 + }, + { + "name": "wr_reversed_charge", + "ndv": 1277260, + "minValue": 0, + "maxValue": 26135.99 + }, + { + "name": "wr_account_credit", + "ndv": 1249055, + "minValue": 0, + "maxValue": 24649.69 + }, + { + "name": "wr_net_loss", + "ndv": 1227508, + "minValue": 0.5, + "maxValue": 16733.32 + }, + { + "name": "wr_returned_date_sk", + "ndv": 2185, + "minValue": 2450819, + "maxValue": 2453002 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ] + } + ] + }, + "rowCount": 1.4171808190545003E9 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wr_item_sk", + "wr_refunded_cdemo_sk", + "wr_refunded_addr_sk", + "wr_returning_cdemo_sk", + "wr_reason_sk", + "wr_order_number", + "wr_fee", + "wr_refunded_cash" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 19, + "name": "$19" + } + ], + "rowCount": 1.4171808190545003E9 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "GA", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "IN", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "KY", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "MO", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "MT", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "NM", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "OR", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "WI", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "WV", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": "United States", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 20 + } + } + ] + } + ] + }, + "rowCount": 1500000 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "EXPR$0", + "EXPR$1", + "EXPR$2" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "GA", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "KY", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "NM", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "IN", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "MT", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "OR", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "MO", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "WI", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + }, + { + "literal": "WV", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + } + ], + "rowCount": 1500000 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "12" + ], + "rowCount": 3.1886568428726256E14 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_demographics" + ], + "table:alias": "cd1", + "inputs": [], + "rowCount": 1920800, + "avgRowSize": 217, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cd_demo_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_gender" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_marital_status" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cd_education_status" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_purchase_estimate" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cd_credit_rating" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_employed_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_college_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cd_demo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cd_marital_status", + "ndv": 5 + }, + { + "name": "cd_education_status", + "ndv": 7 + }, + { + "name": "cd_gender", + "ndv": 2 + }, + { + "name": "cd_purchase_estimate", + "ndv": 20, + "minValue": 500, + "maxValue": 10000 + }, + { + "name": "cd_credit_rating", + "ndv": 4 + }, + { + "name": "cd_dep_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_employed_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_college_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + } + ] + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": "D", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + }, + { + "literal": "M", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + }, + { + "literal": "U", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": "4 yr Degree", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 11 + } + }, + { + "literal": "Advanced Degree", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 15 + } + }, + { + "literal": "Primary", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + } + ] + } + ] + }, + "rowCount": 120050 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk", + "cd_marital_status", + "cd_education_status", + "EXPR$0", + "EXPR$1", + "EXPR$2", + "EXPR$3", + "EXPR$4", + "EXPR$5" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": "M", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": "4 yr Degree", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 11 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": "D", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": "Primary", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": "U", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": "Advanced Degree", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 15 + } + } + ] + } + ], + "rowCount": 120050 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "13", + "16" + ], + "rowCount": 5741973809802880000 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_demographics" + ], + "table:alias": "cd2", + "inputs": [], + "rowCount": 1920800, + "avgRowSize": 217, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cd_demo_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_gender" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_marital_status" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cd_education_status" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_purchase_estimate" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cd_credit_rating" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_employed_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_college_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cd_demo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cd_marital_status", + "ndv": 5 + }, + { + "name": "cd_education_status", + "ndv": 7 + }, + { + "name": "cd_gender", + "ndv": 2 + }, + { + "name": "cd_purchase_estimate", + "ndv": 20, + "minValue": 500, + "maxValue": 10000 + }, + { + "name": "cd_credit_rating", + "ndv": 4 + }, + { + "name": "cd_dep_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_employed_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_college_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + } + ] + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": "D", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + }, + { + "literal": "M", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + }, + { + "literal": "U", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": "4 yr Degree", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 11 + } + }, + { + "literal": "Advanced Degree", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 15 + } + }, + { + "literal": "Primary", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + } + ] + } + ] + }, + "rowCount": 120050 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk", + "cd_marital_status", + "cd_education_status" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 120050 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 21, + "name": "$21" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 22, + "name": "$22" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 23, + "name": "$23" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "17", + "20" + ], + "rowCount": 2.3264683510505708E21 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wr_item_sk", + "wr_refunded_cdemo_sk", + "wr_refunded_addr_sk", + "wr_returning_cdemo_sk", + "wr_reason_sk", + "wr_order_number", + "wr_fee", + "wr_refunded_cash", + "ca_address_sk", + "EXPR$0", + "EXPR$1", + "EXPR$2", + "cd_demo_sk", + "cd_marital_status", + "cd_education_status", + "EXPR$00", + "EXPR$10", + "EXPR$20", + "EXPR$3", + "EXPR$4", + "EXPR$5", + "cd_demo_sk0", + "cd_marital_status0", + "cd_education_status0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 17, + "name": "$17" + }, + { + "input": 18, + "name": "$18" + }, + { + "input": 19, + "name": "$19" + }, + { + "input": 20, + "name": "$20" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 22, + "name": "$22" + }, + { + "input": 23, + "name": "$23" + } + ], + "rowCount": 2.3264683510505708E21 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 16, + "name": "$16" + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 26, + "name": "$26" + }, + { + "input": 27, + "name": "$27" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 28, + "name": "$28" + }, + { + "input": 29, + "name": "$29" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 30, + "name": "$30" + }, + { + "input": 31, + "name": "$31" + }, + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 20, + "name": "$20" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 21, + "name": "$21" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 22, + "name": "$22" + }, + { + "input": 6, + "name": "$6" + } + ] + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "22" + ], + "rowCount": 7.618552284545655E31 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "reason" + ], + "table:alias": "reason", + "inputs": [], + "rowCount": 72, + "avgRowSize": 437, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "r_reason_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "r_reason_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 100, + "name": "r_reason_desc" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "r_reason_sk", + "ndv": 72, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "r_reason_desc", + "ndv": 71 + }, + { + "name": "r_reason_id", + "ndv": 72 + } + ] + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "r_reason_sk", + "r_reason_desc" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 72 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 35, + "name": "$35" + }, + { + "input": 15, + "name": "$15" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "23", + "25" + ], + "rowCount": 8.228036467309307E32 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 36 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 18 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 18 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 17 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 17 + ], + "name": null + } + ], + "rowCount": 8.228036467309308E31 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0", + "_o__c1", + "_o__c2", + "_o__c3", + "(tok_function avg (tok_table_or_col ws_quantity))", + "(tok_function avg (tok_table_or_col wr_refunded_cash))", + "(tok_function avg (tok_table_or_col wr_fee))", + "(tok_function substr (tok_table_or_col r_reason_desc) 1 20)" + ], + "exprs": [ + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 20, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DOUBLE", + "nullable": true + } + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + }, + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 20, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + } + ], + "rowCount": 8.228036467309308E31 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 7, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 4, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 5, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 6, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_c0", + "_c1", + "_c2", + "_c3" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query86.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query86.q.out new file mode 100644 index 000000000000..56f568f8c3fa --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query86.q.out @@ -0,0 +1,1821 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "rowCount": 1.94351746014E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_net_paid", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 28, + "name": "$28" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.94351746014E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "d1", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 5.323950260466258E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_class", + "i_category" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 462000 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "8" + ], + "rowCount": 3689497530503116800 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 3689497530503116800 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "groups": [ + [ + 0, + 1 + ], + [ + 0 + ], + [] + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + }, + { + "agg": { + "name": "GROUPING__ID", + "kind": "OTHER", + "syntax": "FUNCTION" + }, + "type": { + "type": "BIGINT", + "nullable": false + }, + "distinct": false, + "operands": [], + "name": "GROUPING__ID" + } + ], + "rowCount": 1106849259150935040 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "GROUPING__ID" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 1106849259150935040 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "total_sum", + "i_category", + "i_class", + "lochierarchy", + "rank_within_parent", + "(tok_function when (= (tok_table_or_col lochierarchy) 0) (tok_table_or_col i_category))" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + } + ] + }, + { + "op": { + "name": "rank", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [], + "distinct": false, + "type": { + "type": "INTEGER", + "nullable": true + }, + "window": { + "partition": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "type": { + "type": "BIGINT", + "nullable": true + } + } + ] + }, + { + "input": 0, + "name": "$0" + }, + { + "literal": null, + "type": { + "type": "CHAR", + "nullable": true, + "precision": 50 + } + } + ] + } + ], + "order": [ + { + "expr": { + "input": 2, + "name": "$2" + }, + "direction": "DESCENDING", + "null-direction": "FIRST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "+", + "kind": "PLUS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + }, + { + "op": { + "name": "grouping", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "BIGINT", + "nullable": true + }, + "deterministic": true, + "dynamic": false + } + ] + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "input": 0, + "name": "$0" + }, + { + "literal": null, + "type": { + "type": "CHAR", + "nullable": true, + "precision": 50 + } + } + ] + } + ], + "rowCount": 1106849259150935040 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 3, + "direction": "DESCENDING", + "nulls": "FIRST" + }, + { + "field": 5, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 4, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "total_sum", + "i_category", + "i_class", + "lochierarchy", + "rank_within_parent" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query87.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query87.q.out new file mode 100644 index 000000000000..7234dfc3d7c9 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query87.q.out @@ -0,0 +1,3273 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_first_name", + "c_last_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "rowCount": 80000000 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 18262.25 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "4", + "7" + ], + "rowCount": 1.8308036953566934E14 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "8" + ], + "rowCount": 2.196964434428032E21 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1, + 2, + 6 + ], + "aggs": [], + "rowCount": 2.1969644344280318E20 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_first_name", + "c_last_name", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 2.1969644344280318E20 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "literal": 2, + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 80000000 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_first_name", + "c_last_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "inputs": [ + "0" + ], + "rowCount": 80000000 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 3.483413831025E10 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_customer_sk", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.483413831025E10 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "5" + ], + "rowCount": 18262.25 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 18262.25 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "17", + "19" + ], + "rowCount": 9.542246135345445E13 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "14", + "20" + ], + "rowCount": 1.1450695362414534E21 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1, + 2, + 6 + ], + "aggs": [], + "rowCount": 1.1450695362414533E20 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_first_name", + "c_last_name", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.1450695362414533E20 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "literal": 1, + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 80000000 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "13", + "25" + ], + "rowCount": 160000000 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f4", + "$f5" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ], + "rowCount": 160000000 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + } + ], + "rowCount": 160000000 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 2, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "rowCount": 12000000 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 12000000 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 12000000 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "literal": 2, + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 12000000 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_first_name", + "c_last_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "inputs": [ + "0" + ], + "rowCount": 80000000 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_bill_customer_sk", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "5" + ], + "rowCount": 18262.25 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 18262.25 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "36", + "38" + ], + "rowCount": 4.791555234419632E13 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "33", + "39" + ], + "rowCount": 5.749866281303558E20 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 1, + 2, + 6 + ], + "aggs": [], + "rowCount": 5.749866281303558E19 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_first_name", + "c_last_name", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 5.749866281303558E19 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 80000000 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "literal": 1, + "type": { + "type": "BIGINT", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 80000000 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveUnion", + "all": true, + "inputs": [ + "32", + "44" + ], + "rowCount": 92000000 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f4", + "$f5" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ], + "rowCount": 92000000 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1, + 2 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + } + ], + "rowCount": 92000000 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 2, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "rowCount": 6900000 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2", + "$f3", + "$f4" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 6900000 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_c0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query88.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query88.q.out new file mode 100644 index 000000000000..343e9d70c74c --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query88.q.out @@ -0,0 +1,5559 @@ +Warning: Map Join MAPJOIN[605][bigTable=?] in task 'Reducer 5' is a cross product +Warning: Map Join MAPJOIN[604][bigTable=?] in task 'Reducer 5' is a cross product +Warning: Map Join MAPJOIN[603][bigTable=?] in task 'Reducer 5' is a cross product +Warning: Map Join MAPJOIN[602][bigTable=?] in task 'Reducer 5' is a cross product +Warning: Map Join MAPJOIN[601][bigTable=?] in task 'Reducer 5' is a cross product +Warning: Map Join MAPJOIN[600][bigTable=?] in task 'Reducer 5' is a cross product +Warning: Map Join MAPJOIN[599][bigTable=?] in task 'Reducer 5' is a cross product +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 86404891377, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 159044, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1334023, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1468124, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + } + ] + }, + "rowCount": 6.298916581383301E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_sold_time_sk", + "ss_hdemo_sk", + "ss_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 6.298916581383301E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "time_dim" + ], + "table:alias": "time_dim", + "inputs": [], + "rowCount": 86400, + "avgRowSize": 377, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "t_time_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "t_time_id" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_time" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_hour" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_minute" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_second" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "t_am_pm" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "t_shift" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "t_sub_shift" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "t_meal_time" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "t_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "t_hour", + "ndv": 24, + "minValue": 0, + "maxValue": 23 + }, + { + "name": "t_minute", + "ndv": 62, + "minValue": 0, + "maxValue": 59 + }, + { + "name": "t_time_id", + "ndv": 87002 + }, + { + "name": "t_time", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "t_second", + "ndv": 62, + "minValue": 0, + "maxValue": 59 + }, + { + "name": "t_am_pm", + "ndv": 2 + }, + { + "name": "t_shift", + "ndv": 3 + }, + { + "name": "t_sub_shift", + "ndv": 4 + }, + { + "name": "t_meal_time", + "ndv": 4 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 8, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": ">=", + "kind": "GREATER_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 30, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 6480 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "t_time_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6480 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 6.122546917104568E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "household_demographics" + ], + "table:alias": "household_demographics", + "inputs": [], + "rowCount": 7200, + "avgRowSize": 183, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "hd_demo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "hd_income_band_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "hd_buy_potential" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_vehicle_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "hd_demo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "hd_dep_count", + "ndv": 10, + "minValue": 0, + "maxValue": 9 + }, + { + "name": "hd_vehicle_count", + "ndv": 6, + "minValue": -1, + "maxValue": 4 + }, + { + "name": "hd_income_band_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "hd_buy_potential", + "ndv": 6 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + } + ] + }, + "rowCount": 225 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 225 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 2.0663595845227915E15 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "literal": "ese", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + "rowCount": 255.6 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 255.6 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "13" + ], + "rowCount": 79224226470603824 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 6.298916581383301E10 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_sold_time_sk", + "ss_hdemo_sk", + "ss_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 6.298916581383301E10 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 12, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<", + "kind": "LESS_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 30, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 6480 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "t_time_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6480 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "18", + "20" + ], + "rowCount": 6.122546917104568E13 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 225 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 225 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "21", + "23" + ], + "rowCount": 2.0663595845227915E15 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "literal": "ese", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + "inputs": [ + "11" + ], + "rowCount": 255.6 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 255.6 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "24", + "26" + ], + "rowCount": 79224226470603824 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "16", + "29" + ], + "rowCount": 1 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 6.298916581383301E10 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_sold_time_sk", + "ss_hdemo_sk", + "ss_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 6.298916581383301E10 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 11, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": ">=", + "kind": "GREATER_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 30, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 6480 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "t_time_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6480 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "32", + "34" + ], + "rowCount": 6.122546917104568E13 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 225 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 225 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "35", + "37" + ], + "rowCount": 2.0663595845227915E15 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "literal": "ese", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + "inputs": [ + "11" + ], + "rowCount": 255.6 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 255.6 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "38", + "40" + ], + "rowCount": 79224226470603824 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "30", + "43" + ], + "rowCount": 1 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 6.298916581383301E10 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_sold_time_sk", + "ss_hdemo_sk", + "ss_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 6.298916581383301E10 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 11, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<", + "kind": "LESS_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 30, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 6480 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "t_time_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6480 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "46", + "48" + ], + "rowCount": 6.122546917104568E13 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 225 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 225 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "49", + "51" + ], + "rowCount": 2.0663595845227915E15 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "literal": "ese", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + "inputs": [ + "11" + ], + "rowCount": 255.6 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 255.6 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "52", + "54" + ], + "rowCount": 79224226470603824 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "57", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "58", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "44", + "57" + ], + "rowCount": 1 + }, + { + "id": "59", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 6.298916581383301E10 + }, + { + "id": "60", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_sold_time_sk", + "ss_hdemo_sk", + "ss_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 6.298916581383301E10 + }, + { + "id": "61", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 10, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": ">=", + "kind": "GREATER_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 30, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 6480 + }, + { + "id": "62", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "t_time_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6480 + }, + { + "id": "63", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "60", + "62" + ], + "rowCount": 6.122546917104568E13 + }, + { + "id": "64", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 225 + }, + { + "id": "65", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 225 + }, + { + "id": "66", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "63", + "65" + ], + "rowCount": 2.0663595845227915E15 + }, + { + "id": "67", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "literal": "ese", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + "inputs": [ + "11" + ], + "rowCount": 255.6 + }, + { + "id": "68", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 255.6 + }, + { + "id": "69", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "66", + "68" + ], + "rowCount": 79224226470603824 + }, + { + "id": "70", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "71", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "72", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "58", + "71" + ], + "rowCount": 1 + }, + { + "id": "73", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 6.298916581383301E10 + }, + { + "id": "74", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_sold_time_sk", + "ss_hdemo_sk", + "ss_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 6.298916581383301E10 + }, + { + "id": "75", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 10, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<", + "kind": "LESS_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 30, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 6480 + }, + { + "id": "76", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "t_time_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6480 + }, + { + "id": "77", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "74", + "76" + ], + "rowCount": 6.122546917104568E13 + }, + { + "id": "78", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 225 + }, + { + "id": "79", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 225 + }, + { + "id": "80", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "77", + "79" + ], + "rowCount": 2.0663595845227915E15 + }, + { + "id": "81", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "literal": "ese", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + "inputs": [ + "11" + ], + "rowCount": 255.6 + }, + { + "id": "82", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 255.6 + }, + { + "id": "83", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "80", + "82" + ], + "rowCount": 79224226470603824 + }, + { + "id": "84", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "85", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "86", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "72", + "85" + ], + "rowCount": 1 + }, + { + "id": "87", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 6.298916581383301E10 + }, + { + "id": "88", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_sold_time_sk", + "ss_hdemo_sk", + "ss_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 6.298916581383301E10 + }, + { + "id": "89", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 9, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": ">=", + "kind": "GREATER_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 30, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 6480 + }, + { + "id": "90", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "t_time_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6480 + }, + { + "id": "91", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "88", + "90" + ], + "rowCount": 6.122546917104568E13 + }, + { + "id": "92", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 225 + }, + { + "id": "93", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 225 + }, + { + "id": "94", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "91", + "93" + ], + "rowCount": 2.0663595845227915E15 + }, + { + "id": "95", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "literal": "ese", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + "inputs": [ + "11" + ], + "rowCount": 255.6 + }, + { + "id": "96", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 255.6 + }, + { + "id": "97", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "94", + "96" + ], + "rowCount": 79224226470603824 + }, + { + "id": "98", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "99", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "100", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "86", + "99" + ], + "rowCount": 1 + }, + { + "id": "101", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 6.298916581383301E10 + }, + { + "id": "102", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_sold_time_sk", + "ss_hdemo_sk", + "ss_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 6.298916581383301E10 + }, + { + "id": "103", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 9, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<", + "kind": "LESS_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 30, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 6480 + }, + { + "id": "104", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "t_time_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6480 + }, + { + "id": "105", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "102", + "104" + ], + "rowCount": 6.122546917104568E13 + }, + { + "id": "106", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 2, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 3, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + } + ] + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 225 + }, + { + "id": "107", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 225 + }, + { + "id": "108", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "105", + "107" + ], + "rowCount": 2.0663595845227915E15 + }, + { + "id": "109", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "literal": "ese", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + "inputs": [ + "11" + ], + "rowCount": 255.6 + }, + { + "id": "110", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 255.6 + }, + { + "id": "111", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "108", + "110" + ], + "rowCount": 79224226470603824 + }, + { + "id": "112", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "113", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "114", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "100", + "113" + ], + "rowCount": 1 + }, + { + "id": "115", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s1.h8_30_to_9", + "s2.h9_to_9_30", + "s3.h9_30_to_10", + "s4.h10_to_10_30", + "s5.h10_30_to_11", + "s6.h11_to_11_30", + "s7.h11_30_to_12", + "s8.h12_to_12_30" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 1 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query89.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query89.q.out new file mode 100644 index 000000000000..7e9959bf18c9 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query89.q.out @@ -0,0 +1,2352 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + } + ] + }, + "rowCount": 6.6833812750590004E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_store_sk", + "ss_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 6.6833812750590004E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": "birdal", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + }, + { + "literal": "musical", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + }, + { + "literal": "pants", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "parenting", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + }, + { + "literal": "wallpaper", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + }, + { + "literal": "womens", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Books", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "Electronics", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 11 + } + }, + { + "literal": "Home", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 4 + } + }, + { + "literal": "Jewelry", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + }, + { + "literal": "Men", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 3 + } + }, + { + "literal": "Shoes", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + }, + { + "op": { + "name": "OR", + "kind": "OR", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Books", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "Electronics", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 11 + } + }, + { + "literal": "Home", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 4 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": "musical", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + }, + { + "literal": "parenting", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + }, + { + "literal": "wallpaper", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 9 + } + } + ] + } + ] + }, + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Jewelry", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + }, + { + "literal": "Men", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 3 + } + }, + { + "literal": "Shoes", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "literal": "birdal", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + }, + { + "literal": "pants", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "womens", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + } + ] + } + ] + } + ] + }, + "rowCount": 7218.75 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_brand", + "i_class", + "i_category" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 7218.75 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 7.236848786899823E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 2000, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 10957.35 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_moy" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 10957.35 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 118945027582705168 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk", + "s_store_name", + "s_company_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 17, + "name": "$17" + } + ], + "rowCount": 1704 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "12" + ], + "rowCount": 3.040234905013944E19 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 5, + 6, + 7, + 9, + 11, + 12 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 3040234905013943808 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_brand", + "i_class", + "i_category", + "d_moy", + "s_store_name", + "s_company_name", + "$f6" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 3040234905013943808 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "(tok_table_or_col i_category)", + "(tok_table_or_col i_class)", + "(tok_table_or_col i_brand)", + "(tok_table_or_col s_store_name)", + "(tok_table_or_col s_company_name)", + "(tok_table_or_col d_moy)", + "(tok_function sum (tok_table_or_col ss_sales_price))", + "avg_window_0" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 6, + "name": "$6" + }, + { + "op": { + "name": "avg", + "kind": "AVG", + "syntax": "FUNCTION_STAR" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ], + "distinct": false, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 21, + "scale": 6 + }, + "window": { + "partition": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "order": [ + { + "expr": { + "input": 2, + "name": "$2" + }, + "direction": "ASCENDING", + "null-direction": "FIRST" + }, + { + "expr": { + "input": 0, + "name": "$0" + }, + "direction": "ASCENDING", + "null-direction": "FIRST" + }, + { + "expr": { + "input": 4, + "name": "$4" + }, + "direction": "ASCENDING", + "null-direction": "FIRST" + }, + { + "expr": { + "input": 5, + "name": "$5" + }, + "direction": "ASCENDING", + "null-direction": "FIRST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ], + "rowCount": 3040234905013943808 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "<>", + "kind": "NOT_EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "literal": 0, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "ABS", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ] + } + ] + }, + { + "input": 7, + "name": "$7" + } + ] + }, + { + "literal": 0.1, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 1 + } + } + ] + }, + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + } + ] + }, + "rowCount": 760058726253485952 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_category", + "i_class", + "i_brand", + "s_store_name", + "s_company_name", + "d_moy", + "sum_sales", + "avg_monthly_sales", + "(- (tok_table_or_col sum_sales) (tok_table_or_col avg_monthly_sales))1" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ] + } + ], + "rowCount": 760058726253485952 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 8, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 3, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "tmp1.i_category", + "tmp1.i_class", + "tmp1.i_brand", + "tmp1.s_store_name", + "tmp1.s_company_name", + "tmp1.d_moy", + "tmp1.sum_sales", + "tmp1.avg_monthly_sales" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query9.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query9.q.out new file mode 100644 index 000000000000..3410e6062d46 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query9.q.out @@ -0,0 +1,3283 @@ +Warning: Map Join MAPJOIN[185][bigTable=?] in task 'Map 1' is a cross product +Warning: Map Join MAPJOIN[184][bigTable=?] in task 'Map 1' is a cross product +Warning: Map Join MAPJOIN[183][bigTable=?] in task 'Map 1' is a cross product +Warning: Map Join MAPJOIN[182][bigTable=?] in task 'Map 1' is a cross product +Warning: Map Join MAPJOIN[181][bigTable=?] in task 'Map 1' is a cross product +Warning: Map Join MAPJOIN[180][bigTable=?] in task 'Map 1' is a cross product +Warning: Map Join MAPJOIN[179][bigTable=?] in task 'Map 1' is a cross product +Warning: Map Join MAPJOIN[178][bigTable=?] in task 'Map 1' is a cross product +Warning: Map Join MAPJOIN[177][bigTable=?] in task 'Map 1' is a cross product +Warning: Map Join MAPJOIN[176][bigTable=?] in task 'Map 1' is a cross product +Warning: Map Join MAPJOIN[175][bigTable=?] in task 'Map 1' is a cross product +Warning: Map Join MAPJOIN[174][bigTable=?] in task 'Map 1' is a cross product +Warning: Map Join MAPJOIN[173][bigTable=?] in task 'Map 1' is a cross product +Warning: Map Join MAPJOIN[172][bigTable=?] in task 'Map 1' is a cross product +Warning: Map Join MAPJOIN[171][bigTable=?] in task 'Map 1' is a cross product +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "reason" + ], + "table:alias": "reason", + "inputs": [], + "rowCount": 72, + "avgRowSize": 437, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "r_reason_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "r_reason_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 100, + "name": "r_reason_desc" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "r_reason_sk", + "ndv": 72, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "r_reason_id", + "ndv": 72 + }, + { + "name": "r_reason_desc", + "ndv": 71 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "literal": 1, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + "rowCount": 10.799999999999999 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "r_reason_sk" + ], + "exprs": [ + { + "literal": 1, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ], + "rowCount": 10.799999999999999 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 86404891377, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_tax", + "ndv": 159044, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1334023, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_profit", + "ndv": 1468124, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 20, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 2.160122284425E10 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "EXPR$0" + ], + "exprs": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "literal": 409437, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ], + "rowCount": 1 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "6" + ], + "rowCount": 10.799999999999999 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 86404891377, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 159044, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1334023, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1468124, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 20, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 2.160122284425E10 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 16 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 16 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "rowCount": 1 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "7", + "11" + ], + "rowCount": 10.799999999999999 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 86404891377, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 159044, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1334023, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1468124, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 20, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 2.160122284425E10 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 20 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 20 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "rowCount": 1 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "16" + ], + "rowCount": 10.799999999999999 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 21, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 40, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 2.160122284425E10 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "EXPR$1" + ], + "exprs": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "literal": 4595804, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ], + "rowCount": 1 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "17", + "20" + ], + "rowCount": 10.799999999999999 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 21, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 40, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "8" + ], + "rowCount": 2.160122284425E10 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 16 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 16 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "rowCount": 1 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "21", + "24" + ], + "rowCount": 10.799999999999999 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 21, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 40, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "13" + ], + "rowCount": 2.160122284425E10 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 20 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 20 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "rowCount": 1 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "25", + "28" + ], + "rowCount": 10.799999999999999 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 41, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 60, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 2.160122284425E10 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "EXPR$2" + ], + "exprs": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "literal": 7887297, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ], + "rowCount": 1 + }, + { + "id": "33", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "29", + "32" + ], + "rowCount": 10.799999999999999 + }, + { + "id": "34", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 41, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 60, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "8" + ], + "rowCount": 2.160122284425E10 + }, + { + "id": "35", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 16 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 16 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "36", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "rowCount": 1 + }, + { + "id": "37", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "33", + "36" + ], + "rowCount": 10.799999999999999 + }, + { + "id": "38", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 41, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 60, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "13" + ], + "rowCount": 2.160122284425E10 + }, + { + "id": "39", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 20 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 20 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "40", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "rowCount": 1 + }, + { + "id": "41", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "37", + "40" + ], + "rowCount": 10.799999999999999 + }, + { + "id": "42", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 61, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 80, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 2.160122284425E10 + }, + { + "id": "43", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "44", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "EXPR$3" + ], + "exprs": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "literal": 10872978, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ], + "rowCount": 1 + }, + { + "id": "45", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "41", + "44" + ], + "rowCount": 10.799999999999999 + }, + { + "id": "46", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 61, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 80, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "8" + ], + "rowCount": 2.160122284425E10 + }, + { + "id": "47", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 16 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 16 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "48", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "rowCount": 1 + }, + { + "id": "49", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "45", + "48" + ], + "rowCount": 10.799999999999999 + }, + { + "id": "50", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 61, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 80, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "13" + ], + "rowCount": 2.160122284425E10 + }, + { + "id": "51", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 20 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 20 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "52", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "rowCount": 1 + }, + { + "id": "53", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "49", + "52" + ], + "rowCount": 10.799999999999999 + }, + { + "id": "54", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 81, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 2.160122284425E10 + }, + { + "id": "55", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "56", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "EXPR$4" + ], + "exprs": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "literal": 43571537, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ], + "rowCount": 1 + }, + { + "id": "57", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "53", + "56" + ], + "rowCount": 10.799999999999999 + }, + { + "id": "58", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 81, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "8" + ], + "rowCount": 2.160122284425E10 + }, + { + "id": "59", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 16 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 16 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "60", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "rowCount": 1 + }, + { + "id": "61", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "57", + "60" + ], + "rowCount": 10.799999999999999 + }, + { + "id": "62", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 9, + "name": "$9" + }, + { + "literal": 81, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "13" + ], + "rowCount": 2.160122284425E10 + }, + { + "id": "63", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 20 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 20 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "64", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ], + "rowCount": 1 + }, + { + "id": "65", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "left", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "61", + "64" + ], + "rowCount": 10.799999999999999 + }, + { + "id": "66", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "bucket1", + "bucket2", + "bucket3", + "bucket4", + "bucket5" + ], + "exprs": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + } + ] + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 15, + "name": "$15" + } + ] + } + ], + "rowCount": 10.799999999999999 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query90.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query90.q.out new file mode 100644 index 000000000000..d28ae6f952be --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query90.q.out @@ -0,0 +1,1725 @@ +Warning: Map Join MAPJOIN[149][bigTable=?] in task 'Reducer 2' is a cross product +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21600036511, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "rowCount": 1.5746426616519003E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_sold_time_sk", + "ws_ship_hdemo_sk", + "ws_web_page_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ], + "rowCount": 1.5746426616519003E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_page" + ], + "table:alias": "web_page", + "inputs": [], + "rowCount": 4602, + "avgRowSize": 487, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "wp_web_page_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "wp_web_page_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "wp_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "wp_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wp_creation_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wp_access_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "wp_autogen_flag" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wp_customer_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "wp_url" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "wp_type" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "wp_char_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "wp_link_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "wp_image_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "wp_max_ad_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "wp_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "wp_char_count", + "ndv": 2621, + "minValue": 303, + "maxValue": 8523 + }, + { + "name": "wp_web_page_id", + "ndv": 2344 + }, + { + "name": "wp_rec_start_date", + "ndv": 0, + "minValue": 10107, + "maxValue": 11568 + }, + { + "name": "wp_rec_end_date", + "ndv": 0, + "minValue": 10837, + "maxValue": 11567 + }, + { + "name": "wp_creation_date_sk", + "ndv": 291, + "minValue": 2450492, + "maxValue": 2450815 + }, + { + "name": "wp_access_date_sk", + "ndv": 103, + "minValue": 2452548, + "maxValue": 2452648 + }, + { + "name": "wp_autogen_flag", + "ndv": 3 + }, + { + "name": "wp_customer_sk", + "ndv": 1114, + "minValue": 33025, + "maxValue": 79895491 + }, + { + "name": "wp_url", + "ndv": 2 + }, + { + "name": "wp_type", + "ndv": 8 + }, + { + "name": "wp_link_count", + "ndv": 24, + "minValue": 2, + "maxValue": 25 + }, + { + "name": "wp_image_count", + "ndv": 7, + "minValue": 1, + "maxValue": 7 + }, + { + "name": "wp_max_ad_count", + "ndv": 5, + "minValue": 0, + "maxValue": 4 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 10, + "name": "$10" + }, + { + "literal": 5000, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 5200, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 1150.5 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wp_web_page_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1150.5 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 2.717439573345767E12 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "time_dim" + ], + "table:alias": "time_dim", + "inputs": [], + "rowCount": 86400, + "avgRowSize": 377, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "t_time_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "t_time_id" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_time" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_hour" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_minute" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_second" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "t_am_pm" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "t_shift" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "t_sub_shift" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "t_meal_time" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "t_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "t_hour", + "ndv": 24, + "minValue": 0, + "maxValue": 23 + }, + { + "name": "t_time_id", + "ndv": 87002 + }, + { + "name": "t_time", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "t_minute", + "ndv": 62, + "minValue": 0, + "maxValue": 59 + }, + { + "name": "t_second", + "ndv": 62, + "minValue": 0, + "maxValue": 59 + }, + { + "name": "t_am_pm", + "ndv": 2 + }, + { + "name": "t_shift", + "ndv": 3 + }, + { + "name": "t_sub_shift", + "ndv": 4 + }, + { + "name": "t_meal_time", + "ndv": 4 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 6, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 7, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 21600 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "t_time_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 21600 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 8804504217640285 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "household_demographics" + ], + "table:alias": "household_demographics", + "inputs": [], + "rowCount": 7200, + "avgRowSize": 183, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "hd_demo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "hd_income_band_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "hd_buy_potential" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_vehicle_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "hd_demo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "hd_dep_count", + "ndv": 10, + "minValue": 0, + "maxValue": 9 + }, + { + "name": "hd_income_band_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "hd_buy_potential", + "ndv": 6 + }, + { + "name": "hd_vehicle_count", + "ndv": 6, + "minValue": -1, + "maxValue": 4 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 8, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 1080 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1080 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "13" + ], + "rowCount": 1426329683257726208 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 11, + "name": "$11" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 9, + "name": "$9" + } + ] + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 1.5746426616519003E10 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_sold_time_sk", + "ws_ship_hdemo_sk", + "ws_web_page_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 11, + "name": "$11" + } + ], + "rowCount": 1.5746426616519003E10 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 10, + "name": "$10" + }, + { + "literal": 5000, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 5200, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1150.5 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wp_web_page_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1150.5 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "18", + "20" + ], + "rowCount": 2.717439573345767E12 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 14, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 15, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "7" + ], + "rowCount": 21600 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "t_time_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 21600 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "21", + "23" + ], + "rowCount": 8804504217640285 + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 8, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "11" + ], + "rowCount": 1080 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1080 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "24", + "26" + ], + "rowCount": 1426329683257726208 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "16", + "29" + ], + "rowCount": 1 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "am_pm_ratio" + ], + "exprs": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 15, + "scale": 4 + } + } + ] + } + ], + "rowCount": 1 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query91.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query91.q.out new file mode 100644 index 000000000000..03e831ae29be --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query91.q.out @@ -0,0 +1,2661 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_returns" + ], + "table:alias": "catalog_returns", + "inputs": [], + "rowCount": 4320980099, + "avgRowSize": 305, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amount" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cr_returned_date_sk" + ], + "colStats": [ + { + "name": "cr_returning_customer_sk", + "ndv": 77511828, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cr_net_loss", + "ndv": 996464, + "minValue": 0.5, + "maxValue": 16346.37 + }, + { + "name": "cr_returned_date_sk", + "ndv": 2104, + "minValue": 2450821, + "maxValue": 2452924 + }, + { + "name": "cr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cr_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cr_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cr_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "cr_order_number", + "ndv": 2681654419, + "minValue": 2, + "maxValue": 4800000000 + }, + { + "name": "cr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cr_return_amount", + "ndv": 973170, + "minValue": 0, + "maxValue": 28805.04 + }, + { + "name": "cr_return_tax", + "ndv": 169232, + "minValue": 0, + "maxValue": 2511.58 + }, + { + "name": "cr_return_amt_inc_tax", + "ndv": 1689965, + "minValue": 0, + "maxValue": 30891.32 + }, + { + "name": "cr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "cr_return_ship_cost", + "ndv": 501353, + "minValue": 0, + "maxValue": 14273.28 + }, + { + "name": "cr_refunded_cash", + "ndv": 1257293, + "minValue": 0, + "maxValue": 26955.24 + }, + { + "name": "cr_reversed_charge", + "ndv": 895564, + "minValue": 0, + "maxValue": 24033.84 + }, + { + "name": "cr_store_credit", + "ndv": 906118, + "minValue": 0, + "maxValue": 24886.13 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 10, + "name": "$10" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 26, + "name": "$26" + } + ] + } + ] + }, + "rowCount": 3.1499944921710005E9 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cr_returning_customer_sk", + "cr_call_center_sk", + "cr_net_loss", + "cr_returned_date_sk" + ], + "exprs": [ + { + "input": 6, + "name": "$6" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 25, + "name": "$25" + }, + { + "input": 26, + "name": "$26" + } + ], + "rowCount": 3.1499944921710005E9 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 6, + "name": "$6" + }, + { + "literal": 1999, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": 11, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 1643.6025 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1643.6025 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 7.76600823347773E11 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 11, + "name": "$11" + }, + { + "literal": -7, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 1, + "scale": 0 + } + } + ] + }, + "rowCount": 6000000 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6000000 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer" + ], + "table:alias": "customer", + "inputs": [], + "rowCount": 80000000, + "avgRowSize": 517, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "c_customer_sk" + }, + { + "type": "CHAR", + "nullable": false, + "precision": 16, + "name": "c_customer_id" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_current_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_shipto_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_first_sales_date_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "c_salutation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "c_first_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "c_last_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "c_preferred_cust_flag" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_day" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_month" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "c_birth_year" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "c_birth_country" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 13, + "name": "c_login" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "c_email_address" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "c_last_review_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "c_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "c_current_cdemo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "c_current_hdemo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "c_current_addr_sk", + "ndv": 33825344, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "c_customer_id", + "ndv": 80610928 + }, + { + "name": "c_first_shipto_date_sk", + "ndv": 3646, + "minValue": 2449028, + "maxValue": 2452678 + }, + { + "name": "c_first_sales_date_sk", + "ndv": 3643, + "minValue": 2448998, + "maxValue": 2452648 + }, + { + "name": "c_salutation", + "ndv": 7 + }, + { + "name": "c_first_name", + "ndv": 5158 + }, + { + "name": "c_last_name", + "ndv": 5123 + }, + { + "name": "c_preferred_cust_flag", + "ndv": 3 + }, + { + "name": "c_birth_day", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "c_birth_month", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "c_birth_year", + "ndv": 67, + "minValue": 1924, + "maxValue": 1992 + }, + { + "name": "c_birth_country", + "ndv": 216 + }, + { + "name": "c_login", + "ndv": 1 + }, + { + "name": "c_email_address", + "ndv": 75301330 + }, + { + "name": "c_last_review_date_sk", + "ndv": 364, + "minValue": 2452283, + "maxValue": 2452648 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "rowCount": 5.832000000000001E7 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "c_customer_sk", + "c_current_cdemo_sk", + "c_current_hdemo_sk", + "c_current_addr_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + } + ], + "rowCount": 5.832000000000001E7 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_demographics" + ], + "table:alias": "customer_demographics", + "inputs": [], + "rowCount": 1920800, + "avgRowSize": 217, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cd_demo_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_gender" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "cd_marital_status" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cd_education_status" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_purchase_estimate" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cd_credit_rating" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_employed_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cd_dep_college_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cd_demo_sk", + "ndv": 1993369, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cd_marital_status", + "ndv": 5 + }, + { + "name": "cd_education_status", + "ndv": 7 + }, + { + "name": "cd_gender", + "ndv": 2 + }, + { + "name": "cd_purchase_estimate", + "ndv": 20, + "minValue": 500, + "maxValue": 10000 + }, + { + "name": "cd_credit_rating", + "ndv": 4 + }, + { + "name": "cd_dep_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_employed_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "cd_dep_college_count", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + } + ] + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": "M", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + }, + { + "literal": "W", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": "Advanced Degree", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 15 + } + }, + { + "literal": "Unknown", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + } + ] + }, + { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": "M", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + }, + { + "literal": "Unknown ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 20 + } + } + ] + }, + { + "op": { + "name": "ROW", + "kind": "ROW", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": "W", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 1 + } + }, + { + "literal": "Advanced Degree ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 20 + } + } + ] + } + ] + } + ] + }, + "rowCount": 30012.5 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cd_demo_sk", + "cd_marital_status", + "cd_education_status" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 30012.5 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "15" + ], + "rowCount": 2.6254935000000003E11 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "16" + ], + "rowCount": 236294415000000032 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "household_demographics" + ], + "table:alias": "household_demographics", + "inputs": [], + "rowCount": 7200, + "avgRowSize": 183, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "hd_demo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "hd_income_band_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "hd_buy_potential" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_vehicle_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "hd_demo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "hd_buy_potential", + "ndv": 6 + }, + { + "name": "hd_income_band_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "hd_dep_count", + "ndv": 10, + "minValue": 0, + "maxValue": 9 + }, + { + "name": "hd_vehicle_count", + "ndv": 6, + "minValue": -1, + "maxValue": 4 + } + ] + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "LIKE", + "kind": "LIKE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": "0-500%", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647 + } + } + ] + }, + "rowCount": 1800 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1800 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "17", + "20" + ], + "rowCount": 6.379949205000001E19 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "c_customer_sk", + "c_current_cdemo_sk", + "c_current_hdemo_sk", + "c_current_addr_sk", + "cd_demo_sk", + "cd_marital_status", + "cd_education_status", + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + } + ], + "rowCount": 6.379949205000001E19 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "22" + ], + "rowCount": 7.432010708279955E30 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "call_center" + ], + "table:alias": "call_center", + "inputs": [], + "rowCount": 60, + "avgRowSize": 1483, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cc_call_center_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "cc_call_center_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "cc_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "cc_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cc_closed_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cc_open_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "cc_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "cc_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_sq_ft" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cc_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "cc_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_mkt_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "cc_mkt_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "cc_mkt_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "cc_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_division" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "cc_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_company" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "cc_company_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cc_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "cc_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "cc_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cc_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "cc_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "cc_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "cc_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cc_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "cc_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "cc_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "cc_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cc_call_center_sk", + "ndv": 60, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cc_call_center_id", + "ndv": 30 + }, + { + "name": "cc_name", + "ndv": 30 + }, + { + "name": "cc_manager", + "ndv": 42 + }, + { + "name": "cc_rec_start_date", + "ndv": 0, + "minValue": 10227, + "maxValue": 11688 + }, + { + "name": "cc_rec_end_date", + "ndv": 0, + "minValue": 10957, + "maxValue": 11687 + }, + { + "name": "cc_closed_date_sk", + "ndv": 1, + "minValue": null, + "maxValue": null + }, + { + "name": "cc_open_date_sk", + "ndv": 30, + "minValue": 2450794, + "maxValue": 2451146 + }, + { + "name": "cc_class", + "ndv": 3 + }, + { + "name": "cc_employees", + "ndv": 43, + "minValue": 5412266, + "maxValue": 1963174023 + }, + { + "name": "cc_sq_ft", + "ndv": 47, + "minValue": -2108783316, + "maxValue": 2044891959 + }, + { + "name": "cc_hours", + "ndv": 3 + }, + { + "name": "cc_mkt_id", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "cc_mkt_class", + "ndv": 52 + }, + { + "name": "cc_mkt_desc", + "ndv": 48 + }, + { + "name": "cc_market_manager", + "ndv": 48 + }, + { + "name": "cc_division", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "cc_division_name", + "ndv": 6 + }, + { + "name": "cc_company", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "cc_company_name", + "ndv": 6 + }, + { + "name": "cc_street_number", + "ndv": 30 + }, + { + "name": "cc_street_name", + "ndv": 29 + }, + { + "name": "cc_street_type", + "ndv": 14 + }, + { + "name": "cc_suite_number", + "ndv": 26 + }, + { + "name": "cc_city", + "ndv": 25 + }, + { + "name": "cc_county", + "ndv": 25 + }, + { + "name": "cc_state", + "ndv": 19 + }, + { + "name": "cc_zip", + "ndv": 30 + }, + { + "name": "cc_country", + "ndv": 1 + }, + { + "name": "cc_gmt_offset", + "ndv": 4, + "minValue": -8, + "maxValue": -5 + }, + { + "name": "cc_tax_percentage", + "ndv": 13, + "minValue": 0, + "maxValue": 0.12 + } + ] + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cc_call_center_sk", + "cc_call_center_id", + "cc_name", + "cc_manager" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 11, + "name": "$11" + } + ], + "rowCount": 60 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 14, + "name": "$14" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "23", + "25" + ], + "rowCount": 6.688809637451959E31 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 11, + 12, + 15, + 16, + 17 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 6.68880963745196E30 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "call_center", + "call_center_name", + "manager", + "returns_loss", + "(tok_function sum (tok_table_or_col cr_net_loss))" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 6.68880963745196E30 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 4, + "direction": "DESCENDING", + "nulls": "FIRST" + } + ], + "rowCount": 6.68880963745196E30 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "call_center", + "call_center_name", + "manager", + "returns_loss" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ], + "rowCount": 6.68880963745196E30 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query92.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query92.q.out new file mode 100644 index 000000000000..1da18edf31f0 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query92.q.out @@ -0,0 +1,1738 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 890179200000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 897955200000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "web_sales", + "inputs": [], + "rowCount": 21594638446, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 21, + "name": "$21" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + } + ] + }, + "rowCount": 1.7491657141260002E10 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_ext_discount_amt", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.7491657141260002E10 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 13, + "name": "$13" + }, + { + "literal": 269, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 69300 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 69300 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "5", + "8" + ], + "rowCount": 1.8182577598339772E14 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 1.94351746014E10 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_item_sk", + "ws_ext_discount_amt", + "ws_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 21, + "name": "$21" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 1.94351746014E10 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 890179200000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 897955200000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "inputs": [ + "0" + ], + "rowCount": 18262.25 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "11", + "13" + ], + "rowCount": 5.323950260466258E13 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + }, + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 5.323950260466258E12 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ] + }, + "rowCount": 4.791555234419632E12 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0", + "ws_item_sk" + ], + "exprs": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "literal": 1.3, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 2, + "scale": 1 + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 11, + "scale": 6 + } + } + ] + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 4.791555234419632E12 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "17" + ], + "rowCount": 6.534211864992455E25 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "18" + ], + "rowCount": 1.789941159471877E29 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "excess discount amount" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query93.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query93.q.out new file mode 100644 index 000000000000..1ff46ea6edf0 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query93.q.out @@ -0,0 +1,1116 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 86404891377, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 159044, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1334023, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1468124, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_ticket_number", + "ss_quantity", + "ss_sales_price" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 86404891377 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_returns" + ], + "table:alias": "store_returns", + "inputs": [], + "rowCount": 8634166995, + "avgRowSize": 249, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "sr_return_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "sr_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "sr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_store_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "sr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "sr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "sr_returned_date_sk" + ], + "colStats": [ + { + "name": "sr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "sr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "sr_ticket_number", + "ndv": 5114579988, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "sr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "sr_return_time_sk", + "ndv": 32389, + "minValue": 28799, + "maxValue": 61199 + }, + { + "name": "sr_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "sr_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "sr_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "sr_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "sr_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "sr_return_amt", + "ndv": 715216, + "minValue": 0, + "maxValue": 19643 + }, + { + "name": "sr_return_tax", + "ndv": 141365, + "minValue": 0, + "maxValue": 1714.37 + }, + { + "name": "sr_return_amt_inc_tax", + "ndv": 1520430, + "minValue": 0, + "maxValue": 21018.01 + }, + { + "name": "sr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "sr_return_ship_cost", + "ndv": 363000, + "minValue": 0, + "maxValue": 9975 + }, + { + "name": "sr_refunded_cash", + "ndv": 1187970, + "minValue": 0, + "maxValue": 18413.33 + }, + { + "name": "sr_reversed_charge", + "ndv": 926355, + "minValue": 0, + "maxValue": 18104.5 + }, + { + "name": "sr_store_credit", + "ndv": 937950, + "minValue": 0, + "maxValue": 17792.48 + }, + { + "name": "sr_net_loss", + "ndv": 851834, + "minValue": 0.5, + "maxValue": 11008.17 + }, + { + "name": "sr_returned_date_sk", + "ndv": 2004, + "minValue": 2450820, + "maxValue": 2452822 + } + ] + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 7, + "name": "$7" + } + ] + }, + "rowCount": 7.7707502955E9 + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sr_item_sk", + "sr_reason_sk", + "sr_ticket_number", + "sr_return_quantity" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "rowCount": 7.7707502955E9 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "reason" + ], + "table:alias": "reason", + "inputs": [], + "rowCount": 72, + "avgRowSize": 437, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "r_reason_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "r_reason_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 100, + "name": "r_reason_desc" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "r_reason_sk", + "ndv": 72, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "r_reason_desc", + "ndv": 71 + }, + { + "name": "r_reason_id", + "ndv": 72 + } + ] + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": "Did not like the warranty ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 100 + } + } + ] + }, + "rowCount": 10.799999999999999 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "r_reason_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 10.799999999999999 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "4", + "7" + ], + "rowCount": 1.258861547871E10 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 7, + "name": "$7" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "1", + "8" + ], + "rowCount": 2.4473653943057064E19 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 8, + "name": "$8" + } + ] + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 8, + "name": "$8" + } + ] + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + }, + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 3, + "name": "$3" + } + ], + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 10, + "scale": 0 + } + }, + { + "input": 4, + "name": "$4" + } + ] + } + ] + } + ], + "rowCount": 2.4473653943057064E19 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 28, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 2447365394305706496 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "sumsales" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 2447365394305706496 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query94.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query94.q.out new file mode 100644 index 000000000000..8356f7edcf17 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query94.q.out @@ -0,0 +1,2826 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "ws1", + "inputs": [], + "rowCount": 21600036511, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 10, + "name": "$10" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "rowCount": 1.5746426616519003E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_ship_date_sk", + "ws_ship_addr_sk", + "ws_web_site_sk", + "ws_warehouse_sk", + "ws_order_number", + "ws_ext_ship_cost", + "ws_net_profit" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 27, + "name": "$27" + }, + { + "input": 32, + "name": "$32" + } + ], + "rowCount": 1.5746426616519003E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "TX", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + "rowCount": 6000000 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_state" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": "TX", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ], + "type": { + "type": "CHAR", + "nullable": true, + "precision": 2 + } + } + ], + "rowCount": 6000000 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 7, + "name": "$7" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 14171783954867102 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_site" + ], + "table:alias": "web_site", + "inputs": [], + "rowCount": 84, + "avgRowSize": 1331, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "web_site_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "web_site_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "web_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "web_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "web_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "web_open_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "web_close_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "web_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "web_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "web_mkt_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "web_mkt_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "web_mkt_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "web_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "web_company_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "web_company_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "web_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "web_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "web_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "web_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "web_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "web_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "web_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "web_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "web_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "web_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "web_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "web_site_sk", + "ndv": 84, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "web_company_name", + "ndv": 7 + }, + { + "name": "web_site_id", + "ndv": 42 + }, + { + "name": "web_rec_start_date", + "ndv": 0, + "minValue": 10089, + "maxValue": 11550 + }, + { + "name": "web_rec_end_date", + "ndv": 0, + "minValue": 10819, + "maxValue": 11549 + }, + { + "name": "web_name", + "ndv": 15 + }, + { + "name": "web_open_date_sk", + "ndv": 42, + "minValue": 2450118, + "maxValue": 2450807 + }, + { + "name": "web_close_date_sk", + "ndv": 28, + "minValue": 2440993, + "maxValue": 2446218 + }, + { + "name": "web_class", + "ndv": 2 + }, + { + "name": "web_manager", + "ndv": 60 + }, + { + "name": "web_mkt_id", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "web_mkt_class", + "ndv": 65 + }, + { + "name": "web_mkt_desc", + "ndv": 64 + }, + { + "name": "web_market_manager", + "ndv": 66 + }, + { + "name": "web_company_id", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "web_street_number", + "ndv": 58 + }, + { + "name": "web_street_name", + "ndv": 80 + }, + { + "name": "web_street_type", + "ndv": 20 + }, + { + "name": "web_suite_number", + "ndv": 51 + }, + { + "name": "web_city", + "ndv": 52 + }, + { + "name": "web_county", + "ndv": 58 + }, + { + "name": "web_state", + "ndv": 30 + }, + { + "name": "web_zip", + "ndv": 56 + }, + { + "name": "web_country", + "ndv": 2 + }, + { + "name": "web_gmt_offset", + "ndv": 4, + "minValue": -8, + "maxValue": -5 + }, + { + "name": "web_tax_percentage", + "ndv": 13, + "minValue": 0, + "maxValue": 0.12 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "pri ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + "rowCount": 12.6 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "web_site_sk", + "web_company_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": "pri ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ], + "type": { + "type": "CHAR", + "nullable": true, + "precision": 50 + } + } + ], + "rowCount": 12.6 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 26784671674698820 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 925516800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 930700800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 18262.25 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 11, + "name": "$11" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "13" + ], + "rowCount": 7.337225554369027E19 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_ship_date_sk", + "ws_ship_addr_sk", + "ws_web_site_sk", + "ws_warehouse_sk", + "ws_order_number", + "ws_ext_ship_cost", + "ws_net_profit", + "d_date_sk", + "d_date", + "ca_address_sk", + "ca_state", + "web_site_sk", + "web_company_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + }, + { + "input": 10, + "name": "$10" + } + ], + "rowCount": 7.337225554369027E19 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "ws2", + "inputs": [], + "rowCount": 21600036511, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 14, + "name": "$14" + } + ] + }, + "rowCount": 1.94400328599E10 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_warehouse_sk", + "ws_order_number" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 16, + "name": "$16" + } + ], + "rowCount": 1.94400328599E10 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 14, + "name": "$14" + } + ] + }, + { + "op": { + "name": "<>", + "kind": "NOT_EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 13, + "name": "$13" + } + ] + } + ] + }, + "joinType": "semi", + "inputs": [ + "15", + "18" + ], + "rowCount": 6.6035029989321245E19 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_returns" + ], + "table:alias": "wr1", + "inputs": [], + "rowCount": 2160007345, + "avgRowSize": 281, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "wr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_account_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "wr_returned_date_sk" + ], + "colStats": [ + { + "name": "wr_order_number", + "ndv": 1317116406, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "wr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "wr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "wr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_returning_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "wr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "wr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "wr_return_amt", + "ndv": 1108704, + "minValue": 0, + "maxValue": 29191 + }, + { + "name": "wr_return_tax", + "ndv": 198904, + "minValue": 0, + "maxValue": 2620.34 + }, + { + "name": "wr_return_amt_inc_tax", + "ndv": 2111617, + "minValue": 0, + "maxValue": 31735.25 + }, + { + "name": "wr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "wr_return_ship_cost", + "ndv": 553061, + "minValue": 0, + "maxValue": 14624 + }, + { + "name": "wr_refunded_cash", + "ndv": 1631618, + "minValue": 0, + "maxValue": 28085.82 + }, + { + "name": "wr_reversed_charge", + "ndv": 1277260, + "minValue": 0, + "maxValue": 26135.99 + }, + { + "name": "wr_account_credit", + "ndv": 1249055, + "minValue": 0, + "maxValue": 24649.69 + }, + { + "name": "wr_net_loss", + "ndv": 1227508, + "minValue": 0.5, + "maxValue": 16733.32 + }, + { + "name": "wr_returned_date_sk", + "ndv": 2185, + "minValue": 2450819, + "maxValue": 2453002 + } + ] + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "literalTrue", + "wr_order_number" + ], + "exprs": [ + { + "literal": true, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 2160007345 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAntiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "input": 14, + "name": "$14" + } + ] + }, + "joinType": "anti", + "inputs": [ + "19", + "21" + ], + "rowCount": 6603502998932122624 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": true, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "order count", + "total shipping cost", + "total net profit" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query95.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query95.q.out new file mode 100644 index 000000000000..bee0ab697612 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query95.q.out @@ -0,0 +1,3457 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "ws1", + "inputs": [], + "rowCount": 21600036511, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 10, + "name": "$10" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ] + } + ] + }, + "rowCount": 1.5746426616519003E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_ship_date_sk", + "ws_ship_addr_sk", + "ws_web_site_sk", + "ws_order_number", + "ws_ext_ship_cost", + "ws_net_profit" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 16, + "name": "$16" + }, + { + "input": 27, + "name": "$27" + }, + { + "input": 32, + "name": "$32" + } + ], + "rowCount": 1.5746426616519003E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "customer_address" + ], + "table:alias": "customer_address", + "inputs": [], + "rowCount": 40000000, + "avgRowSize": 607, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "ca_address_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 16, + "name": "ca_address_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "ca_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "ca_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "ca_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "ca_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "ca_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "ca_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "ca_gmt_offset" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "ca_location_type" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "ca_address_sk", + "ndv": 40618307, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ca_state", + "ndv": 53 + }, + { + "name": "ca_address_id", + "ndv": 39667899 + }, + { + "name": "ca_street_number", + "ndv": 1014 + }, + { + "name": "ca_street_name", + "ndv": 8358 + }, + { + "name": "ca_street_type", + "ndv": 21 + }, + { + "name": "ca_suite_number", + "ndv": 76 + }, + { + "name": "ca_city", + "ndv": 985 + }, + { + "name": "ca_county", + "ndv": 1930 + }, + { + "name": "ca_zip", + "ndv": 9538 + }, + { + "name": "ca_country", + "ndv": 2 + }, + { + "name": "ca_gmt_offset", + "ndv": 6, + "minValue": -10, + "maxValue": -5 + }, + { + "name": "ca_location_type", + "ndv": 4 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 8, + "name": "$8" + }, + { + "literal": "TX", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ] + }, + "rowCount": 6000000 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ca_address_sk", + "ca_state" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": "TX", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 2 + } + } + ], + "type": { + "type": "CHAR", + "nullable": true, + "precision": 2 + } + } + ], + "rowCount": 6000000 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 6, + "name": "$6" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 14171783954867102 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_site" + ], + "table:alias": "web_site", + "inputs": [], + "rowCount": 84, + "avgRowSize": 1331, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "web_site_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "web_site_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "web_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "web_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "web_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "web_open_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "web_close_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "web_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "web_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "web_mkt_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "web_mkt_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "web_mkt_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "web_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "web_company_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "web_company_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "web_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "web_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "web_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "web_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "web_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "web_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "web_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "web_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "web_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "web_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "web_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "web_site_sk", + "ndv": 84, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "web_company_name", + "ndv": 7 + }, + { + "name": "web_site_id", + "ndv": 42 + }, + { + "name": "web_rec_start_date", + "ndv": 0, + "minValue": 10089, + "maxValue": 11550 + }, + { + "name": "web_rec_end_date", + "ndv": 0, + "minValue": 10819, + "maxValue": 11549 + }, + { + "name": "web_name", + "ndv": 15 + }, + { + "name": "web_open_date_sk", + "ndv": 42, + "minValue": 2450118, + "maxValue": 2450807 + }, + { + "name": "web_close_date_sk", + "ndv": 28, + "minValue": 2440993, + "maxValue": 2446218 + }, + { + "name": "web_class", + "ndv": 2 + }, + { + "name": "web_manager", + "ndv": 60 + }, + { + "name": "web_mkt_id", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "web_mkt_class", + "ndv": 65 + }, + { + "name": "web_mkt_desc", + "ndv": 64 + }, + { + "name": "web_market_manager", + "ndv": 66 + }, + { + "name": "web_company_id", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "web_street_number", + "ndv": 58 + }, + { + "name": "web_street_name", + "ndv": 80 + }, + { + "name": "web_street_type", + "ndv": 20 + }, + { + "name": "web_suite_number", + "ndv": 51 + }, + { + "name": "web_city", + "ndv": 52 + }, + { + "name": "web_county", + "ndv": 58 + }, + { + "name": "web_state", + "ndv": 30 + }, + { + "name": "web_zip", + "ndv": 56 + }, + { + "name": "web_country", + "ndv": 2 + }, + { + "name": "web_gmt_offset", + "ndv": 4, + "minValue": -8, + "maxValue": -5 + }, + { + "name": "web_tax_percentage", + "ndv": 13, + "minValue": 0, + "maxValue": 0.12 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 14, + "name": "$14" + }, + { + "literal": "pri ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + "rowCount": 12.6 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "web_site_sk", + "web_company_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": "pri ", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 50 + } + } + ], + "type": { + "type": "CHAR", + "nullable": true, + "precision": 50 + } + } + ], + "rowCount": 12.6 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 8, + "name": "$8" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 26784671674698820 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 925516800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 930700800000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk", + "d_date" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 18262.25 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "13" + ], + "rowCount": 7.337225554369027E19 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_ship_date_sk", + "ws_ship_addr_sk", + "ws_web_site_sk", + "ws_order_number", + "ws_ext_ship_cost", + "ws_net_profit", + "d_date_sk", + "d_date", + "ca_address_sk", + "ca_state", + "web_site_sk", + "web_company_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 11, + "name": "$11" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 8, + "name": "$8" + }, + { + "input": 9, + "name": "$9" + } + ], + "rowCount": 7.337225554369027E19 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "ws1", + "inputs": [], + "rowCount": 21600036511, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_warehouse_sk", + "ws_order_number" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 16, + "name": "$16" + } + ], + "rowCount": 21600036511 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_sales" + ], + "table:alias": "ws2", + "inputs": [], + "rowCount": 21600036511, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_web_site_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ws_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ws_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ws_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ws_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ws_sold_date_sk" + ], + "colStats": [ + { + "name": "ws_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "ws_order_number", + "ndv": 1800000000, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "ws_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "ws_ship_date_sk", + "ndv": 1902, + "minValue": 2450817, + "maxValue": 2452762 + }, + { + "name": "ws_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ws_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ws_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ws_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ws_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ws_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "ws_web_site_sk", + "ndv": 85, + "minValue": 1, + "maxValue": 84 + }, + { + "name": "ws_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "ws_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ws_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ws_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "ws_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "ws_ext_discount_amt", + "ndv": 1141615, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "ws_ext_sales_price", + "ndv": 1155428, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ws_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "ws_ext_tax", + "ndv": 233719, + "minValue": 0, + "maxValue": 2682.9 + }, + { + "name": "ws_coupon_amt", + "ndv": 1659025, + "minValue": 0, + "maxValue": 28824 + }, + { + "name": "ws_ext_ship_cost", + "ndv": 564319, + "minValue": 0, + "maxValue": 14950 + }, + { + "name": "ws_net_paid", + "ndv": 1870760, + "minValue": 0, + "maxValue": 29970 + }, + { + "name": "ws_net_paid_inc_tax", + "ndv": 2521035, + "minValue": 0, + "maxValue": 32492.9 + }, + { + "name": "ws_net_paid_inc_ship", + "ndv": 2577850, + "minValue": 0, + "maxValue": 44263 + }, + { + "name": "ws_net_paid_inc_ship_tax", + "ndv": 3413793, + "minValue": 0, + "maxValue": 46389.84 + }, + { + "name": "ws_net_profit", + "ndv": 2074138, + "minValue": -10000, + "maxValue": 19980 + }, + { + "name": "ws_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_warehouse_sk", + "ws_order_number" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 16, + "name": "$16" + } + ], + "rowCount": 21600036511 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + { + "op": { + "name": "<>", + "kind": "NOT_EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "17", + "19" + ], + "rowCount": 3.4992118295739978E19 + }, + { + "id": "21", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_order_number" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 3.4992118295739978E19 + }, + { + "id": "22", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 12, + "name": "$12" + } + ] + }, + "joinType": "semi", + "inputs": [ + "15", + "21" + ], + "rowCount": 7.337225554369027E19 + }, + { + "id": "23", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_warehouse_sk", + "ws_order_number" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 16, + "name": "$16" + } + ], + "inputs": [ + "16" + ], + "rowCount": 21600036511 + }, + { + "id": "24", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "web_returns" + ], + "table:alias": "web_returns", + "inputs": [], + "rowCount": 2160007345, + "avgRowSize": 281, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_refunded_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returning_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_web_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_reason_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "wr_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "wr_return_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_amt_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_fee" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_return_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_refunded_cash" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_reversed_charge" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_account_credit" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "wr_net_loss" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "wr_returned_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "wr_returned_date_sk" + ], + "colStats": [ + { + "name": "wr_order_number", + "ndv": 1317116406, + "minValue": 1, + "maxValue": 1800000000 + }, + { + "name": "wr_returned_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "wr_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "wr_refunded_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_refunded_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_refunded_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_refunded_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_returning_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "wr_returning_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "wr_returning_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "wr_returning_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "wr_web_page_sk", + "ndv": 4556, + "minValue": 1, + "maxValue": 4602 + }, + { + "name": "wr_reason_sk", + "ndv": 73, + "minValue": 1, + "maxValue": 72 + }, + { + "name": "wr_return_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "wr_return_amt", + "ndv": 1108704, + "minValue": 0, + "maxValue": 29191 + }, + { + "name": "wr_return_tax", + "ndv": 198904, + "minValue": 0, + "maxValue": 2620.34 + }, + { + "name": "wr_return_amt_inc_tax", + "ndv": 2111617, + "minValue": 0, + "maxValue": 31735.25 + }, + { + "name": "wr_fee", + "ndv": 9408, + "minValue": 0.5, + "maxValue": 100 + }, + { + "name": "wr_return_ship_cost", + "ndv": 553061, + "minValue": 0, + "maxValue": 14624 + }, + { + "name": "wr_refunded_cash", + "ndv": 1631618, + "minValue": 0, + "maxValue": 28085.82 + }, + { + "name": "wr_reversed_charge", + "ndv": 1277260, + "minValue": 0, + "maxValue": 26135.99 + }, + { + "name": "wr_account_credit", + "ndv": 1249055, + "minValue": 0, + "maxValue": 24649.69 + }, + { + "name": "wr_net_loss", + "ndv": 1227508, + "minValue": 0.5, + "maxValue": 16733.32 + }, + { + "name": "wr_returned_date_sk", + "ndv": 2185, + "minValue": 2450819, + "maxValue": 2453002 + } + ] + }, + { + "id": "25", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wr_order_number" + ], + "exprs": [ + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 2160007345 + }, + { + "id": "26", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 1, + "name": "$1" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "23", + "25" + ], + "rowCount": 6998435627404225536 + }, + { + "id": "27", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ws_warehouse_sk", + "ws_order_number" + ], + "exprs": [ + { + "input": 14, + "name": "$14" + }, + { + "input": 16, + "name": "$16" + } + ], + "inputs": [ + "18" + ], + "rowCount": 21600036511 + }, + { + "id": "28", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "<>", + "kind": "NOT_EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "26", + "27" + ], + "rowCount": 1.1337484880386084E28 + }, + { + "id": "29", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "wr_order_number" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1.1337484880386084E28 + }, + { + "id": "30", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSemiJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 12, + "name": "$12" + } + ] + }, + "joinType": "semi", + "inputs": [ + "22", + "29" + ], + "rowCount": 7.337225554369027E19 + }, + { + "id": "31", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": true, + "operands": [ + 3 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "32", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "order count", + "total shipping cost", + "total net profit" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query96.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query96.q.out new file mode 100644 index 000000000000..6810c6736668 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query96.q.out @@ -0,0 +1,1321 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 86404891377, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 159044, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1334023, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1468124, + "minValue": -10000, + "maxValue": 9986 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1824, + "minValue": 2450816, + "maxValue": 2452642 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 6, + "name": "$6" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 4, + "name": "$4" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + } + ] + }, + "rowCount": 6.298916581383301E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_sold_time_sk", + "ss_hdemo_sk", + "ss_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 6.298916581383301E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "time_dim" + ], + "table:alias": "time_dim", + "inputs": [], + "rowCount": 86400, + "avgRowSize": 377, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "t_time_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "t_time_id" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_time" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_hour" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_minute" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "t_second" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "t_am_pm" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "t_shift" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "t_sub_shift" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "t_meal_time" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "t_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "t_hour", + "ndv": 24, + "minValue": 0, + "maxValue": 23 + }, + { + "name": "t_minute", + "ndv": 62, + "minValue": 0, + "maxValue": 59 + }, + { + "name": "t_time_id", + "ndv": 87002 + }, + { + "name": "t_time", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "t_second", + "ndv": 62, + "minValue": 0, + "maxValue": 59 + }, + { + "name": "t_am_pm", + "ndv": 2 + }, + { + "name": "t_shift", + "ndv": 3 + }, + { + "name": "t_sub_shift", + "ndv": 4 + }, + { + "name": "t_meal_time", + "ndv": 4 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 8, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + { + "op": { + "name": ">=", + "kind": "GREATER_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 4, + "name": "$4" + }, + { + "literal": 30, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ] + }, + "rowCount": 6480 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "t_time_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 6480 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 6.122546917104568E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store" + ], + "table:alias": "store", + "inputs": [], + "rowCount": 1704, + "avgRowSize": 1375, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "s_store_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "s_store_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "s_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "s_closed_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_store_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_number_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_floor_space" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "s_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_market_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_geography_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "s_market_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "s_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_division_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "s_company_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "s_company_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 10, + "name": "s_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "s_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "s_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "s_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "s_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "s_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "s_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "s_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "s_store_sk", + "ndv": 1736, + "minValue": 1, + "maxValue": 1704 + }, + { + "name": "s_store_name", + "ndv": 11 + }, + { + "name": "s_store_id", + "ndv": 879 + }, + { + "name": "s_rec_start_date", + "ndv": 0, + "minValue": 9933, + "maxValue": 11394 + }, + { + "name": "s_rec_end_date", + "ndv": 0, + "minValue": 10663, + "maxValue": 11393 + }, + { + "name": "s_closed_date_sk", + "ndv": 263, + "minValue": 2450820, + "maxValue": 2451314 + }, + { + "name": "s_number_employees", + "ndv": 100, + "minValue": 200, + "maxValue": 300 + }, + { + "name": "s_floor_space", + "ndv": 1289, + "minValue": 5000201, + "maxValue": 9997773 + }, + { + "name": "s_hours", + "ndv": 4 + }, + { + "name": "s_manager", + "ndv": 1245 + }, + { + "name": "s_market_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "s_geography_class", + "ndv": 2 + }, + { + "name": "s_market_desc", + "ndv": 1311 + }, + { + "name": "s_market_manager", + "ndv": 1236 + }, + { + "name": "s_division_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_division_name", + "ndv": 2 + }, + { + "name": "s_company_id", + "ndv": 1, + "minValue": 1, + "maxValue": 1 + }, + { + "name": "s_company_name", + "ndv": 2 + }, + { + "name": "s_street_number", + "ndv": 736 + }, + { + "name": "s_street_name", + "ndv": 851 + }, + { + "name": "s_street_type", + "ndv": 21 + }, + { + "name": "s_suite_number", + "ndv": 76 + }, + { + "name": "s_city", + "ndv": 267 + }, + { + "name": "s_county", + "ndv": 128 + }, + { + "name": "s_state", + "ndv": 44 + }, + { + "name": "s_zip", + "ndv": 983 + }, + { + "name": "s_country", + "ndv": 2 + }, + { + "name": "s_gmt_offset", + "ndv": 5, + "minValue": -9, + "maxValue": -5 + }, + { + "name": "s_tax_percentage", + "ndv": 12, + "minValue": 0, + "maxValue": 0.11 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "literal": "ese", + "type": { + "type": "VARCHAR", + "nullable": false, + "precision": 50 + } + } + ] + }, + "rowCount": 255.6 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "s_store_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 255.6 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 4, + "name": "$4" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 2.3473844880178915E15 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "household_demographics" + ], + "table:alias": "household_demographics", + "inputs": [], + "rowCount": 7200, + "avgRowSize": 183, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "hd_demo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "hd_income_band_sk" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "hd_buy_potential" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_dep_count" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "hd_vehicle_count" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "hd_demo_sk", + "ndv": 7225, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "hd_dep_count", + "ndv": 10, + "minValue": 0, + "maxValue": 9 + }, + { + "name": "hd_income_band_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "hd_buy_potential", + "ndv": 6 + }, + { + "name": "hd_vehicle_count", + "ndv": 6, + "minValue": -1, + "maxValue": 4 + } + ] + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "literal": 5, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 1080 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "hd_demo_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1080 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 5, + "name": "$5" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "10", + "13" + ], + "rowCount": 380276287058898432 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "count", + "kind": "COUNT", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_c0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 1 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query97.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query97.q.out new file mode 100644 index 000000000000..bd1af8cf825e --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query97.q.out @@ -0,0 +1,1827 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + }, + "rowCount": 7.42597919451E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_customer_sk", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 2.0342263281741038E14 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "aggs": [], + "rowCount": 2.034226328174104E13 + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_customer_sk", + "ss_item_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 2.034226328174104E13 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43005109025, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1836, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1643867, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 33, + "name": "$33" + } + ] + }, + "rowCount": 3.87045981225E10 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_customer_sk", + "cs_item_sk", + "cs_sold_date_sk" + ], + "exprs": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 33, + "name": "$33" + } + ], + "rowCount": 3.87045981225E10 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "inputs": [ + "3" + ], + "rowCount": 18262.25 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "11", + "13" + ], + "rowCount": 1.0602495705939384E14 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 0, + 1 + ], + "aggs": [], + "rowCount": 1.0602495705939385E13 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_bill_customer_sk", + "cs_item_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 1.0602495705939385E13 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 3, + "name": "$3" + } + ] + } + ] + }, + "joinType": "full", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "8", + "16" + ], + "rowCount": 4.852772079639573E24 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "$f0", + "$f1", + "$f2" + ], + "exprs": [ + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NULL", + "kind": "IS_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NULL", + "kind": "IS_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 0, + "name": "$0" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ] + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 4.852772079639573E24 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 0 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 2 + ], + "name": null + } + ], + "rowCount": 1 + }, + { + "id": "20", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "store_only", + "catalog_only", + "store_and_catalog" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 1 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query98.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query98.q.out new file mode 100644 index 000000000000..226feecccf3d --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query98.q.out @@ -0,0 +1,1453 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "store_sales" + ], + "table:alias": "store_sales", + "inputs": [], + "rowCount": 82510879939, + "avgRowSize": 261, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_store_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "ss_ticket_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "ss_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "ss_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "ss_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "ss_sold_date_sk" + ], + "colStats": [ + { + "name": "ss_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "ss_ext_sales_price", + "ndv": 738605, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_sold_date_sk", + "ndv": 1823, + "minValue": 2450816, + "maxValue": 2452642 + }, + { + "name": "ss_sold_time_sk", + "ndv": 45279, + "minValue": 28800, + "maxValue": 75599 + }, + { + "name": "ss_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "ss_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "ss_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "ss_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "ss_store_sk", + "ndv": 870, + "minValue": 1, + "maxValue": 1702 + }, + { + "name": "ss_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "ss_ticket_number", + "ndv": 7200000000, + "minValue": 1, + "maxValue": 7200000000 + }, + { + "name": "ss_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "ss_list_price", + "ndv": 20258, + "minValue": 1, + "maxValue": 200 + }, + { + "name": "ss_sales_price", + "ndv": 20315, + "minValue": 0, + "maxValue": 200 + }, + { + "name": "ss_ext_discount_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "ss_ext_list_price", + "ndv": 759913, + "minValue": 1, + "maxValue": 20000 + }, + { + "name": "ss_ext_tax", + "ndv": 158652, + "minValue": 0, + "maxValue": 1797.48 + }, + { + "name": "ss_coupon_amt", + "ndv": 1219691, + "minValue": 0, + "maxValue": 19778 + }, + { + "name": "ss_net_paid", + "ndv": 1330581, + "minValue": 0, + "maxValue": 19972 + }, + { + "name": "ss_net_paid_inc_tax", + "ndv": 1755573, + "minValue": 0, + "maxValue": 21769.48 + }, + { + "name": "ss_net_profit", + "ndv": 1466906, + "minValue": -10000, + "maxValue": 9986 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 22, + "name": "$22" + } + ] + }, + "rowCount": 7.42597919451E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "ss_item_sk", + "ss_ext_sales_price", + "ss_sold_date_sk" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 14, + "name": "$14" + }, + { + "input": 22, + "name": "$22" + } + ], + "rowCount": 7.42597919451E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "item" + ], + "table:alias": "item", + "inputs": [], + "rowCount": 462000, + "avgRowSize": 1033, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "i_item_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "i_item_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "i_rec_end_date" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 200, + "name": "i_item_desc" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_current_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "i_wholesale_cost" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_brand_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_brand" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_class_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_category_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_category" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manufact_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_manufact" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_size" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_formulation" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "i_color" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_units" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "i_container" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "i_manager_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "i_product_name" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "i_item_sk", + "ndv": 464811, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "i_item_id", + "ndv": 247524 + }, + { + "name": "i_item_desc", + "ndv": 341846 + }, + { + "name": "i_current_price", + "ndv": 9391, + "minValue": 0.09, + "maxValue": 99.99 + }, + { + "name": "i_class", + "ndv": 99 + }, + { + "name": "i_category", + "ndv": 11 + }, + { + "name": "i_rec_start_date", + "ndv": 0, + "minValue": 10161, + "maxValue": 11622 + }, + { + "name": "i_rec_end_date", + "ndv": 0, + "minValue": 10891, + "maxValue": 11621 + }, + { + "name": "i_wholesale_cost", + "ndv": 7343, + "minValue": 0.02, + "maxValue": 89.74 + }, + { + "name": "i_brand_id", + "ndv": 962, + "minValue": 1001001, + "maxValue": 10016017 + }, + { + "name": "i_brand", + "ndv": 742 + }, + { + "name": "i_class_id", + "ndv": 16, + "minValue": 1, + "maxValue": 16 + }, + { + "name": "i_category_id", + "ndv": 10, + "minValue": 1, + "maxValue": 10 + }, + { + "name": "i_manufact_id", + "ndv": 987, + "minValue": 1, + "maxValue": 1000 + }, + { + "name": "i_manufact", + "ndv": 1004 + }, + { + "name": "i_size", + "ndv": 8 + }, + { + "name": "i_formulation", + "ndv": 344236 + }, + { + "name": "i_color", + "ndv": 95 + }, + { + "name": "i_units", + "ndv": 21 + }, + { + "name": "i_container", + "ndv": 2 + }, + { + "name": "i_manager_id", + "ndv": 104, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "i_product_name", + "ndv": 461487 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "IN", + "kind": "OTHER_FUNCTION", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 12, + "name": "$12" + }, + { + "literal": "Books", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 5 + } + }, + { + "literal": "Jewelry", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 7 + } + }, + { + "literal": "Sports", + "type": { + "type": "CHAR", + "nullable": false, + "precision": 6 + } + } + ] + }, + "rowCount": 115500 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_sk", + "i_item_id", + "i_item_desc", + "i_current_price", + "i_class", + "i_category" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 12, + "name": "$12" + } + ], + "rowCount": 115500 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 3, + "name": "$3" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 1.2865508954488575E15 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "input": 2, + "name": "$2" + } + ], + "type": { + "type": "TIMESTAMP", + "nullable": true, + "precision": 9 + } + }, + { + "literal": 979257600000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + }, + { + "literal": 981849600000, + "type": { + "type": "TIMESTAMP", + "nullable": false, + "precision": 9 + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "9" + ], + "rowCount": 3524297113561634304 + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 4, + 5, + 6, + 7, + 8 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 17, + "scale": 2 + }, + "distinct": false, + "operands": [ + 1 + ], + "name": null + } + ], + "rowCount": 352429711356163456 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_desc", + "i_category", + "i_class", + "i_current_price", + "itemrevenue", + "revenueratio", + "(tok_table_or_col i_item_id)" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 5, + "name": "$5" + }, + { + "op": { + "name": "/", + "kind": "DIVIDE", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "*", + "kind": "TIMES", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 5, + "name": "$5" + }, + { + "literal": 100, + "type": { + "type": "DECIMAL", + "nullable": false, + "precision": 10, + "scale": 0 + } + } + ] + }, + { + "op": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "operands": [ + { + "input": 5, + "name": "$5" + } + ], + "distinct": false, + "type": { + "type": "DECIMAL", + "nullable": true, + "precision": 27, + "scale": 2 + }, + "window": { + "partition": [ + { + "input": 3, + "name": "$3" + } + ], + "order": [ + { + "expr": { + "input": 3, + "name": "$3" + }, + "direction": "ASCENDING", + "null-direction": "FIRST" + } + ], + "range-lower": { + "type": "UNBOUNDED_PRECEDING" + }, + "range-upper": { + "type": "UNBOUNDED_FOLLOWING" + } + } + } + ] + }, + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 352429711356163456 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 6, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 0, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 5, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "rowCount": 352429711356163456 + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "i_item_desc", + "i_category", + "i_class", + "i_current_price", + "itemrevenue", + "revenueratio" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + } + ], + "rowCount": 352429711356163456 + } + ] + } +} diff --git a/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query99.q.out b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query99.q.out new file mode 100644 index 000000000000..26d38d695974 --- /dev/null +++ b/ql/src/test/results/clientpositive/perf/tpcds30tb/json/query99.q.out @@ -0,0 +1,2574 @@ +{ + "CBOPlan": { + "rels": [ + { + "id": "0", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "catalog_sales" + ], + "table:alias": "catalog_sales", + "inputs": [], + "rowCount": 43220864887, + "avgRowSize": 337, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_time_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_bill_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_customer_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_cdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_hdemo_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_addr_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_call_center_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_catalog_page_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_ship_mode_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_warehouse_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_item_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_promo_sk" + }, + { + "type": "BIGINT", + "nullable": false, + "name": "cs_order_number" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cs_quantity" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_discount_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_sales_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_wholesale_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_list_price" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_coupon_amt" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_ext_ship_cost" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_paid_inc_ship_tax" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 7, + "scale": 2, + "name": "cs_net_profit" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cs_sold_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "partitionColumns": [ + "cs_sold_date_sk" + ], + "colStats": [ + { + "name": "cs_ship_date_sk", + "ndv": 1880, + "minValue": 2450817, + "maxValue": 2452744 + }, + { + "name": "cs_call_center_sk", + "ndv": 61, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cs_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "cs_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "cs_sold_date_sk", + "ndv": 1837, + "minValue": 2450815, + "maxValue": 2452654 + }, + { + "name": "cs_sold_time_sk", + "ndv": 85503, + "minValue": 0, + "maxValue": 86399 + }, + { + "name": "cs_bill_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_bill_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_bill_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_bill_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_ship_customer_sk", + "ndv": 78525965, + "minValue": 1, + "maxValue": 80000000 + }, + { + "name": "cs_ship_cdemo_sk", + "ndv": 1920801, + "minValue": 1, + "maxValue": 1920800 + }, + { + "name": "cs_ship_hdemo_sk", + "ndv": 7201, + "minValue": 1, + "maxValue": 7200 + }, + { + "name": "cs_ship_addr_sk", + "ndv": 40000001, + "minValue": 1, + "maxValue": 40000000 + }, + { + "name": "cs_catalog_page_sk", + "ndv": 27932, + "minValue": 1, + "maxValue": 38675 + }, + { + "name": "cs_item_sk", + "ndv": 462000, + "minValue": 1, + "maxValue": 462000 + }, + { + "name": "cs_promo_sk", + "ndv": 2301, + "minValue": 1, + "maxValue": 2300 + }, + { + "name": "cs_order_number", + "ndv": 4459647885, + "minValue": 1, + "maxValue": 4800000000 + }, + { + "name": "cs_quantity", + "ndv": 101, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_wholesale_cost", + "ndv": 9382, + "minValue": 1, + "maxValue": 100 + }, + { + "name": "cs_list_price", + "ndv": 31080, + "minValue": 1, + "maxValue": 300 + }, + { + "name": "cs_sales_price", + "ndv": 31054, + "minValue": 0, + "maxValue": 300 + }, + { + "name": "cs_ext_discount_amt", + "ndv": 1138649, + "minValue": 0, + "maxValue": 29982 + }, + { + "name": "cs_ext_sales_price", + "ndv": 1151692, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_ext_wholesale_cost", + "ndv": 381232, + "minValue": 1, + "maxValue": 10000 + }, + { + "name": "cs_ext_list_price", + "ndv": 1208442, + "minValue": 1, + "maxValue": 30000 + }, + { + "name": "cs_ext_tax", + "ndv": 228881, + "minValue": 0, + "maxValue": 2673.27 + }, + { + "name": "cs_coupon_amt", + "ndv": 1644740, + "minValue": 0, + "maxValue": 28730 + }, + { + "name": "cs_ext_ship_cost", + "ndv": 571510, + "minValue": 0, + "maxValue": 14994 + }, + { + "name": "cs_net_paid", + "ndv": 1883946, + "minValue": 0, + "maxValue": 29943 + }, + { + "name": "cs_net_paid_inc_tax", + "ndv": 2551581, + "minValue": 0, + "maxValue": 32376.27 + }, + { + "name": "cs_net_paid_inc_ship", + "ndv": 2600391, + "minValue": 0, + "maxValue": 43956 + }, + { + "name": "cs_net_paid_inc_ship_tax", + "ndv": 3397311, + "minValue": 0, + "maxValue": 46593.36 + }, + { + "name": "cs_net_profit", + "ndv": 2083412, + "minValue": -10000, + "maxValue": 19962 + } + ] + }, + { + "id": "1", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 1, + "name": "$1" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 13, + "name": "$13" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 12, + "name": "$12" + } + ] + }, + { + "op": { + "name": "IS NOT NULL", + "kind": "IS_NOT_NULL", + "syntax": "POSTFIX" + }, + "operands": [ + { + "input": 10, + "name": "$10" + } + ] + } + ] + }, + "rowCount": 2.8357209452360706E10 + }, + { + "id": "2", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cs_ship_date_sk", + "cs_call_center_sk", + "cs_ship_mode_sk", + "cs_warehouse_sk", + "$f3", + "$f4", + "$f5", + "$f6", + "$f7" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 10, + "name": "$10" + }, + { + "input": 12, + "name": "$12" + }, + { + "input": 13, + "name": "$13" + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 33, + "name": "$33" + } + ] + }, + { + "literal": 30, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 33, + "name": "$33" + } + ] + }, + { + "literal": 30, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 33, + "name": "$33" + } + ] + }, + { + "literal": 60, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 33, + "name": "$33" + } + ] + }, + { + "literal": 60, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 33, + "name": "$33" + } + ] + }, + { + "literal": 90, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "AND", + "kind": "AND", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 33, + "name": "$33" + } + ] + }, + { + "literal": 90, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "op": { + "name": "<=", + "kind": "LESS_THAN_OR_EQUAL", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 33, + "name": "$33" + } + ] + }, + { + "literal": 120, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + }, + { + "op": { + "name": "CAST", + "kind": "CAST", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": "CASE", + "kind": "CASE", + "syntax": "SPECIAL" + }, + "operands": [ + { + "op": { + "name": ">", + "kind": "GREATER_THAN", + "syntax": "BINARY" + }, + "operands": [ + { + "op": { + "name": "-", + "kind": "MINUS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 33, + "name": "$33" + } + ] + }, + { + "literal": 120, + "type": { + "type": "BIGINT", + "nullable": false + } + } + ] + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 0, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + } + ], + "type": { + "type": "INTEGER", + "nullable": true + } + } + ], + "rowCount": 2.8357209452360706E10 + }, + { + "id": "3", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "date_dim" + ], + "table:alias": "date_dim", + "inputs": [], + "rowCount": 73049, + "avgRowSize": 347, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "d_date_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "d_date_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "d_date" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_month_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_week_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dow" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_moy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_qoy" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_year" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_quarter_seq" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_fy_week_seq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 9, + "name": "d_day_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 6, + "name": "d_quarter_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_holiday" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_weekend" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_following_holiday" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_first_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_last_dom" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_ly" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "d_same_day_lq" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_day" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_week" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_month" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_quarter" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 1, + "name": "d_current_year" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "d_date_sk", + "ndv": 67850, + "minValue": 2415022, + "maxValue": 2488070 + }, + { + "name": "d_month_seq", + "ndv": 2439, + "minValue": 0, + "maxValue": 2400 + }, + { + "name": "d_date_id", + "ndv": 71022 + }, + { + "name": "d_date", + "ndv": 0, + "minValue": -25566, + "maxValue": 47482 + }, + { + "name": "d_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_dow", + "ndv": 7, + "minValue": 0, + "maxValue": 6 + }, + { + "name": "d_moy", + "ndv": 12, + "minValue": 1, + "maxValue": 12 + }, + { + "name": "d_dom", + "ndv": 31, + "minValue": 1, + "maxValue": 31 + }, + { + "name": "d_qoy", + "ndv": 4, + "minValue": 1, + "maxValue": 4 + }, + { + "name": "d_fy_year", + "ndv": 199, + "minValue": 1900, + "maxValue": 2100 + }, + { + "name": "d_fy_quarter_seq", + "ndv": 808, + "minValue": 1, + "maxValue": 801 + }, + { + "name": "d_fy_week_seq", + "ndv": 11297, + "minValue": 1, + "maxValue": 10436 + }, + { + "name": "d_day_name", + "ndv": 7 + }, + { + "name": "d_quarter_name", + "ndv": 800 + }, + { + "name": "d_holiday", + "ndv": 2 + }, + { + "name": "d_weekend", + "ndv": 2 + }, + { + "name": "d_following_holiday", + "ndv": 2 + }, + { + "name": "d_first_dom", + "ndv": 2332, + "minValue": 2415021, + "maxValue": 2488070 + }, + { + "name": "d_last_dom", + "ndv": 2401, + "minValue": 2415020, + "maxValue": 2488372 + }, + { + "name": "d_same_day_ly", + "ndv": 67791, + "minValue": 2414657, + "maxValue": 2487705 + }, + { + "name": "d_same_day_lq", + "ndv": 67904, + "minValue": 2414930, + "maxValue": 2487978 + }, + { + "name": "d_current_day", + "ndv": 1 + }, + { + "name": "d_current_week", + "ndv": 1 + }, + { + "name": "d_current_month", + "ndv": 2 + }, + { + "name": "d_current_quarter", + "ndv": 2 + }, + { + "name": "d_current_year", + "ndv": 2 + } + ] + }, + { + "id": "4", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveFilter", + "condition": { + "op": { + "name": "BETWEEN", + "kind": "BETWEEN", + "syntax": "SPECIAL" + }, + "operands": [ + { + "literal": false, + "type": { + "type": "BOOLEAN", + "nullable": false + } + }, + { + "input": 3, + "name": "$3" + }, + { + "literal": 1212, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 1223, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ] + }, + "rowCount": 18262.25 + }, + { + "id": "5", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "d_date_sk" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + } + ], + "rowCount": 18262.25 + }, + { + "id": "6", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 9, + "name": "$9" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "2", + "5" + ], + "rowCount": 7.767996724820614E13 + }, + { + "id": "7", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "ship_mode" + ], + "table:alias": "ship_mode", + "inputs": [], + "rowCount": 20, + "avgRowSize": 397, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "sm_ship_mode_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "sm_ship_mode_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 30, + "name": "sm_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "sm_code" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "sm_carrier" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "sm_contract" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "sm_ship_mode_sk", + "ndv": 20, + "minValue": 1, + "maxValue": 20 + }, + { + "name": "sm_type", + "ndv": 6 + }, + { + "name": "sm_ship_mode_id", + "ndv": 20 + }, + { + "name": "sm_code", + "ndv": 4 + }, + { + "name": "sm_carrier", + "ndv": 20 + }, + { + "name": "sm_contract", + "ndv": 20 + } + ] + }, + { + "id": "8", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "sm_ship_mode_sk", + "sm_type" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + } + ], + "rowCount": 20 + }, + { + "id": "9", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "input": 10, + "name": "$10" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "6", + "8" + ], + "rowCount": 2.330399017446184E14 + }, + { + "id": "10", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "warehouse" + ], + "table:alias": "warehouse", + "inputs": [], + "rowCount": 27, + "avgRowSize": 679, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "w_warehouse_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "w_warehouse_id" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "w_warehouse_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "w_warehouse_sq_ft" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "w_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "w_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "w_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "w_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "w_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "w_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "w_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "w_gmt_offset" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "w_warehouse_sk", + "ndv": 27, + "minValue": 1, + "maxValue": 27 + }, + { + "name": "w_warehouse_name", + "ndv": 27 + }, + { + "name": "w_warehouse_id", + "ndv": 27 + }, + { + "name": "w_warehouse_sq_ft", + "ndv": 26, + "minValue": 73065, + "maxValue": 977787 + }, + { + "name": "w_street_number", + "ndv": 26 + }, + { + "name": "w_street_name", + "ndv": 27 + }, + { + "name": "w_street_type", + "ndv": 16 + }, + { + "name": "w_suite_number", + "ndv": 21 + }, + { + "name": "w_city", + "ndv": 18 + }, + { + "name": "w_county", + "ndv": 14 + }, + { + "name": "w_state", + "ndv": 12 + }, + { + "name": "w_zip", + "ndv": 24 + }, + { + "name": "w_country", + "ndv": 1 + }, + { + "name": "w_gmt_offset", + "ndv": 4, + "minValue": -8, + "maxValue": -5 + } + ] + }, + { + "id": "11", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "w_warehouse_sk", + "$f0" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "op": { + "name": "substr", + "kind": "OTHER_FUNCTION", + "syntax": "FUNCTION" + }, + "operands": [ + { + "input": 2, + "name": "$2" + }, + { + "literal": 1, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + { + "literal": 20, + "type": { + "type": "INTEGER", + "nullable": false + } + } + ], + "class": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSqlFunction", + "type": { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647 + }, + "deterministic": true, + "dynamic": false + } + ], + "rowCount": 27 + }, + { + "id": "12", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 3, + "name": "$3" + }, + { + "input": 12, + "name": "$12" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "9", + "11" + ], + "rowCount": 9.438116020657045E14 + }, + { + "id": "13", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveTableScan", + "table": [ + "default", + "call_center" + ], + "table:alias": "call_center", + "inputs": [], + "rowCount": 60, + "avgRowSize": 1483, + "rowType": { + "fields": [ + { + "type": "BIGINT", + "nullable": false, + "name": "cc_call_center_sk" + }, + { + "type": "VARCHAR", + "nullable": false, + "precision": 2147483647, + "name": "cc_call_center_id" + }, + { + "type": "DATE", + "nullable": true, + "name": "cc_rec_start_date" + }, + { + "type": "DATE", + "nullable": true, + "name": "cc_rec_end_date" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cc_closed_date_sk" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "cc_open_date_sk" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "cc_name" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "cc_class" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_employees" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_sq_ft" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 20, + "name": "cc_hours" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "cc_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_mkt_id" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "cc_mkt_class" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 100, + "name": "cc_mkt_desc" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 40, + "name": "cc_market_manager" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_division" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 50, + "name": "cc_division_name" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "cc_company" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 50, + "name": "cc_company_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cc_street_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "cc_street_name" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 15, + "name": "cc_street_type" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cc_suite_number" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 60, + "name": "cc_city" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 30, + "name": "cc_county" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 2, + "name": "cc_state" + }, + { + "type": "CHAR", + "nullable": true, + "precision": 10, + "name": "cc_zip" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 20, + "name": "cc_country" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "cc_gmt_offset" + }, + { + "type": "DECIMAL", + "nullable": true, + "precision": 5, + "scale": 2, + "name": "cc_tax_percentage" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "BLOCK__OFFSET__INSIDE__FILE" + }, + { + "type": "VARCHAR", + "nullable": true, + "precision": 2147483647, + "name": "INPUT__FILE__NAME" + }, + { + "fields": [ + { + "type": "BIGINT", + "nullable": true, + "name": "writeid" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "bucketid" + }, + { + "type": "BIGINT", + "nullable": true, + "name": "rowid" + } + ], + "nullable": true, + "name": "ROW__ID" + }, + { + "type": "BOOLEAN", + "nullable": true, + "name": "ROW__IS__DELETED" + } + ], + "nullable": false + }, + "colStats": [ + { + "name": "cc_call_center_sk", + "ndv": 60, + "minValue": 1, + "maxValue": 60 + }, + { + "name": "cc_name", + "ndv": 30 + }, + { + "name": "cc_call_center_id", + "ndv": 30 + }, + { + "name": "cc_rec_start_date", + "ndv": 0, + "minValue": 10227, + "maxValue": 11688 + }, + { + "name": "cc_rec_end_date", + "ndv": 0, + "minValue": 10957, + "maxValue": 11687 + }, + { + "name": "cc_closed_date_sk", + "ndv": 1, + "minValue": null, + "maxValue": null + }, + { + "name": "cc_open_date_sk", + "ndv": 30, + "minValue": 2450794, + "maxValue": 2451146 + }, + { + "name": "cc_class", + "ndv": 3 + }, + { + "name": "cc_employees", + "ndv": 43, + "minValue": 5412266, + "maxValue": 1963174023 + }, + { + "name": "cc_sq_ft", + "ndv": 47, + "minValue": -2108783316, + "maxValue": 2044891959 + }, + { + "name": "cc_hours", + "ndv": 3 + }, + { + "name": "cc_manager", + "ndv": 42 + }, + { + "name": "cc_mkt_id", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "cc_mkt_class", + "ndv": 52 + }, + { + "name": "cc_mkt_desc", + "ndv": 48 + }, + { + "name": "cc_market_manager", + "ndv": 48 + }, + { + "name": "cc_division", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "cc_division_name", + "ndv": 6 + }, + { + "name": "cc_company", + "ndv": 6, + "minValue": 1, + "maxValue": 6 + }, + { + "name": "cc_company_name", + "ndv": 6 + }, + { + "name": "cc_street_number", + "ndv": 30 + }, + { + "name": "cc_street_name", + "ndv": 29 + }, + { + "name": "cc_street_type", + "ndv": 14 + }, + { + "name": "cc_suite_number", + "ndv": 26 + }, + { + "name": "cc_city", + "ndv": 25 + }, + { + "name": "cc_county", + "ndv": 25 + }, + { + "name": "cc_state", + "ndv": 19 + }, + { + "name": "cc_zip", + "ndv": 30 + }, + { + "name": "cc_country", + "ndv": 1 + }, + { + "name": "cc_gmt_offset", + "ndv": 4, + "minValue": -8, + "maxValue": -5 + }, + { + "name": "cc_tax_percentage", + "ndv": 13, + "minValue": 0, + "maxValue": 0.12 + } + ] + }, + { + "id": "14", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "cc_call_center_sk", + "cc_name" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 6, + "name": "$6" + } + ], + "rowCount": 60 + }, + { + "id": "15", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveJoin", + "condition": { + "op": { + "name": "=", + "kind": "EQUALS", + "syntax": "BINARY" + }, + "operands": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 14, + "name": "$14" + } + ] + }, + "joinType": "inner", + "algorithm": "none", + "cost": "not available", + "inputs": [ + "12", + "14" + ], + "rowCount": 8494304418591340 + }, + { + "id": "16", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveAggregate", + "group": [ + 11, + 13, + 15 + ], + "aggs": [ + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 4 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 5 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 6 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 7 + ], + "name": null + }, + { + "agg": { + "name": "sum", + "kind": "SUM", + "syntax": "FUNCTION_STAR" + }, + "type": { + "type": "BIGINT", + "nullable": true + }, + "distinct": false, + "operands": [ + 8 + ], + "name": null + } + ], + "rowCount": 849430441859134 + }, + { + "id": "17", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_o__c0", + "sm_type", + "cc_name", + "30 days", + "31-60 days", + "61-90 days", + "91-120 days", + ">120 days", + "(tok_function substr (tok_table_or_col w_warehouse_name) 1 20)" + ], + "exprs": [ + { + "input": 1, + "name": "$1" + }, + { + "input": 0, + "name": "$0" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + }, + { + "input": 1, + "name": "$1" + } + ], + "rowCount": 849430441859134 + }, + { + "id": "18", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveSortLimit", + "collation": [ + { + "field": 8, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 1, + "direction": "ASCENDING", + "nulls": "LAST" + }, + { + "field": 2, + "direction": "ASCENDING", + "nulls": "LAST" + } + ], + "fetch": { + "literal": 100, + "type": { + "type": "INTEGER", + "nullable": false + } + }, + "rowCount": 100 + }, + { + "id": "19", + "relOp": "org.apache.hadoop.hive.ql.optimizer.calcite.reloperators.HiveProject", + "fields": [ + "_c0", + "sm_type", + "cc_name", + "30 days", + "31-60 days", + "61-90 days", + "91-120 days", + ">120 days" + ], + "exprs": [ + { + "input": 0, + "name": "$0" + }, + { + "input": 1, + "name": "$1" + }, + { + "input": 2, + "name": "$2" + }, + { + "input": 3, + "name": "$3" + }, + { + "input": 4, + "name": "$4" + }, + { + "input": 5, + "name": "$5" + }, + { + "input": 6, + "name": "$6" + }, + { + "input": 7, + "name": "$7" + } + ], + "rowCount": 100 + } + ] + } +}