Coder Social home page Coder Social logo

Comments (4)

xzkostyan avatar xzkostyan commented on June 2, 2024 2

Version 0.2.7 is released.

from clickhouse-driver.

butorov avatar butorov commented on June 2, 2024 1

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.

xzkostyan avatar xzkostyan commented on June 2, 2024 1

@butorov I'll release new version next week. Master is stable enough to be used in production.

from clickhouse-driver.

xzkostyan avatar xzkostyan commented on June 2, 2024

Did you try latest master? It was fixed in 41ba852.

from clickhouse-driver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.