Comments (2)
There are more problems with stream results than that
I faced problem here self.settings = self.settings or {}
Solved it that way:
collections_cursor.set_stream_results(True, 500000)
collections_cursor._settings = {"max_block_size": 500000}
collections_cursor.settings = collections_cursor._settings
Next error:
File "/venv/lib/python3.8/site-packages/asynch/cursors.py", line 63, in execute
response = await execute(query, args=args, with_column_types=True, **execute_kwargs)
TypeError: execute_iter() got an unexpected keyword argument 'args'
I tried to hide args param:
def fake_execute_iter(orig_method):
async def do(
query,
args=None,
params=None,
with_column_types=False,
external_tables=None,
query_id=None,
settings=None,
types_check=False):
return await orig_method(query, params, with_column_types, external_tables, query_id, settings, types_check)
return do
Last exception got from here:
File "/venv/lib/python3.8/site-packages/asynch/cursors.py", line 65, in execute
self._process_response(response)
File "/venv/lib/python3.8/site-packages/asynch/cursors.py", line 82, in _process_response
columns_with_types = next(response)
File "/venv/lib/python3.8/site-packages/asynch/proto/connection.py", line 857, in iter_receive_result
for rows in IterQueryResult(gen, with_column_types=with_column_types):
File "/venv/lib/python3.8/site-packages/asynch/proto/result.py", line 117, in next
packet = next(self.packet_generator)
TypeError: 'async_generator' object is not an iterator
Haven't tried any further
from asynch.
please try the last version again
from asynch.
Related Issues (20)
- Problem with Decimal
- Compression still not working for 2.1.0 - 2.2.0 HOT 3
- DictCursor fetch* methods raise exceptions when no rows are returned HOT 2
- Streaming queries fail when user is readonly type 1
- Connection pool initialization HOT 2
- Bug IndexError HOT 4
- Connection live time HOT 1
- ProgrammingError on async race condition when using pool execute many HOT 6
- `Code: 50. Unknown type Object('json')` when using JSON type HOT 2
- Watch statements? HOT 1
- `Unknown type Date32` when inserting data into a `Date32` field HOT 1
- `None` input to a `String` field raise an `TypeError` HOT 2
- Query execution statistics are protected attributes
- Connection Pool thread safety, secure connection, SSL, gather?
- New release HOT 2
- AttributeError error of the fetchone function of the DictCursor class
- Cannot connect to clickhouse server, got asynch.errors.UnexpectedPacketFromServerError: Code: 102. Unexpected packet from server hn.cpd.com:31123 (expected Hello or Exception, got Unknown packet) HOT 1
- A issue with the Date type HOT 1
- Not recovering from interrupted database connection while query is executing HOT 5
- asynch.errors.UnknownTypeError: Code: 50. Unknown type Date32
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 asynch.