Skip to content

Commit

Permalink
Fix SparkExecutionEngineConfigClusterSetting deserialize issue (#2838) (
Browse files Browse the repository at this point in the history
#2855)

(cherry picked from commit 2117650)

Signed-off-by: Tomoyuki Morita <moritato@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent bebf31a commit 277f9e2
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 277f9e2

Please sign in to comment.