Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vectorized](function) Support array_shuffle and shuffle function. #18116

Merged
merged 9 commits into from
Apr 4, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
format
  • Loading branch information
ZhangYu0123 authored and zhangyu209 committed Mar 31, 2023
commit 24455293e203c2f083efe04f90267948f0273735
2 changes: 1 addition & 1 deletion be/src/vec/functions/array/function_array_shuffle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class FunctionArrayShuffle : public IFunction {
block.get_by_position(arguments[1]).column->convert_to_full_column_if_const();
seed = seed_column->get_uint(0);
}

std::mt19937 g(seed);
auto dest_column_ptr = _execute(src_column_array, g);
if (!dest_column_ptr) {
Expand Down