Jason Fehr has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/21153


Change subject: IMPALA-12913: Refactor Workload Management Custom Cluser Tests
......................................................................

IMPALA-12913: Refactor Workload Management Custom Cluser Tests

The custom cluster tests that assert the workload
management functionality to insert completed queries into
the impala_query_log table were inefficient because they
created their own database tables and added data to those
tables.

This patch updates these tests to use the existing tables
in the functional database where possible. The few tests
that need their own tables now have those tables set up in
a database created by the pytest unique_database fixture
instead of using the default database.

A new table has also been added to the functional database.
This table is named zipcode_timezones and contains two
columns, the first having a few zipcodes and the second
having their corresponding timezone. This table can be used
to join the zipcode_incomes and alltimezones tables. This
table is populated by a new csv file in the testdata
directory.

Change-Id: I1e3249a8f306cf43de0d6f6586711c779399e83b
---
A testdata/data/zipcodes_timezones.csv
M testdata/datasets/functional/functional_schema_template.sql
M tests/custom_cluster/test_query_log.py
3 files changed, 662 insertions(+), 194 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/53/21153/1
--
To view, visit http://gerrit.cloudera.org:8080/21153
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1e3249a8f306cf43de0d6f6586711c779399e83b
Gerrit-Change-Number: 21153
Gerrit-PatchSet: 1
Gerrit-Owner: Jason Fehr <[email protected]>

Reply via email to