Skip to content

Commit

Permalink
make filed not null to create partition mv
Browse files Browse the repository at this point in the history
  • Loading branch information
seawinde committed Dec 25, 2023
1 parent 567af53 commit 022ab83
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ suite("test_partition_refresh_mtmv") {
CREATE TABLE `${tableNameNum}` (
`user_id` LARGEINT NOT NULL COMMENT '\"用户id\"',
`date` DATE NOT NULL COMMENT '\"数据灌入日期时间\"',
`num` SMALLINT NULL COMMENT '\"数量\"'
`num` SMALLINT NOT NULL COMMENT '\"数量\"'
) ENGINE=OLAP
DUPLICATE KEY(`user_id`, `date`, `num`)
COMMENT 'OLAP'
Expand Down Expand Up @@ -64,7 +64,7 @@ suite("test_partition_refresh_mtmv") {
CREATE TABLE `${tableNameNum}` (
`user_id` LARGEINT NOT NULL COMMENT '\"用户id\"',
`date` DATE NOT NULL COMMENT '\"数据灌入日期时间\"',
`num` SMALLINT NULL COMMENT '\"数量\"'
`num` SMALLINT NOT NULL COMMENT '\"数量\"'
) ENGINE=OLAP
DUPLICATE KEY(`user_id`, `date`, `num`)
COMMENT 'OLAP'
Expand Down Expand Up @@ -98,7 +98,7 @@ suite("test_partition_refresh_mtmv") {
CREATE TABLE `${tableNameNum}` (
`user_id` LARGEINT NOT NULL COMMENT '\"用户id\"',
`date` DATE NOT NULL COMMENT '\"数据灌入日期时间\"',
`num` SMALLINT NULL COMMENT '\"数量\"'
`num` SMALLINT NOT NULL COMMENT '\"数量\"'
) ENGINE=OLAP
DUPLICATE KEY(`user_id`, `date`, `num`)
COMMENT 'OLAP'
Expand Down Expand Up @@ -144,7 +144,7 @@ suite("test_partition_refresh_mtmv") {
CREATE TABLE `${tableNameNum}` (
`user_id` LARGEINT NOT NULL COMMENT '\"用户id\"',
`date` DATE NOT NULL COMMENT '\"数据灌入日期时间\"',
`num` SMALLINT NULL COMMENT '\"数量\"'
`num` SMALLINT NOT NULL COMMENT '\"数量\"'
) ENGINE=OLAP
DUPLICATE KEY(`user_id`, `date`, `num`)
COMMENT 'OLAP'
Expand Down Expand Up @@ -236,7 +236,7 @@ suite("test_partition_refresh_mtmv") {
CREATE TABLE `${tableNameNum}` (
`user_id` LARGEINT NOT NULL COMMENT '\"用户id\"',
`date` DATE NOT NULL COMMENT '\"数据灌入日期时间\"',
`num` SMALLINT NULL COMMENT '\"数量\"'
`num` SMALLINT NOT NULL COMMENT '\"数量\"'
) ENGINE=OLAP
DUPLICATE KEY(`user_id`, `date`, `num`)
COMMENT 'OLAP'
Expand Down Expand Up @@ -337,7 +337,7 @@ suite("test_partition_refresh_mtmv") {
CREATE TABLE `${tableNameNum}` (
`user_id` LARGEINT NOT NULL COMMENT '\"用户id\"',
`date` DATE NOT NULL COMMENT '\"数据灌入日期时间\"',
`num` SMALLINT NULL COMMENT '\"数量\"'
`num` SMALLINT NOT NULL COMMENT '\"数量\"'
) ENGINE=OLAP
DUPLICATE KEY(`user_id`, `date`, `num`)
COMMENT 'OLAP'
Expand Down

0 comments on commit 022ab83

Please sign in to comment.