Skip to content

Commit

Permalink
1.fix Gson.toJson方法在zeppelin 0.11.2上执行失败的问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxtq committed Dec 11, 2024
1 parent 32cf8aa commit 578c759
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -372,8 +372,8 @@ public String buildTreeForShowColumns(SessionExecuteSqlResult sqlResult, String
}
List<HighchartsTreeNode> 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()
Expand Down

0 comments on commit 578c759

Please sign in to comment.