Fixed tests

This commit is contained in:
Maksim Kita 2021-06-29 11:05:07 +03:00
parent 60530b4dae
commit 41620a5661
2 changed files with 2 additions and 2 deletions

View File

@ -308,7 +308,7 @@ DataTypePtr getLeastSupertype(const DataTypes & types)
if (const auto * date_time64_type = typeid_cast<const DataTypeDateTime64 *>(type.get()))
{
const auto scale = date_time64_type->getScale();
if (scale > max_scale)
if (scale >= max_scale)
{
max_scale_date_time_index = i;
max_scale = scale;

View File

@ -1,2 +1,2 @@
SELECT toDate('2000-01-01') < toDateTime('2000-01-01 00:00:01', 'Europe/Moscow');
SELECT toDate('2000-01-01') < toDateTime64('2000-01-01 00:00:01', 5, 'Europe/Moscow');
SELECT toDate('2000-01-01') < toDateTime64('2000-01-01 00:00:01', 0, 'Europe/Moscow');