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

lide pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new af9f5a2185b [bugfix](multi catalog) fixed an issue where the hive 
catalog field delimiter is an empty string, causing it to be core (#34589)
af9f5a2185b is described below

commit af9f5a2185ba334f59cbff3fd9f669b3e511cd47
Author: lw112 <131352377+felixw...@users.noreply.github.com>
AuthorDate: Thu May 9 21:27:31 2024 +0800

    [bugfix](multi catalog) fixed an issue where the hive catalog field 
delimiter is an empty string, causing it to be core (#34589)
---
 .../main/java/org/apache/doris/planner/external/HiveScanNode.java   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/planner/external/HiveScanNode.java 
b/fe/fe-core/src/main/java/org/apache/doris/planner/external/HiveScanNode.java
index 9903d124480..9fc1ce53883 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/planner/external/HiveScanNode.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/planner/external/HiveScanNode.java
@@ -368,7 +368,11 @@ public class HiveScanNode extends FileQueryScanNode {
         TFileTextScanRangeParams textParams = new TFileTextScanRangeParams();
         java.util.Map<String, String> delimiter = 
hmsTable.getRemoteTable().getSd().getSerdeInfo().getParameters();
         if (delimiter.containsKey(PROP_FIELD_DELIMITER)) {
-            textParams.setColumnSeparator(delimiter.get(PROP_FIELD_DELIMITER));
+            if (delimiter.get(PROP_FIELD_DELIMITER).length() == 0) {
+                textParams.setColumnSeparator(DEFAULT_FIELD_DELIMITER);
+            } else {
+                
textParams.setColumnSeparator(delimiter.get(PROP_FIELD_DELIMITER));
+            }
         } else if (delimiter.containsKey(PROP_SEPARATOR_CHAR)) {
             textParams.setColumnSeparator(delimiter.get(PROP_SEPARATOR_CHAR));
         } else {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to