imay closed pull request #400: Fix bug that ColumnType is no longer used
URL: https://github.com/apache/incubator-doris/pull/400
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/fe/src/main/java/org/apache/doris/catalog/ColocateTableUtils.java
b/fe/src/main/java/org/apache/doris/catalog/ColocateTableUtils.java
index 68318613..2397bd01 100644
--- a/fe/src/main/java/org/apache/doris/catalog/ColocateTableUtils.java
+++ b/fe/src/main/java/org/apache/doris/catalog/ColocateTableUtils.java
@@ -93,8 +93,8 @@ static void checkDistributionColumnSizeAndType(OlapTable
parentTable, Distributi
for (int i = 0; i < parentColumnSize; i++) {
String parentColumnName = parentColumns.get(i).getName();
- ColumnType parentColumnType = parentColumns.get(i).getColumnType();
- if (!parentColumnType.equals(childColumns.get(i).getColumnType()))
{
+ Type parentColumnType = parentColumns.get(i).getType();
+ if (!parentColumnType.equals(childColumns.get(i).getType())) {
ErrorReport.reportDdlException(ErrorCode.ERR_COLOCATE_TABLE_SAME_DISTRIBUTED_COLUMNS_TYPE,
parentColumnName, parentColumnType);
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]