Skip to content

Commit

Permalink
[fix](merge-cloud) support ip/variant type in cloud mode (apache#31283)
Browse files Browse the repository at this point in the history
  • Loading branch information
luwei16 authored Feb 23, 2024
1 parent 3213c52 commit 18f7329
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fe/fe-core/src/main/java/org/apache/doris/catalog/Column.java
Original file line number Diff line number Diff line change
Expand Up @@ -686,12 +686,20 @@ public int getFieldLengthByType(TPrimitiveType type, int stringLength) throws Dd
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);
Expand Down

0 comments on commit 18f7329

Please sign in to comment.