From a3f068f9638f3658e0a7cfa4a549ae2e83aedde2 Mon Sep 17 00:00:00 2001 From: HeenaBansal2009 Date: Wed, 28 Sep 2022 12:12:56 -0700 Subject: [PATCH] Buidl fix --- src/Parsers/tests/KQL/gtest_KQL_StringFunctions.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Parsers/tests/KQL/gtest_KQL_StringFunctions.cpp b/src/Parsers/tests/KQL/gtest_KQL_StringFunctions.cpp index 08f37d55b745..7c1650bc585f 100644 --- a/src/Parsers/tests/KQL/gtest_KQL_StringFunctions.cpp +++ b/src/Parsers/tests/KQL/gtest_KQL_StringFunctions.cpp @@ -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')" },