-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doesnt insert bigint with execute and list of values on mac m1 #400
Comments
Did you try latest master? It was fixed in 41ba852. |
Hi @xzkostyan, ...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):
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? |
@butorov I'll release new version next week. Master is stable enough to be used in production. |
Version 0.2.7 is released. |
ive created test table with uint256 col
trying to insert with
and it throws
only on mac m1, same code with same driver works fine on window
clickhouse_driver 0.2.6
python3.10
The text was updated successfully, but these errors were encountered: