This is an automated email from the ASF dual-hosted git repository. morningman 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 b18c6424be1 [fix](hive) fix spelling mistakes for "separatorChar" for 2.0 #32061 (#32066) b18c6424be1 is described below commit b18c6424be16085fa4fef1ff3de125c6b5c7fbe5 Author: wuwenchi <wuwenchi...@hotmail.com> AuthorDate: Tue Mar 12 10:56:01 2024 +0800 [fix](hive) fix spelling mistakes for "separatorChar" for 2.0 #32061 (#32066) --- .../docker-compose/hive/scripts/create_preinstalled_table.hql | 2 +- .../main/java/org/apache/doris/planner/external/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 e798ecd7f2b..4812c00a57d 100644 --- a/docker/thirdparties/docker-compose/hive/scripts/create_preinstalled_table.hql +++ b/docker/thirdparties/docker-compose/hive/scripts/create_preinstalled_table.hql @@ -1803,6 +1803,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/planner/external/HiveScanNode.java b/fe/fe-core/src/main/java/org/apache/doris/planner/external/HiveScanNode.java index 0e1f3438c4a..9903d124480 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 @@ -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"; @@ -369,8 +369,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: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org