Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion be/src/common/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,9 @@ bool init(const char* conf_file, bool fill_conf_map, bool must_exist, bool set_t

if (config::is_cloud_mode()) {
auto st = config::set_config("enable_file_cache", "true", true, true);
LOG(INFO) << "set config enable_file_cache " << "true" << " " << st;
LOG(INFO) << "set config enable_file_cache "
<< "true"
<< " " << st;
}

return true;
Expand Down
4 changes: 2 additions & 2 deletions be/src/pipeline/exec/exchange_sink_operator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ Status ExchangeSinkOperatorX::open(RuntimeState* state) {
_compression_type = state->fragement_transmission_compression_type();
if (_part_type == TPartitionType::TABLET_SINK_SHUFFLE_PARTITIONED) {
if (_output_tuple_id == -1) {
RETURN_IF_ERROR(
vectorized::VExpr::prepare(_tablet_sink_expr_ctxs, state, _child_x->row_desc()));
RETURN_IF_ERROR(vectorized::VExpr::prepare(_tablet_sink_expr_ctxs, state,
_child_x->row_desc()));
} else {
auto* output_tuple_desc = state->desc_tbl().get_tuple_descriptor(_output_tuple_id);
auto* output_row_desc = _pool->add(new RowDescriptor(output_tuple_desc, false));
Expand Down
29 changes: 29 additions & 0 deletions be/src/util/jsonb_document.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,22 @@ struct leg_info {

///type: 0 is member 1 is array
unsigned int type;

bool to_string(std::string* str) const {
if (type == MEMBER_CODE) {
str->push_back(BEGIN_MEMBER);
str->append(leg_ptr, leg_len);
return true;
} else if (type == ARRAY_CODE) {
str->push_back(BEGIN_ARRAY);
std::string int_str = std::to_string(array_index);
str->append(int_str);
str->push_back(END_ARRAY);
return true;
} else {
return false;
}
}
};

class JsonbPath {
Expand All @@ -362,6 +378,19 @@ class JsonbPath {
leg_vector.emplace_back(leg.release());
}

void pop_leg_from_leg_vector() { leg_vector.pop_back(); }

bool to_string(std::string* res) const {
res->push_back(SCOPE);
for (const auto& leg : leg_vector) {
auto valid = leg->to_string(res);
if (!valid) {
return false;
}
}
return true;
}

size_t get_leg_vector_size() { return leg_vector.size(); }

leg_info* get_leg_from_leg_vector(size_t i) { return leg_vector[i].get(); }
Expand Down
Loading