Skip to content

Commit

Permalink
spotlessApply
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Kao <[email protected]>
  • Loading branch information
seankao-az committed Jun 11, 2024
1 parent 50cf7be commit 3204307
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.opensearch.sql.spark.dispatcher.model.DispatchQueryResponse;
import org.opensearch.sql.spark.dispatcher.model.JobType;
import org.opensearch.sql.spark.leasemanager.LeaseManager;
import org.opensearch.sql.spark.leasemanager.model.LeaseRequest;
import org.opensearch.sql.spark.response.JobExecutionResponseReader;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -806,12 +806,13 @@ void testDispatchAlterToManualRefreshIndexQuery() {
DataSourceMetadata dataSourceMetadata = constructMyGlueDataSourceMetadata();
when(dataSourceService.verifyDataSourceAccessAndGetRawMetadata("my_glue"))
.thenReturn(dataSourceMetadata);
when(queryHandlerFactory.getIndexDMLHandler()).thenReturn(
new IndexDMLHandler(
jobExecutionResponseReader,
flintIndexMetadataService,
indexDMLResultStorageService,
flintIndexOpFactory));
when(queryHandlerFactory.getIndexDMLHandler())
.thenReturn(
new IndexDMLHandler(
jobExecutionResponseReader,
flintIndexMetadataService,
indexDMLResultStorageService,
flintIndexOpFactory));

sparkQueryDispatcher.dispatch(getBaseDispatchQueryRequest(query), asyncQueryRequestContext);
verify(queryHandlerFactory, times(1)).getIndexDMLHandler();
Expand All @@ -828,12 +829,13 @@ void testDispatchDropIndexQuery() {
DataSourceMetadata dataSourceMetadata = constructMyGlueDataSourceMetadata();
when(dataSourceService.verifyDataSourceAccessAndGetRawMetadata("my_glue"))
.thenReturn(dataSourceMetadata);
when(queryHandlerFactory.getIndexDMLHandler()).thenReturn(
new IndexDMLHandler(
jobExecutionResponseReader,
flintIndexMetadataService,
indexDMLResultStorageService,
flintIndexOpFactory));
when(queryHandlerFactory.getIndexDMLHandler())
.thenReturn(
new IndexDMLHandler(
jobExecutionResponseReader,
flintIndexMetadataService,
indexDMLResultStorageService,
flintIndexOpFactory));

sparkQueryDispatcher.dispatch(getBaseDispatchQueryRequest(query), asyncQueryRequestContext);
verify(queryHandlerFactory, times(1)).getIndexDMLHandler();
Expand All @@ -850,12 +852,13 @@ void testDispatchVacuumIndexQuery() {
DataSourceMetadata dataSourceMetadata = constructMyGlueDataSourceMetadata();
when(dataSourceService.verifyDataSourceAccessAndGetRawMetadata("my_glue"))
.thenReturn(dataSourceMetadata);
when(queryHandlerFactory.getIndexDMLHandler()).thenReturn(
new IndexDMLHandler(
jobExecutionResponseReader,
flintIndexMetadataService,
indexDMLResultStorageService,
flintIndexOpFactory));
when(queryHandlerFactory.getIndexDMLHandler())
.thenReturn(
new IndexDMLHandler(
jobExecutionResponseReader,
flintIndexMetadataService,
indexDMLResultStorageService,
flintIndexOpFactory));

sparkQueryDispatcher.dispatch(getBaseDispatchQueryRequest(query), asyncQueryRequestContext);
verify(queryHandlerFactory, times(1)).getIndexDMLHandler();
Expand Down

0 comments on commit 3204307

Please sign in to comment.