Skip to content

Commit 86895b7

Browse files
authored
fix: add configurations for Explain feature (#1899)
1 parent b3d5559 commit 86895b7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/nativeimage/SpannerFeature.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ final class SpannerFeature implements Feature {
4141
"com.google.cloud.spanner.connection.ClientSideStatementSetExecutor";
4242
private static final String CLIENT_SIDE_STATEMENT_PG_EXECUTOR =
4343
"com.google.cloud.spanner.connection.ClientSideStatementPgBeginExecutor";
44+
private static final String CLIENT_SIDE_STATEMENT_EXPLAIN_EXECUTOR =
45+
"com.google.cloud.spanner.connection.ClientSideStatementExplainExecutor";
4446
private static final String ABSTRACT_STATEMENT_PARSER =
4547
"com.google.cloud.spanner.connection.AbstractStatementParser";
4648
private static final String STATEMENT_PARSER =
@@ -62,6 +64,9 @@ public void beforeAnalysis(BeforeAnalysisAccess access) {
6264
if (access.findClassByName(CLIENT_SIDE_STATEMENT_PG_EXECUTOR) != null) {
6365
NativeImageUtils.registerClassForReflection(access, CLIENT_SIDE_STATEMENT_PG_EXECUTOR);
6466
}
67+
if (access.findClassByName(CLIENT_SIDE_STATEMENT_EXPLAIN_EXECUTOR) != null) {
68+
NativeImageUtils.registerClassForReflection(access, CLIENT_SIDE_STATEMENT_EXPLAIN_EXECUTOR);
69+
}
6570
if (access.findClassByName(CLIENT_SIDE_STATEMENT_SET_EXECUTOR) != null) {
6671
NativeImageUtils.registerClassForReflection(access, CLIENT_SIDE_STATEMENT_SET_EXECUTOR);
6772
}

0 commit comments

Comments
 (0)