Gabriel39 commented on code in PR #11410:
URL: https://github.com/apache/doris/pull/11410#discussion_r935096522


##########
regression-test/suites/query/sql_functions/datetime_functions/test_date_function.groovy:
##########
@@ -253,4 +253,22 @@ suite("test_date_function", "query") {
     qt_sql """ select count(*) from (select * from numbers("200")) tmp1 WHERE 
0 <= UNIX_TIMESTAMP(); """
 
     sql """ drop table ${tableName} """
+
+    tableName = "test_from_unixtime"
+
+    sql """ DROP TABLE IF EXISTS ${tableName} """
+    sql """
+            CREATE TABLE IF NOT EXISTS ${tableName} (
+                `id` INT NOT NULL COMMENT "用户id",
+                `update_time` INT NOT NULL COMMENT "数据灌入日期时间"
+            ) ENGINE=OLAP
+            UNIQUE KEY(`id`)
+            DISTRIBUTED BY HASH(`id`)
+            PROPERTIES("replication_num" = "1");
+        """
+    sql """ insert into ${tableName} values (1, 1659344431) """
+
+    qt_sql """ SELECT id,FROM_UNIXTIME(update_time,"%Y-%m-%d") FROM 
${tableName} WHERE FROM_UNIXTIME(update_time,"%Y-%m-%d") = '2022-08-01'; """

Review Comment:
   done



-- 
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-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to