-
Notifications
You must be signed in to change notification settings - Fork 75
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
feat: query profiling part 2: asynchronous #961
Conversation
@@ -124,14 +153,21 @@ async def _make_stream( | |||
|
|||
async for response in response_iterator: | |||
result = _query_response_to_result(response) | |||
yield result | |||
if result: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I added this so it doesn't yield an empty list when we have explain_options=ExplainOptions(analyze=False)
. In this case no results are returned but we get a message containing explain metrics info.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly looks good, but a few small comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Note: this is a branch of the synchronized PR (#938). Will rebase once #938 is merged.