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

[Backport 2.x] Read extra Spark submit parameters from cluster settings #2235

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 492982c from #2219.

* Add default setting for Spark execution engine

Signed-off-by: Chen Dai <[email protected]>

* Pass extra parameters to Spark dispatcher

Signed-off-by: Chen Dai <[email protected]>

* Wrap read default setting file with previlege action

Signed-off-by: Chen Dai <[email protected]>

* Fix spotless format

Signed-off-by: Chen Dai <[email protected]>

* Use input stream to read default config file

Signed-off-by: Chen Dai <[email protected]>

* Add UT for dispatcher

Signed-off-by: Chen Dai <[email protected]>

* Add more UT

Signed-off-by: Chen Dai <[email protected]>

* Remove default config setting

Signed-off-by: Chen Dai <[email protected]>

* Fix spotless check in spark module

Signed-off-by: Chen Dai <[email protected]>

* Refactor test code

Signed-off-by: Chen Dai <[email protected]>

* Add more UT on config class

Signed-off-by: Chen Dai <[email protected]>

---------

Signed-off-by: Chen Dai <[email protected]>
(cherry picked from commit 492982c)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Merging #2235 (fdb87aa) into 2.x (ac7a0a0) will increase coverage by 0.01%.
Report is 2 commits behind head on 2.x.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##                2.x    #2235      +/-   ##
============================================
+ Coverage     96.39%   96.40%   +0.01%     
  Complexity     4762     4762              
============================================
  Files           440      440              
  Lines         12849    12858       +9     
  Branches        874      874              
============================================
+ Hits          12386    12396      +10     
  Misses          454      454              
+ Partials          9        8       -1     
Flag Coverage Δ
sql-engine 96.40% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...park/asyncquery/AsyncQueryExecutorServiceImpl.java 100.00% <100.00%> (ø)
.../spark/asyncquery/model/SparkSubmitParameters.java 100.00% <100.00%> (+1.40%) ⬆️
...h/sql/spark/config/SparkExecutionEngineConfig.java 100.00% <ø> (ø)
...rch/sql/spark/dispatcher/SparkQueryDispatcher.java 100.00% <100.00%> (ø)
...sql/spark/response/JobExecutionResponseReader.java 100.00% <100.00%> (ø)

@penghuo penghuo merged commit 6b221c3 into 2.x Oct 6, 2023
26 of 28 checks passed
@github-actions github-actions bot deleted the backport/backport-2219-to-2.x branch October 6, 2023 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants