Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-8508 Use Python 3 from toolchain for impala-python
  3. IMPALA-11977

Fix broken imports on Python 3 and Python 3 object model differences

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 4.3.0
    • Impala 4.3.0
    • Infrastructure
    • None
    • ghx-label-1

    Description

      Several libraries moved in Python 3. For example, urllib2, httplib, Queue, and several others. See: 

      https://python-future.org/compatible_idioms.html#urllib-module

      https://python-future.org/compatible_idioms.html#http-module

      This is also a good time to fix several warnings about object model differences. _nonzero_ is now _bool, metaclasses are specified differently, iterator next() method is deprecated, objects that implement __eq_ should also implement _hash_, etc.

      The pylint checks that could be fixed by this would be:

      bad-python3-import
      eq-without-hash
      metaclass-assignment
      next-method-called
      nonzero-method
      comprehension-escape
      exception-escape

      Attachments

        Activity

          People

            joemcdonnell Joe McDonnell
            joemcdonnell Joe McDonnell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: