Skip to content

Commit

Permalink
Fix SparkExecutionEngineConfigClusterSetting deserialize issue
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoyuki Morita <[email protected]>
  • Loading branch information
ykmr1224 committed Jul 17, 2024
1 parent a151a7d commit f63c8ba
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 f63c8ba

Please sign in to comment.