From ba330dd63436ff8b7333e38495797dc2fd61be79 Mon Sep 17 00:00:00 2001 From: fuwenkai <834260992@qq.com> Date: Fri, 18 Oct 2024 10:18:16 +0800 Subject: [PATCH] [INLONG-11366][Manager] Fix the problem of data preview error handling line delimiter --- .../inlong/manager/service/datatype/CsvDataTypeOperator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/datatype/CsvDataTypeOperator.java b/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/datatype/CsvDataTypeOperator.java index de53dfb19c2..4f12339014b 100644 --- a/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/datatype/CsvDataTypeOperator.java +++ b/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/datatype/CsvDataTypeOperator.java @@ -52,7 +52,7 @@ public List parseFields(String str, InlongStreamInfo streamInfo) thro if (StringUtils.isNotBlank(streamInfo.getDataEscapeChar())) { escapeChar = streamInfo.getDataEscapeChar().charAt(0); } - String[][] rowValues = SplitUtils.splitCsv(str, separator, escapeChar, null, '\n', true); + String[][] rowValues = SplitUtils.splitCsv(str, separator, escapeChar, null, null, true); int fieldIndex = 0; for (int i = 0; i < rowValues.length; i++) { String[] fieldValues = rowValues[i];