You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by zh...@apache.org on 2019/09/30 12:32:37 UTC
[incubator-doris] branch master updated: Fix length equal restrict
in schema change (#1921)
This is an automated email from the ASF dual-hosted git repository.
zhaoc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new c8abdf8 Fix length equal restrict in schema change (#1921)
c8abdf8 is described below
commit c8abdf8989d8231a83cdd1c3b95eb0586ec1044e
Author: HangyuanLiu <46...@qq.com>
AuthorDate: Mon Sep 30 20:32:32 2019 +0800
Fix length equal restrict in schema change (#1921)
---
fe/src/main/java/org/apache/doris/catalog/Column.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fe/src/main/java/org/apache/doris/catalog/Column.java b/fe/src/main/java/org/apache/doris/catalog/Column.java
index 05fde19..6e076c3 100644
--- a/fe/src/main/java/org/apache/doris/catalog/Column.java
+++ b/fe/src/main/java/org/apache/doris/catalog/Column.java
@@ -255,7 +255,7 @@ public class Column implements Writable {
if ((getDataType() == PrimitiveType.VARCHAR && other.getDataType() == PrimitiveType.VARCHAR)
|| (getDataType() == PrimitiveType.CHAR && other.getDataType() == PrimitiveType.VARCHAR)
|| (getDataType() == PrimitiveType.CHAR && other.getDataType() == PrimitiveType.CHAR)) {
- if (getStrLen() >= other.getStrLen()) {
+ if (getStrLen() > other.getStrLen()) {
throw new DdlException("Cannot shorten string length");
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org