This is an automated email from the ASF dual-hosted git repository.

michaelsmith pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git


The following commit(s) were added to refs/heads/master by this push:
     new cefb0ed9a IMPALA-14730: Update prettytable for Python 3.12
cefb0ed9a is described below

commit cefb0ed9a83efd7e731435b0bfe057db94d30f22
Author: Michael Smith <[email protected]>
AuthorDate: Fri Feb 6 15:51:27 2026 -0800

    IMPALA-14730: Update prettytable for Python 3.12
    
    Updates prettytable to 2.5.0 to fix "SyntaxWarning: invalid escape
    sequence" from Python 3.12. It requires Python 3.6+. Preserves
    prettytable 0.7.2 for Python 2.7.
    
    Prettytable 3 changed packaging in a way that complicates the upgrade,
    so this fix sticks with prettytable 2. It also now requires wcwidth, so
    we choose the last 0.2.x release, which is from the same era as the
    prettytable 2.5.0 release.
    
    Testing: ran test_shell_interactive.py and some ad-hoc testing of
    table-formatted output.
    
    Change-Id: Ied2eb2055d68fde8d241c93f9d268d6be92f8879
    Reviewed-on: http://gerrit.cloudera.org:8080/23948
    Reviewed-by: Impala Public Jenkins <[email protected]>
    Tested-by: Impala Public Jenkins <[email protected]>
---
 infra/python/deps/py2-requirements.txt | 1 +
 infra/python/deps/py3-requirements.txt | 2 ++
 infra/python/deps/requirements.txt     | 1 -
 shell/requirements.txt                 | 4 +++-
 4 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/infra/python/deps/py2-requirements.txt 
b/infra/python/deps/py2-requirements.txt
index be2b8dd32..fa0db244c 100644
--- a/infra/python/deps/py2-requirements.txt
+++ b/infra/python/deps/py2-requirements.txt
@@ -30,3 +30,4 @@ flake8 == 3.9.2
     pathlib2 == 2.3.7.post1
     zipp == 1.2.0
 k5test==0.9.2
+prettytable == 0.7.2
diff --git a/infra/python/deps/py3-requirements.txt 
b/infra/python/deps/py3-requirements.txt
index b95044e73..ec5e6be7f 100644
--- a/infra/python/deps/py3-requirements.txt
+++ b/infra/python/deps/py3-requirements.txt
@@ -17,6 +17,8 @@
 
 # Python3-only requirements
 
+prettytable == 2.5.0
+  wcwidth == 0.2.14
 pylint == 2.10.2
   astroid == 2.7.3
     lazy-object-proxy == 1.6.0
diff --git a/infra/python/deps/requirements.txt 
b/infra/python/deps/requirements.txt
index dd958fc0d..25d89a338 100644
--- a/infra/python/deps/requirements.txt
+++ b/infra/python/deps/requirements.txt
@@ -34,7 +34,6 @@ impyla == 0.21a3
 kerberos == 1.3.1
 pexpect == 3.3
 pg8000 == 1.10.2
-prettytable == 0.7.2
 prometheus-client == 0.12.0
 psutil == 5.6.3
 pyparsing == 2.4.7
diff --git a/shell/requirements.txt b/shell/requirements.txt
index 9b901afdd..66069d03d 100644
--- a/shell/requirements.txt
+++ b/shell/requirements.txt
@@ -1,10 +1,12 @@
 bitarray==2.3.0
 configparser==4.0.2
 kerberos==1.3.1
-prettytable==0.7.2
+prettytable==0.7.2; python_version < "3"
+prettytable==2.5.0; python_version >= "3"
 sasl==0.4a1
 setuptools>=36.8.0
 six==1.17.0
 sqlparse==0.3.1
 thrift==0.16.0
 thrift_sasl==0.4.3
+wcwidth==0.2.14; python_version >= "3"

Reply via email to