-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
about “show create table” bug #24237
Labels
type/bug
Something isn't working
Comments
16 tasks
This problem will only be fixed to version 2.5 and later, the previous version will not be maintained because it is not LTS |
abc982627271
pushed a commit
to abc982627271/starrocks
that referenced
this issue
Jun 5, 2023
…StarRocks#24257) Fixes StarRocks#24237 Signed-off-by: Astralidea <astralidea@163.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce the behavior (Required)
create table test_db.test
( id int(9),
create_time datetime NOT NULL DEFAULT current_timestamp )
ENGINE=OLAP
PRIMARY KEY (
id
)DISTRIBUTED BY HASH(
id
) BUCKETS 5show create table test_db.test
result : CREATE TABLE
test
(id
int(11) NOT NULL COMMENT "",create_time
datetime NOT NULL COMMENT "" ) ENGINE=OLAP PRIMARY KEY(id
) COMMENT "OLAP" DISTRIBUTED BY HASH(id
) BUCKETS 5 PROPERTIES ( "replication_num" = "3", "in_memory" = "false", "storage_format" = "DEFAULT" );4.create table test_db.test
( id int(9),
create_time datetime NOT NULL DEFAULT current_timestamp )
ENGINE=OLAP
DISTRIBUTED BY HASH(
id
) BUCKETS 55.show create table test_db.test
6.result :CREATE TABLE
test
(id
int(11) NULL COMMENT "",create_time
datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT "" ) ENGINE=OLAP DUPLICATE KEY(id
,create_time
) COMMENT "OLAP" DISTRIBUTED BY HASH(id
) BUCKETS 10 PROPERTIES ( "replication_num" = "3", "in_memory" = "false", "storage_format" = "DEFAULT" );Expected behavior (Required)
This happens only when PRIMARY KEY is used, and it does not happen when using UNIQUE KEY, DUPLICATE KEY or not using PRIMARY KEY,it should be fixed
Real behavior (Required)
StarRocks version (Required)
starrocks-2.4.3、
starrocks-2.2.2
The text was updated successfully, but these errors were encountered: