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

array functions with const inputs causes crash. #24587

Closed
fzhedu opened this issue Jun 2, 2023 · 0 comments · Fixed by #24586
Closed

array functions with const inputs causes crash. #24587

fzhedu opened this issue Jun 2, 2023 · 0 comments · Fixed by #24586
Labels
type/bug Something isn't working

Comments

@fzhedu
Copy link
Contributor

fzhedu commented Jun 2, 2023

Steps to reproduce the behavior (Required)

  1. CREATE TABLE '...'
  2. INSERT INTO '....'
  3. SELECT '....'
select array_contains_all( cast ('[40360,40361]' as array<int>), 40360);

Expected behavior (Required)

Real behavior (Required)

crash

StarRocks version (Required)

  • You can get the StarRocks version by executing SQL select current_version()
@fzhedu fzhedu added the type/bug Something isn't working label Jun 2, 2023
satanson pushed a commit that referenced this issue Jun 5, 2023
Fixes #24587
may array functions cause BE crassh when inputing const columns. usually
happen after #19793

---------

Signed-off-by: Zhuhe Fang <fzhedu@gmail.com>
mergify bot pushed a commit that referenced this issue Jun 5, 2023
Fixes #24587
may array functions cause BE crassh when inputing const columns. usually
happen after #19793

---------

Signed-off-by: Zhuhe Fang <fzhedu@gmail.com>
(cherry picked from commit 5fa6967)

# Conflicts:
#	be/src/exprs/array_functions.tpp
#	be/src/exprs/vectorized/array_functions.cpp
#	test/sql/test_array_fn/R/test_array_fn
#	test/sql/test_array_fn/T/test_array_fn
mergify bot pushed a commit that referenced this issue Jun 5, 2023
Fixes #24587
may array functions cause BE crassh when inputing const columns. usually
happen after #19793

---------

Signed-off-by: Zhuhe Fang <fzhedu@gmail.com>
(cherry picked from commit 5fa6967)

# Conflicts:
#	test/sql/test_array_fn/R/test_array_fn
#	test/sql/test_array_fn/T/test_array_fn
mergify bot pushed a commit that referenced this issue Jun 5, 2023
Fixes #24587
may array functions cause BE crassh when inputing const columns. usually
happen after #19793

---------

Signed-off-by: Zhuhe Fang <fzhedu@gmail.com>
(cherry picked from commit 5fa6967)

# Conflicts:
#	be/src/exprs/vectorized/array_functions.cpp
#	test/sql/test_array_fn/R/test_array_fn
#	test/sql/test_array_fn/T/test_array_fn
mergify bot pushed a commit that referenced this issue Jun 5, 2023
Fixes #24587
may array functions cause BE crassh when inputing const columns. usually
happen after #19793

---------

Signed-off-by: Zhuhe Fang <fzhedu@gmail.com>
(cherry picked from commit 5fa6967)

# Conflicts:
#	be/src/exprs/array_functions.cpp
#	be/src/exprs/array_functions.tpp
#	test/sql/test_array_fn/R/test_array_fn
#	test/sql/test_array_fn/T/test_array_fn
fzhedu added a commit to fzhedu/starrocks that referenced this issue Jun 5, 2023
Fixes StarRocks#24587
may array functions cause BE crassh when inputing const columns. usually
happen after StarRocks#19793

---------

Signed-off-by: Zhuhe Fang <fzhedu@gmail.com>
fzhedu added a commit to fzhedu/starrocks that referenced this issue Jun 5, 2023
Fixes StarRocks#24587
may array functions cause BE crassh when inputing const columns. usually
happen after StarRocks#19793

---------

Signed-off-by: Zhuhe Fang <fzhedu@gmail.com>
fzhedu added a commit to fzhedu/starrocks that referenced this issue Jun 5, 2023
Fixes StarRocks#24587
may array functions cause BE crassh when inputing const columns. usually
happen after StarRocks#19793

---------

Signed-off-by: Zhuhe Fang <fzhedu@gmail.com>
imay pushed a commit that referenced this issue Jun 6, 2023
…) (#24707)

Fixes #24587 may array
functions cause BE crassh when inputing const columns. usually happen
after #19793

---------

Fixes https://github.com/StarRocks/starrocks/pull/24687/files


Signed-off-by: Zhuhe Fang <fzhedu@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant