Skip to content

Commit

Permalink
Buidl fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HeenaBansal2009 committed Sep 28, 2022
1 parent a1ba679 commit a3f068f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Parsers/tests/KQL/gtest_KQL_StringFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ INSTANTIATE_TEST_SUITE_P(ParserKQLQuery_String, ParserTest,
{
"print extract('x=([0-9.]+)', 1, 'hello x=456|wo' , typeof(decimal));",
"SELECT toDecimal128OrNull(if(countSubstrings(extract('hello x=456|wo', '[0-9.]+'), '.') > 1, NULL, extract('hello x=456|wo', '[0-9.]+')), length(substr(extract('hello x=456|wo', '[0-9.]+'), position(extract('hello x=456|wo', '[0-9.]+'), '.') + 1)))"
},
{
"print bin(datetime(1970-05-11 13:45:07.456345672), 1ms)",
"SELECT toDateTime64(toInt64(toFloat64(parseDateTime64BestEffortOrNull('1970-05-11 13:45:07.456345672', 9, 'UTC')) / 0.001) * 0.001, 9, 'UTC')"
},
Expand Down

0 comments on commit a3f068f

Please sign in to comment.