hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <>
Subject [jira] [Work logged] (HIVE-23965) Improve plan regression tests using TPCDS30TB metastore dump and custom configs
Date Tue, 17 Nov 2020 17:22:00 GMT


ASF GitHub Bot logged work on HIVE-23965:

                Author: ASF GitHub Bot
            Created on: 17/Nov/20 17:21
            Start Date: 17/Nov/20 17:21
    Worklog Time Spent: 10m 
      Work Description: kgyrtkirk commented on a change in pull request #1347:

File path: standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/dbinstall/rules/
@@ -0,0 +1,50 @@
+ * 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
+ * <p>
+ *
+ * <p>
+ * 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.metastore.dbinstall.rules;
+ * JUnit TestRule for Postgres metastore with TPCDS schema and stat information.
+ */
+public class PostgresTPCDS extends Postgres {
+  @Override
+  public String getDockerImageName() {
+    return "zabetak/postgres-tpcds-metastore:1.1";
+  }
+  @Override
+  public String getJdbcUrl() {
+    return "jdbc:postgresql://localhost:5432/metastore";
+  }
+  @Override
+  public String getHiveUser() {
+    return "hive";
+  }
+  @Override
+  public String getHivePassword() {
+    return "hive";
+  }
+  @Override
+  public void install() {
+    // Do not do anything since the postgres container contains a fully initialized

Review comment:
       I think this needs to be updated during patch development to somehow pass the tests
when the schema is changed (you cant run the tests against the previous schema if its incompatible)
   Lets see if we bump into any issues :)

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:

Issue Time Tracking

    Worklog Id:     (was: 513048)
    Time Spent: 4h 20m  (was: 4h 10m)

> Improve plan regression tests using TPCDS30TB metastore dump and custom configs
> -------------------------------------------------------------------------------
>                 Key: HIVE-23965
>                 URL:
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Stamatis Zampetakis
>            Assignee: Stamatis Zampetakis
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 4h 20m
>  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

View raw message