[ 
https://issues.apache.org/jira/browse/HIVE-23965?focusedWorklogId=468478&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-468478
 ]

ASF GitHub Bot logged work on HIVE-23965:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 10/Aug/20 09:27
            Start Date: 10/Aug/20 09:27
    Worklog Time Spent: 10m 
      Work Description: zabetak commented on a change in pull request #1347:
URL: https://github.com/apache/hive/pull/1347#discussion_r467785069



##########
File path: data/conf/tpcds30tb/tez/hive-site.xml
##########
@@ -0,0 +1,214 @@
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+<!--
+   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.
+-->
+<configuration>
+    <property>
+        <name>hive.in.test</name>
+        <value>true</value>
+        <description>Internal marker for test. Used for masking env-dependent 
values</description>
+    </property>
+    <property>
+        <name>hive.rpc.query.plan</name>
+        <value>true</value>
+    </property>
+    <property>
+        <name>hive.llap.execution.mode</name>
+        <value>only</value>
+    </property>
+    <property>
+        <name>hive.exec.post.hooks</name>
+        <value>
+            org.apache.hadoop.hive.ql.hooks.HiveProtoLoggingHook
+        </value>
+    </property>
+    <property>
+        <name>hive.zookeeper.kerberos.enabled</name>
+        <value>false</value>
+    </property>
+    <property>
+        <name>hive.privilege.synchronizer</name>
+        <value>false</value>
+    </property>
+    <property>
+        <name>javax.jdo.option.ConnectionDriverName</name>
+        <value>org.postgresql.Driver</value>
+    </property>
+    <property>
+        <name>hive.exec.scratchdir</name>
+        <value>${test.tmp.dir}/scratchdir</value>
+        <description>Scratch space for Hive jobs</description>
+    </property>
+    <property>
+        <name>hive.server2.tez.sessions.init.threads</name>
+        <value>1</value>
+    </property>
+    <property>
+        <name>hive.optimize.dynamic.partition.hashjoin</name>
+        <value>true</value>
+    </property>
+    <property>
+        <name>hive.exec.orc.split.strategy</name>
+        <value>BI</value>
+    </property>
+    <property>
+        <name>hive.mapjoin.bucket.cache.size</name>
+        <value>10000</value>
+    </property>
+    <property>
+        <name>hive.current.database</name>
+        <value>tpcds_bin_partitioned_orc_30000</value>
+    </property>
+    <property>
+        <name>hive.optimize.metadataonly</name>
+        <value>true</value>
+    </property>
+    <property>
+        
<name>hive.vectorized.execution.mapjoin.native.fast.hashtable.enabled</name>
+        <value>true</value>
+    </property>
+    <property>
+        <name>hive.execution.mode</name>
+        <value>llap</value>
+    </property>
+    <property>
+        <name>hive.prewarm.numcontainers</name>
+        <value>3</value>
+    </property>
+    <property>
+        <name>hive.tez.dynamic.partition.pruning</name>
+        <value>true</value>
+    </property>
+    <property>
+        <name>hive.support.concurrency</name>
+        <value>true</value>
+    </property>
+    <property>
+        <name>hive.txn.manager</name>
+        <value>org.apache.hadoop.hive.ql.lockmgr.DbTxnManager</value>
+    </property>
+    <property>
+        <name>hive.llap.kerberos.enabled</name>
+        <value>false</value>
+    </property>
+    <property>
+        <name>hive.load.data.owner</name>
+        <value>hive</value>
+    </property>
+    <property>
+        <name>hive.enforce.sortmergebucketmapjoin</name>
+        <value>true</value>
+    </property>
+    <property>
+        <name>hive.limit.optimize.enable</name>
+        <value>true</value>
+    </property>
+    <property>
+        <name>hive.auto.convert.sortmerge.join.to.mapjoin</name>
+        <value>true</value>
+    </property>
+    <property>
+        <name>hive.txn.acid.dir.cache.duration</name>
+        <value>0</value>
+    </property>
+    <property>
+        <name>hive.optimize.bucketmapjoin</name>
+        <value>true</value>
+    </property>
+    <property>
+        <name>hive.tez.container.size</name>
+        <value>4096</value>
+    </property>
+    <property>
+        <name>hive.stats.fetch.bitvector</name>
+        <value>true</value>

Review comment:
       We should but maybe this requires more discussion and I guess it is 
outside the scope of this PR. We can open the discussion in the dev list or 
open up a follow-up JIRA. WDYT?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 468478)
    Time Spent: 40m  (was: 0.5h)

> Improve plan regression tests using TPCDS30TB metastore dump and custom 
> configs
> -------------------------------------------------------------------------------
>
>                 Key: HIVE-23965
>                 URL: https://issues.apache.org/jira/browse/HIVE-23965
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Stamatis Zampetakis
>            Assignee: Stamatis Zampetakis
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> The existing regression tests (HIVE-12586) based on TPC-DS have certain 
> shortcomings:
> The table statistics do not reflect cardinalities from a specific TPC-DS 
> scale factor (SF). Some tables are from a 30TB dataset, others from 200GB 
> dataset, and others from a 3GB dataset. This mix leads to plans that may 
> never appear when using an actual TPC-DS dataset. 
> The existing statistics do not contain information about partitions something 
> that can have a big impact on the resulting plans.
> The existing regression tests rely on more or less on the default 
> configuration (hive-site.xml). In real-life scenarios though some of the 
> configurations differ and may impact the choices of the optimizer.
> This issue aims to address the above shortcomings by using a curated 
> TPCDS30TB metastore dump along with some custom hive configurations. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to