Skip to content

Commit

Permalink
Fix SparkExecutionEngineConfigClusterSetting deserialize issue (opens…
Browse files Browse the repository at this point in the history
…earch-project#2838)

Signed-off-by: Tomoyuki Morita <[email protected]>
  • Loading branch information
ykmr1224 authored and jzonthemtn committed Aug 28, 2024
1 parent 9aad219 commit fd0b2b5
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 fd0b2b5

Please sign in to comment.