diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-11-08 09:59:41 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-11-08 10:08:42 +0300 |
commit | d70137a7b530ccaa52834274913bbb5a3d1ca06e (patch) | |
tree | 1fefbe374d1154a52cb9f9b36b1e956d8f8d4aaf /contrib/python/clickhouse-connect/clickhouse_connect/driver | |
parent | 3065c87f146e17787c53369001cfe6fe557f4d6f (diff) | |
download | ydb-d70137a7b530ccaa52834274913bbb5a3d1ca06e.tar.gz |
Intermediate changes
commit_hash:b029461eab3edbc697836a436c182ef54d9048a9
Diffstat (limited to 'contrib/python/clickhouse-connect/clickhouse_connect/driver')
-rw-r--r-- | contrib/python/clickhouse-connect/clickhouse_connect/driver/common.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/contrib/python/clickhouse-connect/clickhouse_connect/driver/common.py b/contrib/python/clickhouse-connect/clickhouse_connect/driver/common.py index 404a09e867..38bbd52783 100644 --- a/contrib/python/clickhouse-connect/clickhouse_connect/driver/common.py +++ b/contrib/python/clickhouse-connect/clickhouse_connect/driver/common.py @@ -47,11 +47,6 @@ def write_array(code: str, column: Sequence, dest: MutableSequence, col_name: Op :param dest: Destination byte buffer :param col_name: Optional column name for error tracking """ - if len(column) and not isinstance(column[0], (int, float)): - if code in ('f', 'F', 'd', 'D'): - column = [float(x) for x in column] - else: - column = [int(x) for x in column] try: buff = struct.Struct(f'<{len(column)}{code}') dest += buff.pack(*column) |