Updated tests

This commit is contained in:
HeenaBansal2009 2022-08-23 13:07:53 -07:00 committed by Yong Wang
parent 1193fe5415
commit b72af2f510
2 changed files with 4 additions and 4 deletions

View File

@ -68,9 +68,9 @@ bool ToString::convertImpl(String & out, IParser::Pos & pos)
}
bool ToTimeSpan::convertImpl(String & out, IParser::Pos & pos)
{
String res = String(pos->begin, pos->end);
out = res;
return false;
String res = String(pos->begin, pos->end);
out = res;
return false;
}

View File

@ -124,7 +124,7 @@ INSTANTIATE_TEST_SUITE_P(ParserKQLQuery, ParserTest,
},
{
"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')"
}
})));