Skip to content

Commit

Permalink
[opt](Nereids) support create table with variant type (#32953)
Browse files Browse the repository at this point in the history
  • Loading branch information
morrySnow authored and Doris-Extras committed Mar 31, 2024
1 parent ada6a93 commit 6b19572
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ VALUE: 'VALUE';
VALUES: 'VALUES';
VARCHAR: 'VARCHAR';
VARIABLES: 'VARIABLES';
VARIANT: 'VARIANT';
VERBOSE: 'VERBOSE';
VERSION: 'VERSION';
VIEW: 'VIEW';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,7 @@ primitiveColType:
| type=DECIMALV3
| type=IPV4
| type=IPV6
| type=VARIANT
| type=ALL
;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ public static DataType convertPrimitiveFromStrings(List<String> types, boolean u
case "ipv6":
dataType = IPv6Type.INSTANCE;
break;
case "variant":
dataType = VariantType.INSTANCE;
break;
default:
throw new AnalysisException("Nereids do not support type: " + type);
}
Expand Down

0 comments on commit 6b19572

Please sign in to comment.