From 396ca13e828678fdbcfdd1437965f5ee35e8806b Mon Sep 17 00:00:00 2001 From: fuweng11 <76141879+fuweng11@users.noreply.github.com> Date: Fri, 18 Oct 2024 12:14:08 +0800 Subject: [PATCH] [INLONG-11366][Manager] Fix the problem of data preview error handling line delimiter (#11367) --- .../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];