hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Vary <>
Subject Re: Review Request 62782: HIVE-17706 Add a possibility to run the BeeLine tests on the default database
Date Fri, 06 Oct 2017 10:43:44 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated Oct. 6, 2017, 10:43 a.m.)

Review request for hive and Barna Zsombor Klara.


Rebased the patch

Bugs: HIVE-17706

Repository: hive-git


- Added a cleanup method which removed unkonwn databases, tables and view. This makes it is
possible to run the tests sequentially using 'default' database.
- Renamed the test.rewrite.source.tables parameter to so it makes
more sense.
- Copied some masking from QTestUtil
- Enhanced the table name rewriting regexp a little, so mixed case tablenames are kept as
it is
- In the QFile made it possible to not call create/drop database command, if not needed.

I would value any advice where the cleanup logic should be kept.
- I this solution when the tests are parallel then the cleanup is in QFileBeeLineClient (create/drop
database), when the tests are sequential then the cleanup is in the CoreBeeLineDriver.

Would it be a good idea to move every cleanup related stuff to CoreBeeLineDriver? Like:
- QFileBeeLineClient.beforeExecute
- QFileBeeLineClient.afterExecute
Both of these are need QFile specific info, and an existing BeeLineClient, which we currently
do not have in hand in the CoreBeeLineDriver, and more refactoring is needed

Or would it be a good idea to move every cleanup related stuff to QFileBeeLineClient? Like:
- CoreBeeLineDriver.runCleanup
This is really cleanup stuff

Or we should leave as it is :)

Any comments are welcome.

Diffs (updated)

  itests/util/src/main/java/org/apache/hadoop/hive/cli/control/ 1fdce17

  itests/util/src/main/java/org/apache/hive/beeline/ 38b0d91 
  itests/util/src/main/java/org/apache/hive/beeline/ 2f91834 




Run the tests manually with, and without the parameter


Peter Vary

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message