This is an automated email from the ASF dual-hosted git repository.

peacewong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/linkis.git


The following commit(s) were added to refs/heads/master by this push:
     new 92a2ca3db fix Fixed export result set issue (#4792)
92a2ca3db is described below

commit 92a2ca3db1090e31187434359f1cc7a91c4cdce2
Author: aiceflower <[email protected]>
AuthorDate: Fri Jul 21 23:17:20 2023 +0800

    fix Fixed export result set issue (#4792)
---
 .../java/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 05e1b68de..6b2a98c72 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<String, CellStyle> styles;
-  private boolean isFlush;
-  private ByteArrayOutputStream os;
+  protected Map<String, CellStyle> styles = new HashMap<>();
+  private boolean isFlush = true;
+  private ByteArrayOutputStream os = new ByteArrayOutputStream();
   private ByteArrayInputStream is;
 
   public StorageExcelWriter(


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to