From ed033ac5ad88e9026ba968e0728b8f309bed80ef Mon Sep 17 00:00:00 2001 From: An Qi Date: Tue, 7 May 2024 10:59:37 +0800 Subject: [PATCH] fix(client): remove duplicated key header --- .../java/cn/edu/tsinghua/iginx/client/IginxClient.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/client/src/main/java/cn/edu/tsinghua/iginx/client/IginxClient.java b/client/src/main/java/cn/edu/tsinghua/iginx/client/IginxClient.java index 0d5c30e0e6..8584c8569b 100644 --- a/client/src/main/java/cn/edu/tsinghua/iginx/client/IginxClient.java +++ b/client/src/main/java/cn/edu/tsinghua/iginx/client/IginxClient.java @@ -570,15 +570,9 @@ private static void processExportCsv(QueryDataSet res) throws SessionException, try { CSVPrinter printer = getCSVBuilder(exportCSV).build().print(new PrintWriter(file)); - boolean hasKey = res.getColumnList().get(0).equals(GlobalConstant.KEY_NAME); if (exportCSV.isExportHeader) { - List headerNames = new ArrayList<>(); - if (hasKey) { - headerNames.add(GlobalConstant.KEY_NAME); - } - headerNames.addAll(res.getColumnList()); - printer.printRecord(headerNames); + printer.printRecord(res.getColumnList()); } while (res.hasMore()) {