Skip to content

Commit

Permalink
Fix SparkExecutionEngineConfigClusterSetting deserialize issue (#2838)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoyuki Morita <[email protected]>
  • Loading branch information
ykmr1224 authored Jul 23, 2024
1 parent db2bd66 commit 2117650
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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);
}
}

0 comments on commit 2117650

Please sign in to comment.