You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. CREATE TABLE quickstart.example_table (`pk` BIGINT, `activity` String) DISTRIBUTED BY HASH (`pk`) PROPERTIES("replication_num" = "1");
2. SET @var = (SELECT ARRAY_AGG(activity) FROM quickstart.example_table);
3. SELECT ARRAY_CONTAINS(ARRAY_CONCAT(@var), "a");
Expected behavior (Required)
The SQL should run successfully.
Note that if you insert a row in the table, the SQL will work. Also the below SQL which does not use user defined variable works.
WITH input AS (SELECT ARRAY_AGG(activity) AS activities FROM quickstart.example_table) SELECT ARRAY_CONTAINS(ARRAY_CONCAT(input.activities), "a") FROM input;
Real behavior (Required)
ERROR 1064 (HY000): Getting analyzing error from line 1, column 22 to line 1, column 39. Detail message: 1-th input of array_concat should be an array, rather than varchar.
StarRocks version (Required)
3.3
The text was updated successfully, but these errors were encountered:
Steps to reproduce the behavior (Required)
Expected behavior (Required)
The SQL should run successfully.
Note that if you insert a row in the table, the SQL will work. Also the below SQL which does not use user defined variable works.
Real behavior (Required)
ERROR 1064 (HY000): Getting analyzing error from line 1, column 22 to line 1, column 39. Detail message: 1-th input of array_concat should be an array, rather than varchar.
StarRocks version (Required)
The text was updated successfully, but these errors were encountered: