Skip to content

Commit

Permalink
support var_char
Browse files Browse the repository at this point in the history
Committed-by: xiaolei.zl from Dev container
  • Loading branch information
zhanglei1949 committed Dec 13, 2024
1 parent fe77aa9 commit 34756c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flex/interactive/examples/modern_graph/graph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ schema:
property_name: name
property_type:
string:
long_text:
var_char:
max_length: 128
- property_id: 2
property_name: age
property_type:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ public DataType convert(GSDataTypeDesc from) {
Map<String, Object> strType = (Map<String, Object>) value;
if (strType.containsKey("long_text")) {
return DataType.STRING;
} else if (strType.containsKey("var_char")){
return DataType.STRING;
} else {
throw new UnsupportedOperationException(
"can not convert GSDataTypeDesc ["
Expand Down

0 comments on commit 34756c3

Please sign in to comment.