Comments (4)
Version 0.2.7 is released.
from clickhouse-driver.
Hi @xzkostyan,
I had a similar issue (but with int128_to_quads
) on my M2 Pro.
...my app's stack trace...
| client.execute(query, data)
| File "/Users/user/.pyenv/versions/my-app-3.11.6/lib/python3.11/site-packages/clickhouse_driver/client.py", line 367, in execute
| rv = self.process_insert_query(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/Users/user/.pyenv/versions/my-app-3.11.6/lib/python3.11/site-packages/clickhouse_driver/client.py", line 598, in process_insert_query
| rv = self.send_data(sample_block, data,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/Users/user/.pyenv/versions/my-app-3.11.6/lib/python3.11/site-packages/clickhouse_driver/client.py", line 651, in send_data
| self.connection.send_data(block)
| File "/Users/user/.pyenv/versions/my-app-3.11.6/lib/python3.11/site-packages/clickhouse_driver/connection.py", line 667, in send_data
| self.block_out.write(block)
| File "/Users/user/.pyenv/versions/my-app-3.11.6/lib/python3.11/site-packages/clickhouse_driver/streams/native.py", line 43, in write
| write_column(self.context, col_name, col_type, items,
| File "/Users/user/.pyenv/versions/my-app-3.11.6/lib/python3.11/site-packages/clickhouse_driver/columns/service.py", line 167, in write_column
| column.write_data(items, buf)
| File "/Users/user/.pyenv/versions/my-app-3.11.6/lib/python3.11/site-packages/clickhouse_driver/columns/base.py", line 145, in write_data
| self._write_data(items, buf)
| File "/Users/user/.pyenv/versions/my-app-3.11.6/lib/python3.11/site-packages/clickhouse_driver/columns/decimalcolumn.py", line 70, in _write_data
| super(DecimalColumn, self)._write_data(items, buf)
| File "/Users/user/.pyenv/versions/my-app-3.11.6/lib/python3.11/site-packages/clickhouse_driver/columns/base.py", line 149, in _write_data
| self.write_items(prepared, buf)
| File "/Users/user/.pyenv/versions/my-app-3.11.6/lib/python3.11/site-packages/clickhouse_driver/columns/intcolumn.py", line 113, in write_items
| uint_64_pairs = self.to_quads(items, n_items)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "clickhouse_driver/columns/largeint.pyx", line 36, in clickhouse_driver.columns.largeint.int128_to_quads
| TypeError: int128_to_quads() takes exactly 2 positional arguments (3 given)
+------------------------------------
The same code works well while running in a Docker image (on the same machine, with the same Python and ClickHouse):
- Python 3.11.6
- ClickHouse 23.7.1 (ran in Docker from
clickhouse/clickhouse-server:23.7.1
)
I tested it with your latest master (on 24e8b35) and it worked well on all my test cases.
Do you have plans to release a new version with this bug fix? And is the master stable enough for production?
from clickhouse-driver.
@butorov I'll release new version next week. Master is stable enough to be used in production.
from clickhouse-driver.
Did you try latest master? It was fixed in 41ba852.
from clickhouse-driver.
Related Issues (20)
- Code:50. Unknown type Bool HOT 1
- input_format_null_as_default is applied incorrectly to UUID columns, causes an exception in the UUID constructor HOT 1
- Running tests on clickhouse 23.8 HOT 3
- Debug query HOT 1
- BrokenPipeError when instert too large array HOT 1
- Memory leak when clickhouse raise error on data send.
- clickhouse_driver.varint.read_varint is called recursively HOT 2
- Incorrect minimum value of Date32 type
- Using both client-side and server-side binding prevents using server-side binding HOT 2
- Unexpected 'driver' HOT 1
- use_client_time_zone doesn't return offset-aware datetime object HOT 3
- execute_iter loads all rows in RAM HOT 2
- Failing to import clickhouse_driver: ModuleNotFoundError: 'clickhouse_driver.varint' HOT 1
- Unable to Connect to ClickHouse Cloud Instance Using clickhouse_driver Python Package HOT 2
- TypeError when selecting a Decimal column HOT 1
- Problems while inserting into a table with a Tuple column
- bug with array query params
- Unexpected packet message HOT 1
- Fail to ignore certificate problems with verify=False
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clickhouse-driver.