Browse Source

Update contrib/python/clickhouse-connect to 0.6.22

robot-contrib 1 year ago
parent
commit
56dd7ec320

+ 1 - 1
contrib/python/clickhouse-connect/.dist-info/METADATA

@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: clickhouse-connect
-Version: 0.6.21
+Version: 0.6.22
 Summary: ClickHouse Database Core Driver for Python, Pandas, and Superset
 Home-page: https://github.com/ClickHouse/clickhouse-connect
 Author: ClickHouse Inc.

+ 1 - 1
contrib/python/clickhouse-connect/clickhouse_connect/__version__.py

@@ -1 +1 @@
-version = '0.6.21'
+version = '0.6.22'

+ 1 - 1
contrib/python/clickhouse-connect/clickhouse_connect/driver/query.py

@@ -20,7 +20,7 @@ from clickhouse_connect.driver.options import check_arrow, pd_extended_dtypes
 from clickhouse_connect.driver.context import BaseQueryContext
 
 logger = logging.getLogger(__name__)
-commands = 'CREATE|ALTER|SYSTEM|GRANT|REVOKE|CHECK|DETACH|DROP|DELETE|KILL|' + \
+commands = 'CREATE|ALTER|SYSTEM|GRANT|REVOKE|CHECK|DETACH|ATTACH|DROP|DELETE|KILL|' + \
            'OPTIMIZE|SET|RENAME|TRUNCATE|USE'
 
 limit_re = re.compile(r'\s+LIMIT($|\s)', re.IGNORECASE)

+ 1 - 1
contrib/python/clickhouse-connect/clickhouse_connect/driver/transform.py

@@ -105,7 +105,7 @@ class NativeTransform:
                         # the insert if the user has included bad data in the column.  We need to ensure that the
                         # insert fails (using garbage data) to avoid a partial insert, and use the context to
                         # propagate the correct exception to the user
-                        logger.error('Error serializing column `%s` into into data type `%s`',
+                        logger.error('Error serializing column `%s` into data type `%s`',
                                      col_name, col_type.name, exc_info=True)
                         context.insert_exception = ex
                         yield 'INTERNAL EXCEPTION WHILE SERIALIZING'.encode()

+ 1 - 1
contrib/python/clickhouse-connect/ya.make

@@ -2,7 +2,7 @@
 
 PY3_LIBRARY()
 
-VERSION(0.6.21)
+VERSION(0.6.22)
 
 LICENSE(Apache-2.0)