[chore](error msg) print type info when colocate with ddl failed due to type mismatch (#28773)
This commit is contained in:
@ -105,8 +105,11 @@ public class ColocateGroupSchema implements Writable {
|
||||
continue;
|
||||
}
|
||||
if (!targetColType.equals(info.getDistributionColumns().get(i).getType())) {
|
||||
String typeName = info.getDistributionColumns().get(i).getType().toString();
|
||||
String colName = info.getDistributionColumns().get(i).getName();
|
||||
String formattedString = colName + "(" + typeName + ")";
|
||||
ErrorReport.reportDdlException(ErrorCode.ERR_COLOCATE_TABLE_MUST_HAS_SAME_DISTRIBUTION_COLUMN_TYPE,
|
||||
info.getDistributionColumns().get(i).getName(), targetColType);
|
||||
formattedString, targetColType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user