diff --git a/tests/queries/0_stateless/02504_parse_datetime_best_effort_calebeaires.reference b/tests/queries/0_stateless/02504_parse_datetime_best_effort_calebeaires.reference index e774ad40e3b..f0fc06bc742 100644 --- a/tests/queries/0_stateless/02504_parse_datetime_best_effort_calebeaires.reference +++ b/tests/queries/0_stateless/02504_parse_datetime_best_effort_calebeaires.reference @@ -1 +1 @@ -2148-06-07 1969-01-01 2105 2105 1969-01-01 10:42:00.000 +2148 1969-01-01 2105 2105 1969-01-01 10:42:00.000 diff --git a/tests/queries/0_stateless/02504_parse_datetime_best_effort_calebeaires.sql b/tests/queries/0_stateless/02504_parse_datetime_best_effort_calebeaires.sql index dd28d4b2084..e551ec51524 100644 --- a/tests/queries/0_stateless/02504_parse_datetime_best_effort_calebeaires.sql +++ b/tests/queries/0_stateless/02504_parse_datetime_best_effort_calebeaires.sql @@ -2,4 +2,4 @@ CREATE TEMPORARY TABLE my_table (col_date Date, col_date32 Date32, col_datetime insert into `my_table` (`col_date`, `col_date32`, `col_datetime`, `col_datetime32`, `col_datetime64`) values (parseDateTime64BestEffort('1969-01-01'), '1969-01-01', parseDateTime64BestEffort('1969-01-01 10:42:00'), parseDateTime64BestEffort('1969-01-01 10:42:00'), parseDateTime64BestEffort('1969-01-01 10:42:00')); -- The values for Date32 and DateTime64 will be year 1969, while the values of Date, DateTime will contain a value affected by implementation-defined overflow and can be arbitrary. -SELECT col_date, col_date32, toYear(col_datetime), toYear(col_datetime32), col_datetime64 FROM my_table; +SELECT toYear(col_date), col_date32, toYear(col_datetime), toYear(col_datetime32), col_datetime64 FROM my_table;