Hello Joe McDonnell, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
https://gerrit.cloudera.org/25599
to look at the new patch set (#3).
Change subject: IMPALA-15868: impala-shell search for python3.x variant
......................................................................
IMPALA-15868: impala-shell search for python3.x variant
Updates impala-shell to prefer Python versions that the package was
built for. The Python executable is now selected in this order:
1. IMPALA_PYTHON_EXECUTABLE, which remains authoritative (with
IMPALA_SHELL_PYTHON_FALLBACK behaving as before).
2. python3, if the package contains an install_py* directory for its
version.
3. python3.x variants matching the bundled install_py* directories,
searched from newest to oldest. For example, if the package contains
install_py3.12 and install_py3.11, impala-shell tries python3.12 and
then python3.11.
The fallback to the plain "python" executable is removed. The Python
version is determined at most once before launching the shell; for
python3.x variants it is taken from the matching directory name.
Testing:
- Ran impala-shell from packages containing install_py3.12 and
install_py3.11 against a local cluster with various combinations of
python3, python3.x and IMPALA_PYTHON_EXECUTABLE.
- Ran tests/shell/test_shell_commandline.py tests.
Change-Id: Ie8a4879c3fc1638503cc54264bca9a510b55f9d8
Assisted-by: Copilot Fusion (GitHub Copilot)
---
M shell/packaging/impala-shell
1 file changed, 47 insertions(+), 23 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/99/25599/3
--
To view, visit https://gerrit.cloudera.org/25599
To unsubscribe, visit https://gerrit.cloudera.org/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ie8a4879c3fc1638503cc54264bca9a510b55f9d8
Gerrit-Change-Number: 25599
Gerrit-PatchSet: 3
Gerrit-Owner: Michael Smith <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Joe McDonnell <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>