diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-06-10 08:08:25 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-06-10 08:16:40 +0300 |
commit | c67cac0849bee6be16bdeb3e4a20ca79bb4457ee (patch) | |
tree | 00b24af04ef32c75c00b4079ba282b75cf474535 /contrib | |
parent | bd6e0dbac73a046463a77c85a1fcfd531b801782 (diff) | |
download | ydb-c67cac0849bee6be16bdeb3e4a20ca79bb4457ee.tar.gz |
Intermediate changes
Diffstat (limited to 'contrib')
4 files changed, 7 insertions, 7 deletions
diff --git a/contrib/python/clickhouse-connect/.dist-info/METADATA b/contrib/python/clickhouse-connect/.dist-info/METADATA index 22f18e5bad..7b69f6db6d 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.10 +Version: 0.7.11 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 484aed0698..49289afed2 100644 --- a/contrib/python/clickhouse-connect/clickhouse_connect/__version__.py +++ b/contrib/python/clickhouse-connect/clickhouse_connect/__version__.py @@ -1 +1 @@ -version = '0.7.10' +version = '0.7.11' diff --git a/contrib/python/clickhouse-connect/clickhouse_connect/datatypes/numeric.py b/contrib/python/clickhouse-connect/clickhouse_connect/datatypes/numeric.py index 7796098785..2cd9e5f105 100644 --- a/contrib/python/clickhouse-connect/clickhouse_connect/datatypes/numeric.py +++ b/contrib/python/clickhouse-connect/clickhouse_connect/datatypes/numeric.py @@ -291,9 +291,9 @@ class Decimal(ClickHouseType): dec = decimal.Decimal mult = self._mult if self.nullable: - write_array(self._array_type, [int(dec(x) * mult) if x else 0 for x in column], dest) + write_array(self._array_type, [int(dec(str(x)) * mult) if x else 0 for x in column], dest) else: - write_array(self._array_type, [int(dec(x) * mult) for x in column], dest) + write_array(self._array_type, [int(dec(str(x)) * mult) for x in column], dest) def _active_null(self, ctx: QueryContext): if ctx.use_none: @@ -335,10 +335,10 @@ class BigDecimal(Decimal, registered=False): if self.nullable: v = self._zeros for x in column: - dest += v if not x else itb(int(decimal.Decimal(x) * mult), sz, 'little', signed=True) + dest += v if not x else itb(int(decimal.Decimal(str(x)) * mult), sz, 'little', signed=True) else: for x in column: - dest += itb(int(decimal.Decimal(x) * mult), sz, 'little', signed=True) + dest += itb(int(decimal.Decimal(str(x)) * mult), sz, 'little', signed=True) class Decimal32(Decimal): diff --git a/contrib/python/clickhouse-connect/ya.make b/contrib/python/clickhouse-connect/ya.make index b2c10dbad5..6957d8ba2b 100644 --- a/contrib/python/clickhouse-connect/ya.make +++ b/contrib/python/clickhouse-connect/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(0.7.10) +VERSION(0.7.11) LICENSE(Apache-2.0) |