From 28829babc540d388393d225d56f48c892698e07a Mon Sep 17 00:00:00 2001 From: Geoff Genz Date: Wed, 18 Oct 2023 14:24:19 -0600 Subject: [PATCH] Fix dumb import (#253) --- CHANGELOG.md | 4 ++++ clickhouse_connect/__version__.py | 2 +- clickhouse_connect/driverc/dataconv.pyx | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3eddceac..e945a34a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ In any case, this should not affect the basic usage of Superset with ClickHouse. your Superset installation, the ClickHouse datasource will be available with either the enhanced connection dialog or a standard SqlAlchemy DSN in the form of `clickhousedb://{username}:{password}@{host}:{port}`. +## 0.6.16, 2023-10-18 +### Bug Fix +- Remove bad private import to fix C Linkage. Closes https://github.com/ClickHouse/clickhouse-connect/issues/252 + ## 0.6.15, 2023-10-16 ### Improvement - Added Python 3.12 wheels and CI tests. Note that PyArrow is not yet available for 3.12, but should be soon. See https://github.com/apache/arrow/issues/37880 diff --git a/clickhouse_connect/__version__.py b/clickhouse_connect/__version__.py index 7c76330d..3b497966 100644 --- a/clickhouse_connect/__version__.py +++ b/clickhouse_connect/__version__.py @@ -1 +1 @@ -version = '0.6.15' +version = '0.6.16' diff --git a/clickhouse_connect/driverc/dataconv.pyx b/clickhouse_connect/driverc/dataconv.pyx index 9fe3435d..dab91141 100644 --- a/clickhouse_connect/driverc/dataconv.pyx +++ b/clickhouse_connect/driverc/dataconv.pyx @@ -1,5 +1,4 @@ import struct -from _testbuffer import PyBUF_READ from typing import Sequence, Optional import array @@ -9,6 +8,7 @@ import cython from .buffer cimport ResponseBuffer from cpython cimport Py_INCREF, Py_DECREF +from cpython.buffer cimport PyBUF_READ from cpython.mem cimport PyMem_Free, PyMem_Malloc from cpython.tuple cimport PyTuple_New, PyTuple_SET_ITEM from cpython.bytearray cimport PyByteArray_GET_SIZE, PyByteArray_Resize