This is an automated email from the ASF dual-hosted git repository.
xuyang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new eb05ed55412 [bugfix](multi catalog) fixed an issue in master where
hive directory field separator was an empty string causing it to be core
(#34594)
eb05ed55412 is described below
commit eb05ed55412acf83425f13892508f01f79991ebc
Author: lw112 <[email protected]>
AuthorDate: Sat May 11 15:49:35 2024 +0800
[bugfix](multi catalog) fixed an issue in master where hive directory field
separator was an empty string causing it to be core (#34594)
Fixed an issue in master where hive directory field separator was an empty
string causing it to be core.
---
.../java/org/apache/doris/datasource/hive/source/HiveScanNode.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/source/HiveScanNode.java
b/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/source/HiveScanNode.java
index d4d471a4612..0dbaa8b462b 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/source/HiveScanNode.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/source/HiveScanNode.java
@@ -362,7 +362,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: [email protected]
For additional commands, e-mail: [email protected]