This is an automated email from the ASF dual-hosted git repository.
kxiao 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 9b3d4bb5bcc [fix](Export) Fix an export error when
lower_case_table_names=1 (#28389)
9b3d4bb5bcc is described below
commit 9b3d4bb5bccdc07dae6c81ffefe4aa7aa66f5ea1
Author: Tiewei Fang <[email protected]>
AuthorDate: Sun Dec 17 20:45:43 2023 +0800
[fix](Export) Fix an export error when lower_case_table_names=1 (#28389)
---
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 22adf3e4d03..996c3ccbb32 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
@@ -458,7 +458,11 @@ public class ExportJob implements Writable {
int end = i + MAXIMUM_TABLETS_OF_OUTFILE_IN_EXPORT <
tabletsList.size()
? i + MAXIMUM_TABLETS_OF_OUTFILE_IN_EXPORT :
tabletsList.size();
List<Long> tablets = new ArrayList<>(tabletsList.subList(i,
end));
- TableRef tblRef = new TableRef(this.tableRef.getName(),
this.tableRef.getAlias(),
+ // 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,
this.tableRef.getPartitionNames(), (ArrayList) tablets,
this.tableRef.getTableSample(),
this.tableRef.getCommonHints());
tableRefList.add(tblRef);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]