mirror of
https://github.com/apache/impala.git
synced 2025-12-22 11:28:09 -05:00
We are going to publish impala-shell release 4.1.0a1 on PyPi. This patch upgrades following three python libraries which are used for generating egg files when building impala-shell tarball. upgrade bitarray from 1.2.1 to 2.3.0 upgrade prettytable from 0.7.1 to 0.7.2 upgrade thrift_sasl from 0.4.2 to 0.4.3 Updates shell/packaging/requirements.txt for the versions of dependent Python libraries. Testing: - Ran core tests. - Built impala-shell package impala_shell-4.1.0a1.tar.gz, installed impala-shell package from local impala_shell-4.1.0a1.tar.gz, verified impala-shell was installed in ~/.local/lib/python2.7/site-packages. Verified the version of installed impala-shell and dependent Python libraries as expected. - Set IMPALA_SHELL_HOME as ~/.local/lib/python2.7/site-packages/ impala_shell, copied over egg files under installed impala-shell python package so we can run the end-to-end unit tests against the impala-shell installed with the package downloaded from PyPi. Passed end-to-end impala-shell unit tests. - Verified the impala-shell tarball generated by shell/make_shell_tarball.sh. Change-Id: I378404e2407396d4de3bb0eea4d49a9c5bb4e46a Reviewed-on: http://gerrit.cloudera.org:8080/17826 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
127 lines
4.3 KiB
Python
127 lines
4.3 KiB
Python
"""
|
|
This stub, as well as util.pyi, have been tested with all Python 3 versions
|
|
that bitarray supports and mypy 0.902.
|
|
"""
|
|
from collections.abc import Iterable, Iterator
|
|
from unittest.runner import TextTestResult
|
|
|
|
from typing import Any, BinaryIO, Dict, Union, overload
|
|
|
|
|
|
Codedict = Dict[Any, bitarray]
|
|
|
|
|
|
class decodetree:
|
|
def __init__(self, code: Codedict) -> None: ...
|
|
def nodes(self) -> int: ...
|
|
def todict(self) -> Codedict: ...
|
|
|
|
|
|
class bitarray:
|
|
def __init__(self,
|
|
initializer: Union[int, str, Iterable[int], None] = ...,
|
|
endian: str = ...,
|
|
buffer: Any = ...) -> None: ...
|
|
|
|
def all(self) -> bool: ...
|
|
def any(self) -> bool: ...
|
|
def append(self, value: int) -> None: ...
|
|
def buffer_info(self) -> tuple: ...
|
|
def bytereverse(self,
|
|
start: int = ...,
|
|
stop: int = ...) -> None: ...
|
|
|
|
def clear(self) -> None: ...
|
|
def copy(self) -> bitarray: ...
|
|
def count(self,
|
|
value: int = ...,
|
|
start: int = ...,
|
|
stop: int = ...) -> int: ...
|
|
|
|
def decode(self, code: Union[Codedict, decodetree]) -> list: ...
|
|
def encode(self, code: Codedict, x: Iterable) -> None: ...
|
|
def endian(self) -> str: ...
|
|
def extend(self, x: Union[str, Iterable[int]]) -> None: ...
|
|
def fill(self) -> int: ...
|
|
def find(self,
|
|
a: Union[bitarray, int],
|
|
start: int = ...,
|
|
stop: int = ...) -> int: ...
|
|
|
|
def frombytes(self, a: bytes) -> None: ...
|
|
def fromfile(self, f: BinaryIO, n: int = ...) -> None: ...
|
|
def index(self,
|
|
a: Union[bitarray, int],
|
|
start: int = ...,
|
|
stop: int = ...) -> int: ...
|
|
|
|
def insert(self, i: int, value: int) -> None: ...
|
|
def invert(self, i: int = ...) -> None: ...
|
|
def iterdecode(self,
|
|
code: Union[Codedict, decodetree]) -> Iterator: ...
|
|
|
|
def itersearch(self, a: Union[bitarray, int]) -> Iterator[int]: ...
|
|
def pack(self, b: bytes) -> None: ...
|
|
def pop(self, i: int = ...) -> int: ...
|
|
def remove(self, value: int) -> None: ...
|
|
def reverse(self) -> None: ...
|
|
def search(self, a: Union[bitarray, int],
|
|
limit: int = ...) -> list[int]: ...
|
|
|
|
def setall(self, value: int) -> None: ...
|
|
def sort(self, reverse: int) -> None: ...
|
|
def to01(self) -> str: ...
|
|
def tobytes(self) -> bytes: ...
|
|
def tofile(self, f: BinaryIO) -> None: ...
|
|
def tolist(self) -> list[int]: ...
|
|
def unpack(self,
|
|
zero: bytes = ...,
|
|
one: bytes = ...) -> bytes: ...
|
|
|
|
def __len__(self) -> int: ...
|
|
def __iter__(self) -> Iterator[int]: ...
|
|
@overload
|
|
def __getitem__(self, i: int) -> int: ...
|
|
@overload
|
|
def __getitem__(self, s: slice) -> bitarray: ...
|
|
@overload
|
|
def __setitem__(self, i: Union[int, slice], o: int) -> None: ...
|
|
@overload
|
|
def __setitem__(self, s: slice, o: bitarray) -> None: ...
|
|
def __delitem__(self, i: Union[int, slice]) -> None: ...
|
|
|
|
def __add__(self, other: bitarray) -> bitarray: ...
|
|
def __iadd__(self, other: bitarray) -> bitarray: ...
|
|
def __mul__(self, n: int) -> bitarray: ...
|
|
def __imul__(self, n: int) -> bitarray: ...
|
|
def __rmul__(self, n: int) -> bitarray: ...
|
|
|
|
def __ge__(self, other: bitarray) -> bool: ...
|
|
def __gt__(self, other: bitarray) -> bool: ...
|
|
def __le__(self, other: bitarray) -> bool: ...
|
|
def __lt__(self, other: bitarray) -> bool: ...
|
|
|
|
def __and__(self, other: bitarray) -> bitarray: ...
|
|
def __or__(self, other: bitarray) -> bitarray: ...
|
|
def __xor__(self, other: bitarray) -> bitarray: ...
|
|
def __iand__(self, other: bitarray) -> bitarray: ...
|
|
def __ior__(self, other: bitarray) -> bitarray: ...
|
|
def __ixor__(self, other: bitarray) -> bitarray: ...
|
|
def __invert__(self) -> bitarray: ...
|
|
def __lshift__(self, n: int) -> bitarray: ...
|
|
def __rshift__(self, n: int) -> bitarray: ...
|
|
def __ilshift__(self, n: int) -> bitarray: ...
|
|
def __irshift__(self, n: int) -> bitarray: ...
|
|
|
|
|
|
class frozenbitarray(bitarray):
|
|
def __hash__(self) -> int: ...
|
|
|
|
|
|
__version__: str
|
|
def bits2bytes(n: int) -> int: ...
|
|
def get_default_endian() -> str: ...
|
|
def test(verbosity: int = ..., repeat: int = ...) -> TextTestResult: ...
|
|
def _set_default_endian(endian: str) -> None: ...
|
|
def _sysinfo() -> tuple: ...
|