From f63c8ba4293d4fc71a5af806bd69a84f7e80fc6c Mon Sep 17 00:00:00 2001 From: Tomoyuki Morita Date: Wed, 17 Jul 2024 11:50:33 -0700 Subject: [PATCH] Fix SparkExecutionEngineConfigClusterSetting deserialize issue Signed-off-by: Tomoyuki Morita --- .../config/SparkExecutionEngineConfigClusterSetting.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/async-query/src/main/java/org/opensearch/sql/spark/config/SparkExecutionEngineConfigClusterSetting.java b/async-query/src/main/java/org/opensearch/sql/spark/config/SparkExecutionEngineConfigClusterSetting.java index 5c1328bf91..adaaa57d31 100644 --- a/async-query/src/main/java/org/opensearch/sql/spark/config/SparkExecutionEngineConfigClusterSetting.java +++ b/async-query/src/main/java/org/opensearch/sql/spark/config/SparkExecutionEngineConfigClusterSetting.java @@ -6,9 +6,9 @@ package org.opensearch.sql.spark.config; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.google.gson.Gson; import lombok.Builder; import lombok.Data; -import org.opensearch.sql.utils.SerializeUtils; /** * This POJO is just for reading stringified json in `plugins.query.executionengine.spark.config` @@ -29,7 +29,6 @@ public class SparkExecutionEngineConfigClusterSetting { public static SparkExecutionEngineConfigClusterSetting toSparkExecutionEngineConfig( String jsonString) { - return SerializeUtils.buildGson() - .fromJson(jsonString, SparkExecutionEngineConfigClusterSetting.class); + return new Gson().fromJson(jsonString, SparkExecutionEngineConfigClusterSetting.class); } }