impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Knupp (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-6070: Parallel compute table
Date Mon, 23 Oct 2017 18:32:31 GMT
David Knupp has posted comments on this change. ( )

Change subject: IMPALA-6070: Parallel

Patch Set 3:

File tests/util/
PS2, Line 44:       if not continue_on_error: raise e
Two nits: even though we tend to do this a lot, PEP 8 frowns on inline if statements.

Also, I believe that if you're not handling an exception, but rather just logging something
and re-raising, then a bare raise statement is preferred. I'm not even sure you need to reference
the base Exception class in this case, since you're catching all exceptions. E.g.

PS2, Line 48: 
I'm curious -- why is it necessary to define the client factory inside of the if __name__
== "__main__" block, and then pass a reference to it here? Wouldn't defining the method in
the top-level module namespace be just as effective? It might be obvious, but I'm missing
PS2, Line 71: _factory, db, table, continue_on_error,)
It seems to me like you don't need the intersection. You already have either set(all_tables)
or set(table_names). Why not just:

  for table in selected_tables:


To view, visit
To unsubscribe, visit

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ifb080f2552b9dbe304ecadd6e52429214094237d
Gerrit-Change-Number: 8354
Gerrit-PatchSet: 3
Gerrit-Owner: Philip Zeyliger <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: David Knupp <>
Gerrit-Reviewer: Michael Brown <>
Gerrit-Reviewer: Philip Zeyliger <>
Gerrit-Comment-Date: Mon, 23 Oct 2017 18:32:31 +0000
Gerrit-HasComments: Yes

  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message