diff --git a/v8/src/main/java/org/apache/zeppelin/iginx/IginxInterpreter8.java b/v8/src/main/java/org/apache/zeppelin/iginx/IginxInterpreter8.java index 6a686d3..018783c 100644 --- a/v8/src/main/java/org/apache/zeppelin/iginx/IginxInterpreter8.java +++ b/v8/src/main/java/org/apache/zeppelin/iginx/IginxInterpreter8.java @@ -12,7 +12,7 @@ import cn.edu.tsinghua.iginx.thrift.SqlType; import cn.edu.tsinghua.iginx.utils.FormatUtils; import cn.edu.tsinghua.iginx.utils.Pair; -import com.google.gson.Gson; +import com.alibaba.fastjson2.JSON; import java.io.*; import java.math.BigDecimal; import java.math.RoundingMode; @@ -372,8 +372,8 @@ public String buildTreeForShowColumns(SessionExecuteSqlResult sqlResult, String } List nodeList = new ArrayList<>(); int depth = tree.traverseToHighchartsTreeNodes(tree.getRoot(), nodeList); - Gson gson = new Gson(); - String jsonString = gson.toJson(nodeList); + + String jsonString = JSON.toJSONString(nodeList); String html = content .toString()