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 <[email protected]>
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>
(cherry picked from commit 277f9e2)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Jul 24, 2024
1 parent 272bac6 commit f0a4309
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 f0a4309

Please sign in to comment.