diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/nativeimage/SpannerFeature.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/nativeimage/SpannerFeature.java index 38007ddc073..666b75bb245 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/nativeimage/SpannerFeature.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/nativeimage/SpannerFeature.java @@ -41,6 +41,8 @@ final class SpannerFeature implements Feature { "com.google.cloud.spanner.connection.ClientSideStatementSetExecutor"; private static final String CLIENT_SIDE_STATEMENT_PG_EXECUTOR = "com.google.cloud.spanner.connection.ClientSideStatementPgBeginExecutor"; + private static final String CLIENT_SIDE_STATEMENT_EXPLAIN_EXECUTOR = + "com.google.cloud.spanner.connection.ClientSideStatementExplainExecutor"; private static final String ABSTRACT_STATEMENT_PARSER = "com.google.cloud.spanner.connection.AbstractStatementParser"; private static final String STATEMENT_PARSER = @@ -62,6 +64,9 @@ public void beforeAnalysis(BeforeAnalysisAccess access) { if (access.findClassByName(CLIENT_SIDE_STATEMENT_PG_EXECUTOR) != null) { NativeImageUtils.registerClassForReflection(access, CLIENT_SIDE_STATEMENT_PG_EXECUTOR); } + if (access.findClassByName(CLIENT_SIDE_STATEMENT_EXPLAIN_EXECUTOR) != null) { + NativeImageUtils.registerClassForReflection(access, CLIENT_SIDE_STATEMENT_EXPLAIN_EXECUTOR); + } if (access.findClassByName(CLIENT_SIDE_STATEMENT_SET_EXECUTOR) != null) { NativeImageUtils.registerClassForReflection(access, CLIENT_SIDE_STATEMENT_SET_EXECUTOR); }