You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by da...@apache.org on 2024/02/23 01:28:58 UTC
(doris) branch master updated: [fix](merge-cloud) support ip/variant type in cloud mode (#31283)
This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 18f73292c19 [fix](merge-cloud) support ip/variant type in cloud mode (#31283)
18f73292c19 is described below
commit 18f73292c199948a34694dca6bf51fbbd588e717
Author: Luwei <81...@qq.com>
AuthorDate: Fri Feb 23 09:28:49 2024 +0800
[fix](merge-cloud) support ip/variant type in cloud mode (#31283)
---
fe/fe-core/src/main/java/org/apache/doris/catalog/Column.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/Column.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/Column.java
index fe0598bd2ba..6ef74558a35 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/Column.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/Column.java
@@ -686,12 +686,20 @@ public class Column implements Writable, GsonPostProcessable {
return 8;
case DECIMAL128I:
return 16;
+ case DECIMAL256:
+ return 32;
case DECIMALV2:
return 12; // use 12 bytes in olap engine.
case STRUCT:
return 65535;
case MAP:
return 65535;
+ case IPV4:
+ return 4;
+ case IPV6:
+ return 16;
+ case VARIANT:
+ return stringLength + 4; // sizeof(OLAP_STRING_MAX_LENGTH)
default:
LOG.warn("unknown field type. [type= << {} << ]", type);
throw new DdlException("unknown field type. type: " + type);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org