[fix](Export) Fix an export error when lower_case_table_names=1 (#28389)
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user