You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Balazs Hevele (Code Review)" <ge...@cloudera.org> on 2026/01/22 13:07:10 UTC
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Balazs Hevele has uploaded this change for review. ( http://gerrit.cloudera.org:8080/23884
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
IMPALA-14673 impala-shell: profile format argument
Selecting format was already supported by Impala's HS2 Interface,
but so far we only used the default STRING format in impala shell.
Added a command line argument to set which format to use:
impala-shell.sh --profile_format=Format
Format can be string/base64/json.
If not set, the default string format will be used.
Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
---
M shell/impala_shell/impala_client.py
M shell/impala_shell/impala_shell.py
M shell/impala_shell/option_parser.py
M tests/shell/test_shell_commandline.py
4 files changed, 60 insertions(+), 6 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/84/23884/1
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 1
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Balazs Hevele (Code Review)" <ge...@cloudera.org>.
Balazs Hevele has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 6:
(1 comment)
http://gerrit.cloudera.org:8080/#/c/23884/5/shell/impala_shell/impala_client.py
File shell/impala_shell/impala_client.py:
http://gerrit.cloudera.org:8080/#/c/23884/5/shell/impala_shell/impala_client.py@1405
PS5, Line 1405: profile_format
> beeswax doesn't support profile format: https://github.com/apache/impala/bl
Done
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 6
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Wed, 28 Jan 2026 12:18:04 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Balazs Hevele (Code Review)" <ge...@cloudera.org>.
Balazs Hevele has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 2:
(5 comments)
http://gerrit.cloudera.org:8080/#/c/23884/1/shell/impala_shell/impala_client.py
File shell/impala_shell/impala_client.py:
http://gerrit.cloudera.org:8080/#/c/23884/1/shell/impala_shell/impala_client.py@363
PS1, Line 363:
> flake8: U100 Unused argument 'format'
Done
http://gerrit.cloudera.org:8080/#/c/23884/1/shell/impala_shell/impala_client.py@363
PS1, Line 363:
> flake8: U100 Unused argument 'last_query_handle'
Done
http://gerrit.cloudera.org:8080/#/c/23884/1/shell/impala_shell/impala_client.py@1244
PS1, Line 1244:
> flake8: U100 Unused argument 'last_query_handle'
Done
http://gerrit.cloudera.org:8080/#/c/23884/1/shell/impala_shell/impala_client.py@1244
PS1, Line 1244:
> flake8: U100 Unused argument 'format'
Done
http://gerrit.cloudera.org:8080/#/c/23884/1/shell/impala_shell/impala_client.py@1393
PS1, Line 1393:
> flake8: U100 Unused argument 'format'
Done
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 2
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Thu, 22 Jan 2026 13:47:41 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Balazs Hevele (Code Review)" <ge...@cloudera.org>.
Hello Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/23884
to look at the new patch set (#3).
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
IMPALA-14673 impala-shell: profile format argument
Selecting format was already supported by Impala's HS2 Interface,
but so far we only used the default STRING format in impala shell.
Added a command line argument to set which format to use:
impala-shell.sh --profile_format=Format
Format can be string/base64/json.
If not set, the default string format will be used.
With base64 format, the output can be parsed with impala-profile-tool.
Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
---
M shell/impala_shell/impala_client.py
M shell/impala_shell/impala_shell.py
M shell/impala_shell/option_parser.py
M tests/shell/test_shell_commandline.py
4 files changed, 73 insertions(+), 6 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/84/23884/3
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 3
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 1:
(5 comments)
gerrit-auto-critic failed. You can reproduce it locally using command:
python3 bin/jenkins/critique-gerrit-review.py --dryrun
To run it, you might need a virtual env with Python3's venv installed.
http://gerrit.cloudera.org:8080/#/c/23884/1/shell/impala_shell/impala_client.py
File shell/impala_shell/impala_client.py:
http://gerrit.cloudera.org:8080/#/c/23884/1/shell/impala_shell/impala_client.py@363
PS1, Line 363: l
flake8: U100 Unused argument 'last_query_handle'
http://gerrit.cloudera.org:8080/#/c/23884/1/shell/impala_shell/impala_client.py@363
PS1, Line 363: f
flake8: U100 Unused argument 'format'
http://gerrit.cloudera.org:8080/#/c/23884/1/shell/impala_shell/impala_client.py@1244
PS1, Line 1244: l
flake8: U100 Unused argument 'last_query_handle'
http://gerrit.cloudera.org:8080/#/c/23884/1/shell/impala_shell/impala_client.py@1244
PS1, Line 1244: f
flake8: U100 Unused argument 'format'
http://gerrit.cloudera.org:8080/#/c/23884/1/shell/impala_shell/impala_client.py@1393
PS1, Line 1393: f
flake8: U100 Unused argument 'format'
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 1
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Thu, 22 Jan 2026 13:09:14 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Surya Hebbar (Code Review)" <ge...@cloudera.org>.
Surya Hebbar has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 6: Code-Review+1
> There is another patch by Balazs about printing the profile to a
> file: https://gerrit.cloudera.org/#/c/23883/
Thank you for the clarification.
This looks good to me.
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 6
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Wed, 28 Jan 2026 13:39:40 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
IMPALA-14673 impala-shell: profile format argument
Selecting format was already supported by Impala's HS2 Interface,
but so far we only used the default STRING format in impala shell.
Added a command line argument to set which format to use:
impala-shell.sh --profile_format=Format
Can also be changed runtime as a shell option, in the shell:
set profile_format=Format;
Format can be string/base64/json.
If not set, the default string format will be used.
With base64 format, the output can be parsed with impala-profile-tool.
Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Reviewed-on: http://gerrit.cloudera.org:8080/23884
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
M shell/impala_shell/impala_client.py
M shell/impala_shell/impala_shell.py
M shell/impala_shell/impala_shell_config_defaults.py
M shell/impala_shell/option_parser.py
M tests/shell/test_shell_commandline.py
5 files changed, 74 insertions(+), 6 deletions(-)
Approvals:
Impala Public Jenkins: Looks good to me, approved; Verified
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 11
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 7:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/13022/ DRY_RUN=false
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 7
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Fri, 30 Jan 2026 11:26:17 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 3:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/21473/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 3
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Fri, 23 Jan 2026 09:09:46 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 9: Code-Review+2
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 9
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Mon, 02 Feb 2026 09:34:15 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 2:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/21467/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 2
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Thu, 22 Jan 2026 14:52:42 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Csaba Ringhofer (Code Review)" <ge...@cloudera.org>.
Csaba Ringhofer has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 6: Code-Review+1
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 6
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Wed, 28 Jan 2026 13:19:08 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 9: Verified-1
Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/13025/
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 9
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Mon, 02 Feb 2026 15:13:12 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Csaba Ringhofer (Code Review)" <ge...@cloudera.org>.
Csaba Ringhofer has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 8: Code-Review+2
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 8
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Mon, 02 Feb 2026 09:33:45 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Balazs Hevele (Code Review)" <ge...@cloudera.org>.
Hello Surya Hebbar, Csaba Ringhofer, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/23884
to look at the new patch set (#6).
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
IMPALA-14673 impala-shell: profile format argument
Selecting format was already supported by Impala's HS2 Interface,
but so far we only used the default STRING format in impala shell.
Added a command line argument to set which format to use:
impala-shell.sh --profile_format=Format
Can also be changed runtime as a shell option, in the shell:
set profile_format=Format;
Format can be string/base64/json.
If not set, the default string format will be used.
With base64 format, the output can be parsed with impala-profile-tool.
Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
---
M shell/impala_shell/impala_client.py
M shell/impala_shell/impala_shell.py
M shell/impala_shell/impala_shell_config_defaults.py
M shell/impala_shell/option_parser.py
M tests/shell/test_shell_commandline.py
5 files changed, 73 insertions(+), 6 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/84/23884/6
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 6
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 6:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/21516/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 6
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Wed, 28 Jan 2026 13:29:32 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Balazs Hevele (Code Review)" <ge...@cloudera.org>.
Balazs Hevele has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 4:
(1 comment)
http://gerrit.cloudera.org:8080/#/c/23884/4/shell/impala_shell/impala_shell.py
File shell/impala_shell/impala_shell.py:
http://gerrit.cloudera.org:8080/#/c/23884/4/shell/impala_shell/impala_shell.py@1255
PS4, Line 1255: # return default (string)
: return 0
> What is the intention here?
This is related to error handling, specifically with invalid input format from the user:
The idea is to always print an error message as soon as the invalid format string input is parsed (for both command line arg and shell option). The alternative would be to only print it when trying to print the profile.
An exception is raised only if the invalid value is set as a command line arg, so the shell doesn't exit if an invalid value is set as a runtime shell option.
This return corresponds to trying to parse an invalid format string set as a runtime shell option. Currently, an error message is printed and the default "string" format is set in this case.
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 4
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Tue, 27 Jan 2026 06:30:15 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 10: Code-Review+2
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 10
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Tue, 03 Feb 2026 08:21:24 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Balazs Hevele (Code Review)" <ge...@cloudera.org>.
Hello Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/23884
to look at the new patch set (#2).
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
IMPALA-14673 impala-shell: profile format argument
Selecting format was already supported by Impala's HS2 Interface,
but so far we only used the default STRING format in impala shell.
Added a command line argument to set which format to use:
impala-shell.sh --profile_format=Format
Format can be string/base64/json.
If not set, the default string format will be used.
Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
---
M shell/impala_shell/impala_client.py
M shell/impala_shell/impala_shell.py
M shell/impala_shell/option_parser.py
M tests/shell/test_shell_commandline.py
4 files changed, 66 insertions(+), 6 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/84/23884/2
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 2
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 4:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/21478/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 4
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Fri, 23 Jan 2026 16:06:34 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Balazs Hevele (Code Review)" <ge...@cloudera.org>.
Balazs Hevele has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 5:
(2 comments)
http://gerrit.cloudera.org:8080/#/c/23884/4/shell/impala_shell/impala_shell.py
File shell/impala_shell/impala_shell.py:
http://gerrit.cloudera.org:8080/#/c/23884/4/shell/impala_shell/impala_shell.py@916
PS4, Line 916: self.__dict__[handle[1]] = impala_shell_defaults[handle[1]]
: return True
: except KeyError:
> With the shell option it seems clearer to me to add format as a parameter i
Done
http://gerrit.cloudera.org:8080/#/c/23884/4/shell/impala_shell/impala_shell.py@1255
PS4, Line 1255: print(query_profile_prefix + profile, file=out_file)
: if faile
> This is related to error handling, specifically with invalid input format f
With profile_format now being passed as an argument to client's get_runtime_profile, this comment is no longer relevant.
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 5
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Wed, 28 Jan 2026 10:36:12 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Balazs Hevele (Code Review)" <ge...@cloudera.org>.
Hello Surya Hebbar, Csaba Ringhofer, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/23884
to look at the new patch set (#8).
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
IMPALA-14673 impala-shell: profile format argument
Selecting format was already supported by Impala's HS2 Interface,
but so far we only used the default STRING format in impala shell.
Added a command line argument to set which format to use:
impala-shell.sh --profile_format=Format
Can also be changed runtime as a shell option, in the shell:
set profile_format=Format;
Format can be string/base64/json.
If not set, the default string format will be used.
With base64 format, the output can be parsed with impala-profile-tool.
Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
---
M shell/impala_shell/impala_client.py
M shell/impala_shell/impala_shell.py
M shell/impala_shell/impala_shell_config_defaults.py
M shell/impala_shell/option_parser.py
M tests/shell/test_shell_commandline.py
5 files changed, 74 insertions(+), 6 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/84/23884/8
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 8
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 8:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/21543/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 8
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Mon, 02 Feb 2026 09:05:38 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 9:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/13025/ DRY_RUN=false
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 9
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Mon, 02 Feb 2026 09:34:16 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 10:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/13032/ DRY_RUN=false
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 10
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Tue, 03 Feb 2026 08:21:25 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Csaba Ringhofer (Code Review)" <ge...@cloudera.org>.
Csaba Ringhofer has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 4:
(2 comments)
http://gerrit.cloudera.org:8080/#/c/23884/4/shell/impala_shell/impala_shell.py
File shell/impala_shell/impala_shell.py:
http://gerrit.cloudera.org:8080/#/c/23884/4/shell/impala_shell/impala_shell.py@916
PS4, Line 916: if token.upper() == "PROFILE_FORMAT":
: self.imp_client.profile_format = self.get_profile_format_id_from_string(
: self.profile_format, raise_exception=False)
With the shell option it seems clearer to me to add format as a parameter in client's get_runtime_profile() and pass self.profile_format there.
http://gerrit.cloudera.org:8080/#/c/23884/4/shell/impala_shell/impala_shell.py@1255
PS4, Line 1255: # return default (string)
: return 0
What is the intention here?
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 4
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Mon, 26 Jan 2026 16:14:38 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Surya Hebbar (Code Review)" <ge...@cloudera.org>.
Surya Hebbar has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 4:
Hello, thank you for working on this. It is good to have the thrift/base64 option.
To allow easier access to the profile, without having to scroll through and copying the large text from impala-shell...
I was thinking it would be more accessible if we could provide the thrift profile download link for the webUI, or the curl command.
Another option would be to write it to a file(possibly within the current directory) with impala-shell.
Basically, it is better to directly have it as a file then making the user to copy it each time.
This is also true because there is no easy way to pipe the output of profile command into a file from impala-shell(like with >> in bash/sh) for just the profile command without having other outputs as well.
Initially, when we had discussed Csaba and me had decided to provide the user with the relevant curl command to download the thrift when requested, please let me know if this is better.
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 4
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Fri, 23 Jan 2026 16:42:34 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 7: Code-Review+2
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 7
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Fri, 30 Jan 2026 11:26:16 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 5:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/21515/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 5
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Wed, 28 Jan 2026 11:47:41 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Balazs Hevele (Code Review)" <ge...@cloudera.org>.
Hello Surya Hebbar, Csaba Ringhofer, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/23884
to look at the new patch set (#5).
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
IMPALA-14673 impala-shell: profile format argument
Selecting format was already supported by Impala's HS2 Interface,
but so far we only used the default STRING format in impala shell.
Added a command line argument to set which format to use:
impala-shell.sh --profile_format=Format
Can also be changed runtime as a shell option, in the shell:
set profile_format=Format;
Format can be string/base64/json.
If not set, the default string format will be used.
With base64 format, the output can be parsed with impala-profile-tool.
Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
---
M shell/impala_shell/impala_client.py
M shell/impala_shell/impala_shell.py
M shell/impala_shell/impala_shell_config_defaults.py
M shell/impala_shell/option_parser.py
M tests/shell/test_shell_commandline.py
5 files changed, 68 insertions(+), 6 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/84/23884/5
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 5
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 10: Verified+1
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 10
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Tue, 03 Feb 2026 14:05:00 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Balazs Hevele (Code Review)" <ge...@cloudera.org>.
Balazs Hevele has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 4:
(2 comments)
http://gerrit.cloudera.org:8080/#/c/23884/3//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/23884/3//COMMIT_MSG@13
PS3, Line 13: profile_format
> It could be useful to also set this runtime, e.g. to write a specific profi
Done
http://gerrit.cloudera.org:8080/#/c/23884/3/shell/impala_shell/option_parser.py
File shell/impala_shell/option_parser.py:
http://gerrit.cloudera.org:8080/#/c/23884/3/shell/impala_shell/option_parser.py@210
PS3, Line 210: "['string', 'base64', 'json']. Format base64 "
> Can you mention that base64 writes profile in a compatible way with Impala
Done
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 4
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Mon, 26 Jan 2026 08:35:37 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 1:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/21466/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 1
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Thu, 22 Jan 2026 14:12:48 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Csaba Ringhofer (Code Review)" <ge...@cloudera.org>.
Csaba Ringhofer has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 3:
(2 comments)
http://gerrit.cloudera.org:8080/#/c/23884/3//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/23884/3//COMMIT_MSG@13
PS3, Line 13: profile_format
It could be useful to also set this runtime, e.g. to write a specific profile to file as thrift while keeping the others as text.
http://gerrit.cloudera.org:8080/#/c/23884/3/shell/impala_shell/option_parser.py
File shell/impala_shell/option_parser.py:
http://gerrit.cloudera.org:8080/#/c/23884/3/shell/impala_shell/option_parser.py@210
PS3, Line 210: "['string', 'base64', 'json'].")
Can you mention that base64 writes profile in a compatible way with Impala profile log?
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 3
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Fri, 23 Jan 2026 11:09:25 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Csaba Ringhofer (Code Review)" <ge...@cloudera.org>.
Csaba Ringhofer has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 4:
> Hello, thank you for working on this. It is good to have the
> thrift/base64 option.
>
> To allow easier access to the profile, without having to scroll
> through and copying the large text from impala-shell...
>
> I was thinking it would be more accessible if we could provide the
> thrift profile download link for the webUI, or the curl command.
>
> Another option would be to write it to a file(possibly within the
> current directory) with impala-shell.
>
> Basically, it is better to directly have it as a file then making
> the user to copy it each time.
>
> This is also true because there is no easy way to pipe the output
> of profile command into a file from impala-shell(like with >> in
> bash/sh) for just the profile command without having other outputs
> as well.
>
> Initially, when we had discussed Csaba and me had decided to
> provide the user with the relevant curl command to download the
> thrift when requested, please let me know if this is better.
> Hello, thank you for working on this. It is good to have the
> thrift/base64 option.
>
> To allow easier access to the profile, without having to scroll
> through and copying the large text from impala-shell...
>
> I was thinking it would be more accessible if we could provide the
> thrift profile download link for the webUI, or the curl command.
>
> Another option would be to write it to a file(possibly within the
> current directory) with impala-shell.
>
> Basically, it is better to directly have it as a file then making
> the user to copy it each time.
>
> This is also true because there is no easy way to pipe the output
> of profile command into a file from impala-shell(like with >> in
> bash/sh) for just the profile command without having other outputs
> as well.
>
> Initially, when we had discussed Csaba and me had decided to
> provide the user with the relevant curl command to download the
> thrift when requested, please let me know if this is better.
There is another patch by Balazs about printing the profile to a file: https://gerrit.cloudera.org/#/c/23883/
I agree that printing the base64 encoded Thrift to stdout is not that useful, so writing to a file would be the main use case.
About providing a link: we already provide a link in Impala shell to fetch more info about it in webui - someone experienced with Impala should be able to download the profile based on that. There can be also cases when the webui is not accessible, e.g. the port is not forwarded or the user has no privileges to see the webui, and in this case fetching the profile through the hs2/beeswax client is the only option
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 4
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Fri, 23 Jan 2026 17:31:55 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Csaba Ringhofer (Code Review)" <ge...@cloudera.org>.
Csaba Ringhofer has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 5:
(1 comment)
http://gerrit.cloudera.org:8080/#/c/23884/5/shell/impala_shell/impala_client.py
File shell/impala_shell/impala_client.py:
http://gerrit.cloudera.org:8080/#/c/23884/5/shell/impala_shell/impala_client.py@1405
PS5, Line 1405: profile_format
beeswax doesn't support profile format: https://github.com/apache/impala/blob/3dac0135fba0717dd977043e7ecc6b52bf55189f/common/thrift/ImpalaService.thrift#L1172
impala-shell should return an error in case the protocol is beeswax and the profile format is not text
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 5
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Wed, 28 Jan 2026 11:48:30 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 7: Verified-1
Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/13022/
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 7
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Fri, 30 Jan 2026 17:09:35 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Balazs Hevele (Code Review)" <ge...@cloudera.org>.
Balazs Hevele has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 8:
(1 comment)
http://gerrit.cloudera.org:8080/#/c/23884/8/shell/impala_shell/impala_client.py
File shell/impala_shell/impala_client.py:
http://gerrit.cloudera.org:8080/#/c/23884/8/shell/impala_shell/impala_client.py@951
PS8, Line 951: profile_format="string"
get_runtime_profile is called from several places, like tests, so a default value for this new parameter was added
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 8
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Mon, 02 Feb 2026 08:12:26 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Csaba Ringhofer (Code Review)" <ge...@cloudera.org>.
Csaba Ringhofer has posted comments on this change. ( http://gerrit.cloudera.org:8080/23884 )
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
Patch Set 6: Code-Review+2
With Surya's +1 I am upgrading this to +2
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 6
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Fri, 30 Jan 2026 11:25:23 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14673 impala-shell: profile format argument
Posted by "Balazs Hevele (Code Review)" <ge...@cloudera.org>.
Hello Csaba Ringhofer, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/23884
to look at the new patch set (#4).
Change subject: IMPALA-14673 impala-shell: profile format argument
......................................................................
IMPALA-14673 impala-shell: profile format argument
Selecting format was already supported by Impala's HS2 Interface,
but so far we only used the default STRING format in impala shell.
Added a command line argument to set which format to use:
impala-shell.sh --profile_format=Format
Can also be changed runtime as a shell option, in the shell:
set profile_format=Format;
Format can be string/base64/json.
If not set, the default string format will be used.
With base64 format, the output can be parsed with impala-profile-tool.
Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
---
M shell/impala_shell/impala_client.py
M shell/impala_shell/impala_shell.py
M shell/impala_shell/impala_shell_config_defaults.py
M shell/impala_shell/option_parser.py
M tests/shell/test_shell_commandline.py
5 files changed, 88 insertions(+), 6 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/84/23884/4
--
To view, visit http://gerrit.cloudera.org:8080/23884
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I032a5d0436f123d737d46d0b8cecbae09888a789
Gerrit-Change-Number: 23884
Gerrit-PatchSet: 4
Gerrit-Owner: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Balazs Hevele <bh...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>