Skip to content

Commit

Permalink
[fix](Export) Fix an export error when lower_case_table_names=1 (apac…
Browse files Browse the repository at this point in the history
  • Loading branch information
BePPPower authored Dec 17, 2023
1 parent 0f3c544 commit 9b3d4bb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,11 @@ private List<List<TableRef>> getTableRefListPerParallel() throws UserException {
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);
Expand Down

0 comments on commit 9b3d4bb

Please sign in to comment.