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()) {