From 10898d1dc8b939a44aec61c2e40f6407d40878b2 Mon Sep 17 00:00:00 2001 From: peacewong Date: Wed, 4 Oct 2023 23:49:50 +0800 Subject: [PATCH] Fix build error --- .../apache/linkis/storage/resultset/StorageResultSetReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkis-commons/linkis-storage/src/main/java/org/apache/linkis/storage/resultset/StorageResultSetReader.java b/linkis-commons/linkis-storage/src/main/java/org/apache/linkis/storage/resultset/StorageResultSetReader.java index 23d65e0614..c0222cc848 100644 --- a/linkis-commons/linkis-storage/src/main/java/org/apache/linkis/storage/resultset/StorageResultSetReader.java +++ b/linkis-commons/linkis-storage/src/main/java/org/apache/linkis/storage/resultset/StorageResultSetReader.java @@ -86,7 +86,7 @@ public byte[] readLine() { byte[] rowBuffer = null; try { rowBuffer = new byte[rowLen]; - len = StorageUtils.readBytes(inputStream, rowBuffer, READ_CACHE); + len = StorageUtils.readBytes(inputStream, rowBuffer, rowLen); } catch (OutOfMemoryError error) { logger.error("Result set read oom, read size {} Byte", rowLen); throw new RuntimeException(error);