You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/08/26 08:37:01 UTC
[GitHub] [doris] wsg96321 commented on issue #12088: [Bug] Mysql date formate error where conditions in
wsg96321 commented on issue #12088:
URL: https://github.com/apache/doris/issues/12088#issuecomment-1228220366
CREATE TABLE `l_test_log_3` (
`uniqueid` varchar(40) NULL COMMENT "",
`kid` int(11) NULL COMMENT "",
`createtime` int(11) NULL COMMENT "",
`dorisdate` date NULL COMMENT ""
) ENGINE=OLAP
UNIQUE KEY(`uniqueid`, `kid`, `createtime`, `dorisdate`)
COMMENT "OLAP"
PARTITION BY RANGE(`dorisdate`)()
DISTRIBUTED BY HASH(`uniqueid`) BUCKETS 1
PROPERTIES (
"replication_allocation" = "tag.location.default: 1",
"dynamic_partition.enable" = "true",
"dynamic_partition.time_unit" = "DAY",
"dynamic_partition.time_zone" = "-05:00",
"dynamic_partition.start" = "-3",
"dynamic_partition.end" = "1",
"dynamic_partition.prefix" = "p",
"dynamic_partition.replication_allocation" = "tag.location.default: 1",
"dynamic_partition.buckets" = "1",
"dynamic_partition.create_history_partition" = "true",
"dynamic_partition.history_partition_num" = "3",
"dynamic_partition.hot_partition_num" = "0",
"dynamic_partition.reserved_history_periods" = "NULL",
"in_memory" = "false",
"storage_format" = "V2"
) ;
insert into `l_test_log_3` values('0',1,1661339109,'2022-08-24');
insert into `l_test_log_3` values('1',1,1661339109,'2022-08-24');
insert into `l_test_log_3` values('2',1,1661339109,'2022-08-24');
insert into `l_test_log_3` values('3',1,1661339109,'2022-08-24');
insert into `l_test_log_3` values('4',1,1661339109,'2022-08-24');
insert into `l_test_log_3` values('5',1,1661339109,'2022-08-24');
insert into `l_test_log_3` values('6',1,1661339109,'2022-08-24');
insert into `l_test_log_3` values('7',1,1661339109,'2022-08-24');
insert into `l_test_log_3` values('8',1,1661339109,'2022-08-24');
insert into `l_test_log_3` values('9',1,1661339109,'2022-08-24');
select count(1) from `l_test_log_3` where from_unixtime(createtime,'%Y-%m-%d %H:%i:%s')='2022-08-24 19:05:09' ;
select count(1) from `l_test_log_3` where from_unixtime(createtime,'%Y-%m-%d %H:%i:%S')='2022-08-24 19:05:09' ;
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org