This is an automated email from the ASF dual-hosted git repository.
kxiao 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 d956f6983f9 (fix) Fix an `export` error when lower case table names=1
#28389 (#28388)
d956f6983f9 is described below
commit d956f6983f9af48d02053684fd17620b1c8cb29e
Author: Tiewei Fang <[email protected]>
AuthorDate: Sun Dec 17 20:46:21 2023 +0800
(fix) Fix an `export` error when lower case table names=1 #28389 (#28388)
---
fe/fe-core/src/main/java/org/apache/doris/load/ExportJob.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/load/ExportJob.java
b/fe/fe-core/src/main/java/org/apache/doris/load/ExportJob.java
index 66b0ea919d0..8521034f82e 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/load/ExportJob.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/load/ExportJob.java
@@ -366,7 +366,11 @@ public class ExportJob implements Writable {
}
ArrayList<Long> tablets = new
ArrayList<>(tabletIdList.subList(start, start + tabletsNum));
start += tabletsNum;
- TableRef tblRef = new TableRef(this.tableRef.getName(),
this.tableRef.getAlias(), null, tablets,
+ // Since export does not support the alias, here we pass the null
value.
+ // we can not use this.tableRef.getAlias(),
+ // because the constructor of `Tableref` will convert
this.tableRef.getAlias()
+ // into lower case when lower_case_table_names = 1
+ TableRef tblRef = new TableRef(this.tableRef.getName(), null,
null, tablets,
this.tableRef.getTableSample(),
this.tableRef.getCommonHints());
ArrayList<TableRef> tableRefList = Lists.newArrayList();
tableRefList.add(tblRef);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]