impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabor Kaszab (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-2181: Add query option levels for display
Date Tue, 07 Nov 2017 20:51:31 GMT
Gabor Kaszab has posted comments on this change. ( )

Change subject: IMPALA-2181: Add query option levels for display

Patch Set 8:

File be/src/service/impala-server.h:
PS7, Line 516:   /// Given a query option name this function gets the option level for it
to use when
             :   /// displaying from Impala shell and adds the level to the ConfigVariable
             :   /// in numeric format. For values see TQueryOptionLevel enum.
> nit: For me, this comment is too complex and tells too much implementation 
Thx, that sounds better indeed.
File be/src/service/
PS7, Line 1228: const string& option_key
> Why do we pass option_key here? It is already there in config, isn't it?
In this case it is. But if I relied on that than it would introduce some risk when someone
starts to rearrange the part where config is populated as this function can't guarantee that
config contains the key every time.

To be on the safe side I think it's reasonable to keep the key as a parameter.
File shell/
PS7, Line 240:       if print_mode == QueryOptionDisplayModes.ALL_OPTIONS:
             :         if len(advanced_options) > 0:
             :           print '\nAdvanced Query Options:'
             :           self._print_option_group(advanced_options)
             :         if len(deprecated_options) > 0:
             :           print '\nDeprecated Query Options:'
> nit: this can be simplified as:
PS7, Line 620: ESS
             :     # Remove any extra spaces surrounding the tokens.
> These members are already available in _print_with_set through self. And as
Good point!

To view, visit
To unsubscribe, visit

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I75720d0d454527e1a0ed19bb43cf9e4f018ce1d1
Gerrit-Change-Number: 8447
Gerrit-PatchSet: 8
Gerrit-Owner: Gabor Kaszab <>
Gerrit-Reviewer: Attila Jeges <>
Gerrit-Reviewer: Csaba Ringhofer <>
Gerrit-Reviewer: Dan Hecht <>
Gerrit-Reviewer: Gabor Kaszab <>
Gerrit-Reviewer: Lars Volker <>
Gerrit-Reviewer: Laszlo Gaal <>
Gerrit-Reviewer: Philip Zeyliger <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-Reviewer: Zoltan Borok-Nagy <>
Gerrit-Comment-Date: Tue, 07 Nov 2017 20:51:31 +0000
Gerrit-HasComments: Yes

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