From 2117650358eb071070895f0863a5e3a2b831473a Mon Sep 17 00:00:00 2001 From: Tomoyuki MORITA Date: Tue, 23 Jul 2024 16:32:00 -0700 Subject: [PATCH] Fix SparkExecutionEngineConfigClusterSetting deserialize issue (#2838) 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); } }