From 54e4a723a008d8d4fa2e3d6574ea3b5639771744 Mon Sep 17 00:00:00 2001 From: robot-clickhouse Date: Thu, 25 Apr 2024 13:05:03 +0000 Subject: [PATCH] Backport #62932 to 24.3: Unflake 02813_func_now_and_alias --- tests/queries/0_stateless/02813_func_now_and_alias.sql | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/queries/0_stateless/02813_func_now_and_alias.sql b/tests/queries/0_stateless/02813_func_now_and_alias.sql index bcda1f26181..6a2acbc03c3 100644 --- a/tests/queries/0_stateless/02813_func_now_and_alias.sql +++ b/tests/queries/0_stateless/02813_func_now_and_alias.sql @@ -1,3 +1,6 @@ -SELECT now() = current_timestamp(); -SELECT now() = CURRENT_TIMESTAMP(); -SELECT now() = current_TIMESTAMP(); +-- "Tests" current_timestamp() which is an alias of now(). +-- Since the function is non-deterministic, only check that no bad things happen (don't check the returned value). + +SELECT count() FROM (SELECT current_timestamp()); +SELECT count() FROM (SELECT CURRENT_TIMESTAMP()); +SELECT count() FROM (SELECT current_TIMESTAMP());