You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2022/07/22 03:06:45 UTC
[doris] branch dev-1.1.1 updated: [cherry-pick][hot fix 1.1.1]FIX: odbc string error #11096 (#11106)
This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch dev-1.1.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/dev-1.1.1 by this push:
new c6a1df6eac [cherry-pick][hot fix 1.1.1]FIX: odbc string error #11096 (#11106)
c6a1df6eac is described below
commit c6a1df6eac75f95068fa6af7e0bd2d29fa8b54bd
Author: yiguolei <67...@qq.com>
AuthorDate: Fri Jul 22 11:06:39 2022 +0800
[cherry-pick][hot fix 1.1.1]FIX: odbc string error #11096 (#11106)
Co-authored-by: yiguolei <yi...@gmail.com>
---
fe/fe-core/src/main/java/org/apache/doris/analysis/ColumnDef.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/ColumnDef.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/ColumnDef.java
index db794c730b..9ba614cec5 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/analysis/ColumnDef.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/ColumnDef.java
@@ -234,7 +234,7 @@ public class ColumnDef {
throw new AnalysisException("Array type column default value only support null");
}
}
- if (isKey() && type.getPrimitiveType() == PrimitiveType.STRING) {
+ if (isKey() && type.getPrimitiveType() == PrimitiveType.STRING && isOlap) {
throw new AnalysisException("String Type should not be used in key column[" + getName()
+ "].");
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org