Open akshayu2411 opened 1 month ago
Python client is using http client to query pinot. And it's using httpx for async request.
You meant need to write your own logic if you don't want to use httpx
Yes, we could have used httpx but wanted to use sqlalchemy
for our usecase. And in order to make multiple pinot calls in parallel using in a single API in fastAPI, create_async_engine
could have helped.
We were using pinot in our backend fastapi code using Sqlalchemy. We used create_engine from sqlalchemy to create connections with pinot.
But now we have a usecase of making async calls to pinot, so as to make multiple calls at the same time and then await on the results.
In order to do so, we tried the following code:
But this code is giving the following error:
How can we create Sqlalchemy to create multiple async calls instead of using external libraries like asyncio and httpx as used in the examples https://github.com/python-pinot-dbapi/pinot-dbapi/blob/master/examples/pinot_async.py.