From 92a2ca3db1090e31187434359f1cc7a91c4cdce2 Mon Sep 17 00:00:00 2001 From: aiceflower Date: Fri, 21 Jul 2023 23:17:20 +0800 Subject: [PATCH] fix Fixed export result set issue (#4792) --- .../org/apache/linkis/storage/excel/StorageExcelWriter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linkis-commons/linkis-storage/src/main/java/org/apache/linkis/storage/excel/StorageExcelWriter.java b/linkis-commons/linkis-storage/src/main/java/org/apache/linkis/storage/excel/StorageExcelWriter.java index 05e1b68deb..6b2a98c72b 100644 --- a/linkis-commons/linkis-storage/src/main/java/org/apache/linkis/storage/excel/StorageExcelWriter.java +++ b/linkis-commons/linkis-storage/src/main/java/org/apache/linkis/storage/excel/StorageExcelWriter.java @@ -51,9 +51,9 @@ public class StorageExcelWriter extends ExcelFsWriter { protected DataType[] types; protected int rowPoint; protected int columnCounter; - protected Map styles; - private boolean isFlush; - private ByteArrayOutputStream os; + protected Map styles = new HashMap<>(); + private boolean isFlush = true; + private ByteArrayOutputStream os = new ByteArrayOutputStream(); private ByteArrayInputStream is; public StorageExcelWriter(