Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
liugddx committed Feb 4, 2024
1 parent 0b09df9 commit 2c400a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion be/src/vec/functions/function_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -2770,14 +2770,16 @@ class FunctionUrlDecode : public IFunction {
return Status::InternalError("Not supported input argument type");
}

std::string decoded_url;

for (size_t i = 0; i < input_rows_count; ++i) {
auto source = url_col->get_data_at(i);
StringRef url_val(const_cast<char*>(source.data), source.size);

std::string decoded_url;
url_decode(url_val.to_string(), &decoded_url);

StringOP::push_value_string(decoded_url, i, res_chars, res_offsets);
decode_url.clear();
}

block.get_by_position(result).column = std::move(res);
Expand Down

0 comments on commit 2c400a6

Please sign in to comment.