mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 04:52:10 +00:00
Updated tests
This commit is contained in:
parent
1193fe5415
commit
b72af2f510
@ -68,9 +68,9 @@ bool ToString::convertImpl(String & out, IParser::Pos & pos)
|
|||||||
}
|
}
|
||||||
bool ToTimeSpan::convertImpl(String & out, IParser::Pos & pos)
|
bool ToTimeSpan::convertImpl(String & out, IParser::Pos & pos)
|
||||||
{
|
{
|
||||||
String res = String(pos->begin, pos->end);
|
String res = String(pos->begin, pos->end);
|
||||||
out = res;
|
out = res;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ INSTANTIATE_TEST_SUITE_P(ParserKQLQuery, ParserTest,
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print bin(datetime(1970-05-11 13:45:07), 1d)",
|
"print bin(datetime(1970-05-11 13:45:07), 1d)",
|
||||||
"SELECT parseDateTime64BestEffortOrNull(toFloat64(parseDateTime64BestEffortOrNull('1970-01-01 12:00:00.0', 9, 'UTC')) + (toInt64(((toFloat64(parseDateTime64BestEffortOrNull('2017-05-15 10:20:00.0', 9, 'UTC')) - toFloat64(parseDateTime64BestEffortOrNull('1970-01-01 12:00:00.0', 9, 'UTC'))) / 86400) + 0) * 86400), 9, 'UTC') AS res"
|
"SELECT parseDateTime64BestEffortOrNull(toInt64(toFloat64(parseDateTime64BestEffortOrNull('1970-05-11 13:45:07', 9, 'UTC')) / 86400) * 86400, 9, 'UTC')"
|
||||||
}
|
}
|
||||||
|
|
||||||
})));
|
})));
|
||||||
|
Loading…
Reference in New Issue
Block a user