diff --git a/flex/engines/graph_db/runtime/common/rt_any.cc b/flex/engines/graph_db/runtime/common/rt_any.cc index 04745dde47ae..e3cf4a1d55d8 100644 --- a/flex/engines/graph_db/runtime/common/rt_any.cc +++ b/flex/engines/graph_db/runtime/common/rt_any.cc @@ -626,8 +626,7 @@ void RTAny::sink(const gs::ReadTransaction& txn, int id, } else if (type_ == RTAnyType::kStringSetValue) { auto collection = col->mutable_entry()->mutable_collection(); for (auto& s : *value_.str_set) { - collection->add_collection()->mutable_object()->mutable_str()->assign( - s.data(), s.size()); + collection->add_collection()->mutable_object()->set_str(s); } } else if (type_ == RTAnyType::kTuple) { auto collection = col->mutable_entry()->mutable_collection(); diff --git a/flex/engines/hqps_db/core/operator/sink.h b/flex/engines/hqps_db/core/operator/sink.h index 5fdd8a0efd8d..9ff64bf309b2 100644 --- a/flex/engines/hqps_db/core/operator/sink.h +++ b/flex/engines/hqps_db/core/operator/sink.h @@ -130,13 +130,13 @@ template )>::type* = nullptr> void template_set_value(common::Value* value, T v) { - value->set_str(v.data(), v.size()); + value->mutable_str()->assign(v.data(), v.size()); } template )>::type* = nullptr> void template_set_value(common::Value* value, T v) { - value->mutable_str()->assign(v.data(), v.size()); + value->set_str(v.data(), v.size()); } template add_key_values(); - cur_kv->mutable_key()->set_name(kv.first); + cur_kv->mutable_key()->set_str(kv.first); auto value = cur_kv->mutable_value()->mutable_element(); set_any_to_element(kv.second, value); } diff --git a/flex/interactive/examples/modern_graph/graph.yaml b/flex/interactive/examples/modern_graph/graph.yaml index e79acb51937c..6551adf93cc9 100644 --- a/flex/interactive/examples/modern_graph/graph.yaml +++ b/flex/interactive/examples/modern_graph/graph.yaml @@ -18,8 +18,7 @@ schema: property_name: name property_type: string: - var_char: - max_length: 128 + long_text: - property_id: 2 property_name: age property_type: