-
Notifications
You must be signed in to change notification settings - Fork 86
Decouple stats polling from results fetching #63
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
Comments
@matthewwardrop yes, we would welcome a patch to add support polling stats independently of fetching results. We're not currently working on it, so your contribution would be greatly appreciated :).
Regarding (2.), the client could sent a GET HTTP request to a At some point, we'll need to consider using |
Hi @ggreg, Thanks for responding to this. I'm interested in all of the stats that are returned by the standard endpoints, but most especially the 'progress' field. In terms of methodology, I am imagining polling the same endpoints currently used by This should not suffer any abandonment issues unless the user does not move on to using the Perhaps the asyncio/futures approach might belong instead in a wrapping library, such as I'll put out a PR soon. |
Hi @matthewwardrop, |
Not yet @akhandev . I'll try and put out a PR this week. :). |
Greetings all!
I'm looking to transition a project I curate (omniduct, a library to simplify data acquisition, especially for data scientists) from
pyhive
toprestodb
; but currently I would lose the ability to poll for query progress before actually attempting to retrieve results.i.e.
cursor.fetchone()
is used to both collect results and update stats, which means that I cannot show progress of the actual execution of the query, only progress through collection of the results.Would you welcome a patch to add support for this polling? Or are you planning to add it yourselves? Or are you opposed to adding this feature?
The text was updated successfully, but these errors were encountered: