From 88566b266e16089043bf9795115ea73ca2df37cf Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 23 Jul 2024 23:32:13 +0000 Subject: [PATCH] Fix SparkExecutionEngineConfigClusterSetting deserialize issue (#2838) Signed-off-by: Tomoyuki Morita (cherry picked from commit 2117650358eb071070895f0863a5e3a2b831473a) Signed-off-by: github-actions[bot] --- .../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); } }