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 FlintJob with FlintStatement and StatementExecutionManager #635

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

noCharger
Copy link
Collaborator

@noCharger noCharger commented Sep 9, 2024

Description

  1. Batch and Streaming query will take queryId from spark conf spark.flint.job.queryId
  2. Refactor FlintJob using the FlintStatement data model and the StatementExecutionManager interface, and provide SingleStatementExecutionManager as the StatementExecutionManager implementation. With this enhancement, FlintJob may manage the query lifecycle using these extension points. FlintJob's default behavior remains unchanged.

Future task

#633

Issues Resolved

#602

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@noCharger noCharger force-pushed the flint-job-refactor branch 2 times, most recently from 223c619 to d3b9440 Compare September 9, 2024 21:01
@noCharger noCharger marked this pull request as ready for review September 9, 2024 21:01
Signed-off-by: Louis Chu <clingzhi@amazon.com>
@noCharger
Copy link
Collaborator Author

Signed-off-by: Louis Chu <clingzhi@amazon.com>
@noCharger noCharger self-assigned this Sep 10, 2024
@noCharger noCharger merged commit 7d8f2b0 into opensearch-project:main Sep 10, 2024
7 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 10, 2024
…635)

* Refactor FlintJob with FlintStatement and StatementExecutionManager

Signed-off-by: Louis Chu <clingzhi@amazon.com>

* Resolve comments

Signed-off-by: Louis Chu <clingzhi@amazon.com>

---------

Signed-off-by: Louis Chu <clingzhi@amazon.com>
(cherry picked from commit 7d8f2b0)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 10, 2024
…635)

* Refactor FlintJob with FlintStatement and StatementExecutionManager

Signed-off-by: Louis Chu <clingzhi@amazon.com>

* Resolve comments

Signed-off-by: Louis Chu <clingzhi@amazon.com>

---------

Signed-off-by: Louis Chu <clingzhi@amazon.com>
(cherry picked from commit 7d8f2b0)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
noCharger pushed a commit that referenced this pull request Sep 10, 2024
…635) (#637)

* Refactor FlintJob with FlintStatement and StatementExecutionManager



* Resolve comments



---------


(cherry picked from commit 7d8f2b0)

Signed-off-by: Louis Chu <clingzhi@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants