Skip to content
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

refactor(sql-execute): refactor SQL async execute api into streaming return #2246

Merged
merged 18 commits into from
Apr 28, 2024

Conversation

LuckyPickleZZ
Copy link
Collaborator

What type of PR is this?

type-feature

What this PR does / why we need it:

In ODC 4.3.0, We hope to refactor the SQL async execute api into a streaming return method. Each time, it returns the results that has already been finished.
Therefore, I added a AsyncExecuteContext to cache the results of ODCStatementCallBack.
When the ODC server receives a request for getResult, it will first block for one second to determine whether the SQL execution is complete.
If the execution is completed, the result will be directly returned. The status is SUCCESS.
If it is not completed, the results completed during the period from the last request to now will be returned. At this point, the status is RUNNING.

@LuckyPickleZZ LuckyPickleZZ added type-feature The functionality to be implemented module-sql execution module-Monitoring and diagnosis Full link diagnosis and execution plan labels Apr 17, 2024
@LuckyPickleZZ LuckyPickleZZ added this to the ODC 4.3.0 milestone Apr 17, 2024
@LuckyPickleZZ LuckyPickleZZ self-assigned this Apr 17, 2024
@yhilmare
Copy link
Contributor

pr gets conflict with dev/4.3.x

yhilmare
yhilmare previously approved these changes Apr 24, 2024
Copy link
Contributor

@yhilmare yhilmare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

ungreat
ungreat previously approved these changes Apr 24, 2024
Copy link
Collaborator

@ungreat ungreat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

smallsheeeep
smallsheeeep previously approved these changes Apr 24, 2024
Copy link
Contributor

@smallsheeeep smallsheeeep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@yhilmare yhilmare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@yhilmare yhilmare merged commit acb58ac into dev/4.3.x Apr 28, 2024
11 checks passed
@yhilmare yhilmare deleted the wenmu_430_feat_refactor_async_execute branch April 28, 2024 13:05
@LuckyPickleZZ LuckyPickleZZ restored the wenmu_430_feat_refactor_async_execute branch July 24, 2024 09:01
@LuckyPickleZZ LuckyPickleZZ deleted the wenmu_430_feat_refactor_async_execute branch July 24, 2024 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module-Monitoring and diagnosis Full link diagnosis and execution plan module-sql execution type-feature The functionality to be implemented
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants