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 c58ae4f commit 48f1788
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be/src/vec/functions/function_jsonb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1031,13 +1031,15 @@ struct JsonbLengthUtil {
static Status jsonb_length_execute(FunctionContext* context, Block& block,
const ColumnNumbers& arguments, size_t result,
size_t input_rows_count) {
auto null_map = ColumnUInt8::create(input_rows_count, 0);
DCHECK_GE(arguments.size(), 2);

ColumnPtr jsonb_data_column;
bool jsonb_data_const = false;
// prepare jsonb data column
std::tie(jsonb_data_column, jsonb_data_const) =
unpack_if_const(block.get_by_position(arguments[0]).column);
check_set_nullable(jsonb_data_column, null_map, jsonb_data_const);

ColumnPtr path_column;
bool is_const = false;
Expand All @@ -1055,8 +1057,6 @@ struct JsonbLengthUtil {
path_value.size));
}
}

auto null_map = ColumnUInt8::create(input_rows_count, 0);
auto res = ColumnInt32::create();

for (size_t i = 0; i < input_rows_count; ++i) {
Expand Down

0 comments on commit 48f1788

Please sign in to comment.