aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-06-19 11:03:24 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-06-19 11:11:19 +0300
commit30bcb2b0866066d4f27f91b538958641f4c2cbdc (patch)
tree79233ffb046b9152ce1751134f06ad745ece58af
parent71e31152d8d81e2e84441aa5b6574e5f112a9449 (diff)
downloadydb-30bcb2b0866066d4f27f91b538958641f4c2cbdc.tar.gz
Intermediate changes
-rw-r--r--contrib/python/clickhouse-connect/.dist-info/METADATA2
-rw-r--r--contrib/python/clickhouse-connect/clickhouse_connect/__version__.py2
-rw-r--r--contrib/python/clickhouse-connect/clickhouse_connect/datatypes/string.py5
-rw-r--r--contrib/python/clickhouse-connect/ya.make2
-rw-r--r--contrib/python/prompt-toolkit/py3/.dist-info/METADATA2
-rw-r--r--contrib/python/prompt-toolkit/py3/prompt_toolkit/__init__.py2
-rw-r--r--contrib/python/prompt-toolkit/py3/prompt_toolkit/application/current.py12
-rw-r--r--contrib/python/prompt-toolkit/py3/ya.make2
8 files changed, 20 insertions, 9 deletions
diff --git a/contrib/python/clickhouse-connect/.dist-info/METADATA b/contrib/python/clickhouse-connect/.dist-info/METADATA
index 7b69f6db6d..a0dc6a83eb 100644
--- a/contrib/python/clickhouse-connect/.dist-info/METADATA
+++ b/contrib/python/clickhouse-connect/.dist-info/METADATA
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: clickhouse-connect
-Version: 0.7.11
+Version: 0.7.12
Summary: ClickHouse Database Core Driver for Python, Pandas, and Superset
Home-page: https://github.com/ClickHouse/clickhouse-connect
Author: ClickHouse Inc.
diff --git a/contrib/python/clickhouse-connect/clickhouse_connect/__version__.py b/contrib/python/clickhouse-connect/clickhouse_connect/__version__.py
index 49289afed2..03ae4dc075 100644
--- a/contrib/python/clickhouse-connect/clickhouse_connect/__version__.py
+++ b/contrib/python/clickhouse-connect/clickhouse_connect/__version__.py
@@ -1 +1 @@
-version = '0.7.11'
+version = '0.7.12'
diff --git a/contrib/python/clickhouse-connect/clickhouse_connect/datatypes/string.py b/contrib/python/clickhouse-connect/clickhouse_connect/datatypes/string.py
index efc04df015..3cfcd38630 100644
--- a/contrib/python/clickhouse-connect/clickhouse_connect/datatypes/string.py
+++ b/contrib/python/clickhouse-connect/clickhouse_connect/datatypes/string.py
@@ -80,6 +80,11 @@ class FixedString(ClickHouseType):
return source.read_fixed_str_col(self.byte_size, num_rows, ctx.encoding or self.encoding )
return source.read_bytes_col(self.byte_size, num_rows)
+ def _finalize_column(self, column: Sequence, ctx: QueryContext) -> Sequence:
+ if ctx.use_extended_dtypes and self.read_format(ctx) == 'string':
+ return pd.array(column, dtype=pd.StringDtype())
+ return column
+
# pylint: disable=too-many-branches,duplicate-code
def _write_column_binary(self, column: Union[Sequence, MutableSequence], dest: bytearray, ctx: InsertContext):
ext = dest.extend
diff --git a/contrib/python/clickhouse-connect/ya.make b/contrib/python/clickhouse-connect/ya.make
index 6957d8ba2b..35add5741f 100644
--- a/contrib/python/clickhouse-connect/ya.make
+++ b/contrib/python/clickhouse-connect/ya.make
@@ -2,7 +2,7 @@
PY3_LIBRARY()
-VERSION(0.7.11)
+VERSION(0.7.12)
LICENSE(Apache-2.0)
diff --git a/contrib/python/prompt-toolkit/py3/.dist-info/METADATA b/contrib/python/prompt-toolkit/py3/.dist-info/METADATA
index 4ae5526507..fcd3151a1c 100644
--- a/contrib/python/prompt-toolkit/py3/.dist-info/METADATA
+++ b/contrib/python/prompt-toolkit/py3/.dist-info/METADATA
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: prompt_toolkit
-Version: 3.0.45
+Version: 3.0.46
Summary: Library for building powerful interactive command lines in Python
Home-page: https://github.com/prompt-toolkit/python-prompt-toolkit
Author: Jonathan Slenders
diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/__init__.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/__init__.py
index 7b3e9bbe6d..9f194f1b44 100644
--- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/__init__.py
+++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/__init__.py
@@ -28,7 +28,7 @@ from .formatted_text import ANSI, HTML
from .shortcuts import PromptSession, print_formatted_text, prompt
# Don't forget to update in `docs/conf.py`!
-__version__ = "3.0.45"
+__version__ = "3.0.46"
assert pep440.match(__version__)
diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/application/current.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/application/current.py
index 908141a476..7e2cf480ba 100644
--- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/application/current.py
+++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/application/current.py
@@ -147,11 +147,17 @@ def create_app_session(
Like in the case of an Telnet/SSH server.
"""
# If no input/output is specified, fall back to the current input/output,
- # whatever that is.
+ # if there was one that was set/created for the current session.
+ # (Note that we check `_input`/`_output` and not `input`/`output`. This is
+ # because we don't want to accidently create a new input/output objects
+ # here and store it in the "parent" `AppSession`. Especially, when
+ # combining pytest's `capsys` fixture and `create_app_session`, sys.stdin
+ # and sys.stderr are patched for every test, so we don't want to leak
+ # those outputs object across `AppSession`s.)
if input is None:
- input = get_app_session().input
+ input = get_app_session()._input
if output is None:
- output = get_app_session().output
+ output = get_app_session()._output
# Create new `AppSession` and activate.
session = AppSession(input=input, output=output)
diff --git a/contrib/python/prompt-toolkit/py3/ya.make b/contrib/python/prompt-toolkit/py3/ya.make
index 53903b363a..f8e402db87 100644
--- a/contrib/python/prompt-toolkit/py3/ya.make
+++ b/contrib/python/prompt-toolkit/py3/ya.make
@@ -2,7 +2,7 @@
PY3_LIBRARY()
-VERSION(3.0.45)
+VERSION(3.0.46)
LICENSE(BSD-3-Clause)