Skip to content

Commit 28275b8

Browse files
[Release 3.0] Bump gradle 8.10.2 / JDK23 / 3.0.0.0-alpha1 on SQL plugin (#3319)
* Bump gradle 8.10.2 / JDK23 / 3.0.0.0-alpha1 on SQL plugin Signed-off-by: Peter Zhu <[email protected]> * Update imports Signed-off-by: Peter Zhu <[email protected]> * Update more imports and github actions with jdk23 Signed-off-by: Peter Zhu <[email protected]> * More imports Signed-off-by: Peter Zhu <[email protected]> * Apply spotless Signed-off-by: Peter Zhu <[email protected]> * Update byte-buddy to 1.14.19 to support JDK23 Signed-off-by: Peter Zhu <[email protected]> * Update bwc test Signed-off-by: Peter Zhu <[email protected]> * Update doctest scores Signed-off-by: Peter Zhu <[email protected]> --------- Signed-off-by: Peter Zhu <[email protected]>
1 parent c8e4e9a commit 28275b8

File tree

139 files changed

+188
-181
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+188
-181
lines changed

.github/workflows/integ-tests-with-security.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
java: [21]
24+
java: [21, 23]
2525
runs-on: ubuntu-latest
2626
container:
2727
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution
@@ -62,7 +62,7 @@ jobs:
6262
fail-fast: false
6363
matrix:
6464
os: [ windows-latest, macos-13 ]
65-
java: [21]
65+
java: [21, 23]
6666

6767
runs-on: ${{ matrix.os }}
6868

.github/workflows/sql-pitest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
matrix:
2323
java:
2424
- 21
25+
- 23
2526
runs-on: ubuntu-latest
2627
container:
2728
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution

.github/workflows/sql-test-and-build-workflow.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
# Run all jobs
3030
fail-fast: false
3131
matrix:
32-
java: [21]
32+
java: [21, 23]
3333
runs-on: ubuntu-latest
3434
container:
3535
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution
@@ -101,7 +101,9 @@ jobs:
101101
matrix:
102102
entry:
103103
- { os: windows-latest, java: 21, os_build_args: -x doctest -PbuildPlatform=windows }
104+
- { os: windows-latest, java: 23, os_build_args: -x doctest -PbuildPlatform=windows }
104105
- { os: macos-13, java: 21 }
106+
- { os: macos-13, java: 23 }
105107
runs-on: ${{ matrix.entry.os }}
106108

107109
steps:
@@ -161,7 +163,7 @@ jobs:
161163
runs-on: ubuntu-latest
162164
strategy:
163165
matrix:
164-
java: [21]
166+
java: [21, 23]
165167
container:
166168
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
167169
options: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-options }}

.github/workflows/sql-test-workflow.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
matrix:
2323
java:
2424
- 21
25+
- 23
2526
runs-on: ubuntu-latest
2627
container:
2728
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution

async-query-core/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99
id 'jacoco'
1010
id 'antlr'
1111
id 'com.diffplug.spotless' version '6.22.0'
12-
id 'com.github.johnrengelman.shadow'
12+
id 'com.gradleup.shadow'
1313
}
1414

1515
repositories {
@@ -147,4 +147,4 @@ shadowJar {
147147

148148
from sourceSets.main.output
149149
configurations = [project.configurations.runtimeClasspath]
150-
}
150+
}

async-query/src/main/java/org/opensearch/sql/spark/cluster/ClusterManagerEventListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import java.time.Duration;
1313
import java.util.Arrays;
1414
import java.util.List;
15-
import org.opensearch.client.Client;
1615
import org.opensearch.cluster.LocalNodeClusterManagerListener;
1716
import org.opensearch.cluster.service.ClusterService;
1817
import org.opensearch.common.lifecycle.LifecycleListener;
@@ -25,6 +24,7 @@
2524
import org.opensearch.sql.spark.flint.operation.FlintIndexOpFactory;
2625
import org.opensearch.threadpool.Scheduler.Cancellable;
2726
import org.opensearch.threadpool.ThreadPool;
27+
import org.opensearch.transport.client.Client;
2828

2929
public class ClusterManagerEventListener implements LocalNodeClusterManagerListener {
3030

async-query/src/main/java/org/opensearch/sql/spark/cluster/IndexCleanup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
import org.apache.logging.log4j.LogManager;
99
import org.apache.logging.log4j.Logger;
1010
import org.opensearch.action.support.IndicesOptions;
11-
import org.opensearch.client.Client;
1211
import org.opensearch.cluster.service.ClusterService;
1312
import org.opensearch.common.util.concurrent.ThreadContext;
1413
import org.opensearch.core.action.ActionListener;
1514
import org.opensearch.index.query.QueryBuilder;
1615
import org.opensearch.index.reindex.DeleteByQueryAction;
1716
import org.opensearch.index.reindex.DeleteByQueryRequest;
17+
import org.opensearch.transport.client.Client;
1818

1919
/** Clean up the old docs for indices. */
2020
public class IndexCleanup {

async-query/src/main/java/org/opensearch/sql/spark/execution/statestore/StateStore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import org.opensearch.action.support.WriteRequest;
3131
import org.opensearch.action.update.UpdateRequest;
3232
import org.opensearch.action.update.UpdateResponse;
33-
import org.opensearch.client.Client;
3433
import org.opensearch.cluster.service.ClusterService;
3534
import org.opensearch.common.action.ActionFuture;
3635
import org.opensearch.common.util.concurrent.ThreadContext;
@@ -60,6 +59,7 @@
6059
import org.opensearch.sql.spark.execution.xcontent.XContentSerializerUtil;
6160
import org.opensearch.sql.spark.flint.FlintIndexState;
6261
import org.opensearch.sql.spark.flint.FlintIndexStateModel;
62+
import org.opensearch.transport.client.Client;
6363

6464
/**
6565
* State Store maintain the state of Session and Statement. State State create/update/get doc on
@@ -260,7 +260,7 @@ public long count(String indexName, QueryBuilder query) {
260260
throw new RuntimeException(
261261
"Fetching job metadata information failed with status : " + searchResponse.status());
262262
} else {
263-
return searchResponse.getHits().getTotalHits().value;
263+
return searchResponse.getHits().getTotalHits().value();
264264
}
265265
}
266266

async-query/src/main/java/org/opensearch/sql/spark/flint/FlintIndexMetadataServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
import org.apache.logging.log4j.LogManager;
2323
import org.apache.logging.log4j.Logger;
2424
import org.opensearch.action.admin.indices.mapping.get.GetMappingsResponse;
25-
import org.opensearch.client.Client;
2625
import org.opensearch.sql.spark.asyncquery.model.AsyncQueryRequestContext;
2726
import org.opensearch.sql.spark.dispatcher.model.FlintIndexOptions;
27+
import org.opensearch.transport.client.Client;
2828

2929
/** Implementation of {@link FlintIndexMetadataService} */
3030
@AllArgsConstructor

async-query/src/main/java/org/opensearch/sql/spark/flint/OpenSearchFlintIndexClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import org.apache.logging.log4j.LogManager;
1010
import org.apache.logging.log4j.Logger;
1111
import org.opensearch.action.admin.indices.delete.DeleteIndexRequest;
12-
import org.opensearch.action.support.master.AcknowledgedResponse;
13-
import org.opensearch.client.Client;
12+
import org.opensearch.action.support.clustermanager.AcknowledgedResponse;
13+
import org.opensearch.transport.client.Client;
1414

1515
@RequiredArgsConstructor
1616
public class OpenSearchFlintIndexClient implements FlintIndexClient {

0 commit comments

Comments
 (0)