This is an automated email from the ASF dual-hosted git repository.
yiguolei 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 cd59192b07f [fix](hive) fix spelling mistakes for "separatorChar"
#32061
cd59192b07f is described below
commit cd59192b07fa3f2db1ca1070fdcd0226776a7fe4
Author: wuwenchi <[email protected]>
AuthorDate: Mon Mar 11 22:12:36 2024 +0800
[fix](hive) fix spelling mistakes for "separatorChar" #32061
---
.../docker-compose/hive/scripts/create_preinstalled_table.hql | 2 +-
.../java/org/apache/doris/datasource/hive/source/HiveScanNode.java | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/docker/thirdparties/docker-compose/hive/scripts/create_preinstalled_table.hql
b/docker/thirdparties/docker-compose/hive/scripts/create_preinstalled_table.hql
index 9baf13020f6..345d62842d5 100644
---
a/docker/thirdparties/docker-compose/hive/scripts/create_preinstalled_table.hql
+++
b/docker/thirdparties/docker-compose/hive/scripts/create_preinstalled_table.hql
@@ -1934,6 +1934,6 @@ create table employee_gz(name string,salary string)
row format serde 'org.apache.hadoop.hive.serde2.OpenCSVSerde'
with serdeproperties
('quoteChar'='\"'
-,'seperatorChar'=',');
+,'separatorChar'=',');
insert into employee_gz values ('a', '1.1'), ('b', '2.2');
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 c901ee654ae..d4d471a4612 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
@@ -78,7 +78,7 @@ public class HiveScanNode extends FileQueryScanNode {
public static final String DEFAULT_FIELD_DELIMITER = "\1"; // "\x01"
public static final String PROP_LINE_DELIMITER = "line.delim";
public static final String DEFAULT_LINE_DELIMITER = "\n";
- public static final String PROP_SEPERATOR_CHAR = "seperatorChar";
+ public static final String PROP_SEPARATOR_CHAR = "separatorChar";
public static final String PROP_QUOTA_CHAR = "quoteChar";
public static final String PROP_COLLECTION_DELIMITER_HIVE2 =
"colelction.delim";
@@ -363,8 +363,8 @@ public class HiveScanNode extends FileQueryScanNode {
java.util.Map<String, String> delimiter =
hmsTable.getRemoteTable().getSd().getSerdeInfo().getParameters();
if (delimiter.containsKey(PROP_FIELD_DELIMITER)) {
textParams.setColumnSeparator(delimiter.get(PROP_FIELD_DELIMITER));
- } else if (delimiter.containsKey(PROP_SEPERATOR_CHAR)) {
- textParams.setColumnSeparator(delimiter.get(PROP_SEPERATOR_CHAR));
+ } else if (delimiter.containsKey(PROP_SEPARATOR_CHAR)) {
+ textParams.setColumnSeparator(delimiter.get(PROP_SEPARATOR_CHAR));
} else {
textParams.setColumnSeparator(DEFAULT_FIELD_DELIMITER);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]