We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CREATE TABLE test_add_array_column ( col1 varchar(65533) not NULL COMMENT "", col2 bigint(20) NULL COMMENT "", col3 varchar(65533) NULL COMMENT "", arr1 ARRAY< varchar (65533)> NULL ) ENGINE = OLAP PRIMARY KEY(col1) DISTRIBUTED BY HASH(col1) BUCKETS 3 PROPERTIES ( "replication_num" = "3", "in_memory" = "false", "storage_format" = "DEFAULT", "enable_persistent_index" = "false" );
test_add_array_column
col1
col2
col3
arr1
INSERT INTO test_add_array_column WITH LABEL insert_load_test_add_array_column VALUES ("did_001", 12455566, "#en.wikipedia", ["apple", "orange", "pear"]), ("did_002", 12455566, "#ca.wikipedia", []);
ALTER TABLE test_add_array_column ADD COLUMN arr2 ARRAY< varchar (65533)>;
Expected add column is ok
Error mesage: [42000][1064] ARRAY<VARCHAR(65533)>must be used in DUP_KEYS
2.3.0
The text was updated successfully, but these errors were encountered:
Array type could only be used in duplicated table right now.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Steps to reproduce the behavior (Required)
CREATE TABLE
test_add_array_column
(
col1
varchar(65533) not NULL COMMENT "",col2
bigint(20) NULL COMMENT "",col3
varchar(65533) NULL COMMENT "",arr1
ARRAY< varchar (65533)> NULL) ENGINE = OLAP PRIMARY KEY(
col1
)DISTRIBUTED BY HASH(
col1
) BUCKETS 3PROPERTIES (
"replication_num" = "3",
"in_memory" = "false",
"storage_format" = "DEFAULT",
"enable_persistent_index" = "false"
);
INSERT INTO test_add_array_column
WITH LABEL insert_load_test_add_array_column
VALUES
("did_001", 12455566, "#en.wikipedia", ["apple", "orange", "pear"]),
("did_002", 12455566, "#ca.wikipedia", []);
ALTER TABLE test_add_array_column
ADD COLUMN arr2 ARRAY< varchar (65533)>;
Expected behavior (Required)
Expected add column is ok
Real behavior (Required)
Error mesage: [42000][1064] ARRAY<VARCHAR(65533)>must be used in DUP_KEYS
StarRocks version (Required)
2.3.0
The text was updated successfully, but these errors were encountered: