Skip to content

Commit

Permalink
fix
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 ef624b2 commit 94048ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions flex/engines/graph_db/runtime/common/rt_any.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 3 additions & 3 deletions flex/engines/hqps_db/core/operator/sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ template <typename T,
typename std::enable_if<
(std::is_same_v<T, std::string_view>)>::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 <typename T, typename std::enable_if<
(std::is_same_v<T, std::string>)>::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 <typename T,
Expand Down Expand Up @@ -233,7 +233,7 @@ void template_set_key_value(results::KeyValues* map,
const VariableKeyValue& key_value) {
for (auto& kv : key_value) {
auto cur_kv = map->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);
}
Expand Down
3 changes: 1 addition & 2 deletions flex/interactive/examples/modern_graph/graph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 94048ef

Please sign in to comment.