Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonLiTree committed Sep 18, 2023
1 parent f6a42df commit 2ce3e56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/vec/functions/function_jsonb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1039,8 +1039,8 @@ struct JsonbLengthUtil {
// prepare jsonb data column
std::tie(jsonb_data_column, jsonb_data_const) =
unpack_if_const(block.get_by_position(arguments[0]).column);
LOG(INFO) << "jsonb_data_column(" << jsonb_data_column->is_null_at(0) << ")" ;
check_set_nullable(jsonb_data_column, null_map, jsonb_data_const);
LOG(INFO) << "jsonb_data_column(" << block.get_by_position(arguments[0]).column->is_null_at(0) << ")" ;
LOG(INFO) << "jsonb_data_const(" << jsonb_data_const << ")" ;
LOG(INFO) << "null_map" << null_map->get_data()[0] ;

Expand Down
3 changes: 3 additions & 0 deletions be/src/vec/utils/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class VectorizedUtils {
// is_single: whether src is null map of a ColumnConst
static void update_null_map(NullMap& dst, const NullMap& src, bool is_single = false) {
size_t size = dst.size();
LOG(INFO) << "size(" << size << ")" ;
auto* __restrict l = dst.data();
auto* __restrict r = src.data();
if (is_single && r[0]) {
Expand All @@ -108,6 +109,8 @@ class VectorizedUtils {
}
} else {
for (size_t i = 0; i < size; ++i) {
LOG(INFO) << "l["<< i <<"](" << l[i] << ")" ;
LOG(INFO) << "r["<< i <<"](" << r[i] << ")" ;
l[i] |= r[i];
}
}
Expand Down

0 comments on commit 2ce3e56

Please sign in to comment.