Giter Club home page Giter Club logo

Comments (2)

bukata-sa avatar bukata-sa commented on August 15, 2024

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.

jiejieling avatar jiejieling commented on August 15, 2024

please try the last version again

from asynch.

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.