impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Brown (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-3980: Re-enable Hive as a target database for the Random Query Generator
Date Tue, 13 Sep 2016 15:44:36 GMT
Michael Brown has posted comments on this change.

Change subject: IMPALA-3980: Re-enable Hive as a target database for the Random Query Generator

Patch Set 2:

Commit Message:

PS2, Line 7: IMPALA-3980: Re-enable Hive as a target database for the Random Query Generator
I prefer commit messages that, after the bug, speak of the code section changed. So something

"IMPALA-3890: qgen: reenable Hive as a target database"

PS2, Line 19: * Hive integration tested locally by invoking the data generator (./
            : --db-name=functional --use-hive --min-row-count=50 --max-row-count=100
            : --storage-file-formats textfile --use-postgresql --postgresql-user stakiar)
and the
            : discrepancy checker (./ --db-name=functional --use-hive
            : --use-postgresql --postgresql-user stakiar --test-db-type HIVE --timeout 300
            : --query-count 50 --profile hive)
While it makes the commit message have more lines, it is more readable to write the commands
with breaks across options, like this:

  ./ \
    --db-name=functional \
    --use-hive \
    --min-row-count=50 \
    --max-row-count=100 \
    --storage-file-formats textfile \
    --use-postgresql \
    --postgresql-user stakiar
File tests/comparison/

PS2, Line 150:   group.add_argument('--hive-host', default='localhost',
             :       help="The name of the host running the HS2")
             :   group.add_argument("--hive-port", default=10000, type=int,
             :       help="The port of HiveServer2")
Why not derive these defaults from symbols imported from (The constants I've asked
you to create in that file)
File tests/comparison/

PS2, Line 166:   def __init__(self, hive_host, hive_port, num_impalads=3):
This changes the MiniCluster constructor interface for all callers. It also implicitly changes
the cli_options.create_cluster() call, which has several callers.

What do you think about defining and 11050 (from the old code L179) as default hive
host and port as constants at the top of this module? Then make hive_host and hive_port on
this line optional, defaulting to those constants.

PS2, Line 178:     node_conf_dir = os.environ["HADOOP_CONF_DIR"]
Thanks for doing the cleanups like this one.
File tests/comparison/

PS2, Line 101:   def populate_db(self, table_count, postgresql_conn=None, isHive=False):
We don't use variable names of the format "isHive" typically, so can you change this to is_hive?

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: Ifb1199b50a5b65c21de7876fb70cc03bda1a9b46
Gerrit-PatchSet: 2
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Reviewer: David Knupp <>
Gerrit-Reviewer: Henry Robinson <>
Gerrit-Reviewer: Michael Brown <>
Gerrit-Reviewer: Taras Bobrovytsky <>
Gerrit-HasComments: Yes

View raw message