Impala Public Jenkins has submitted this change and it was merged. ( https://gerrit.cloudera.org/25599 )
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) Reviewed-on: https://gerrit.cloudera.org/25599 Reviewed-by: Impala Public Jenkins <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- M docs/topics/impala_impala_shell.xml M shell/packaging/impala-shell 2 files changed, 64 insertions(+), 35 deletions(-) Approvals: Impala Public Jenkins: Looks good to me, approved; Verified -- 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: merged Gerrit-Change-Id: Ie8a4879c3fc1638503cc54264bca9a510b55f9d8 Gerrit-Change-Number: 25599 Gerrit-PatchSet: 6 Gerrit-Owner: Michael Smith <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Joe McDonnell <[email protected]> Gerrit-Reviewer: Michael Smith <[email protected]>
