Skip to content

Commit

Permalink
(fix) Fix an export error when lower case table names=1 #28389 (#28388
Browse files Browse the repository at this point in the history
)
  • Loading branch information
BePPPower authored Dec 17, 2023
1 parent 0cc604e commit d956f69
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,11 @@ private ArrayList<ArrayList<TableRef>> splitTablets(ExportStmt stmt) throws User
}
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);
Expand Down

0 comments on commit d956f69

Please sign in to comment.