Kusto-phase1 :

Add new test cases
This commit is contained in:
Yong Wang 2022-06-09 18:49:22 -07:00
parent e67031e3f8
commit bc1846f07b

View File

@ -477,6 +477,14 @@ INSTANTIATE_TEST_SUITE_P(ParserKQLQuery, ParserTest,
{
"Customers | where FirstName matches regex 'P.*r'",
"SELECT *\nFROM Customers\nWHERE match(FirstName, 'P.*r')"
},
{
"Customers | where FirstName startswith 'pet'",
"SELECT *\nFROM Customers\nWHERE FirstName ILIKE 'pet%'"
},
{
"Customers | where FirstName !startswith 'pet'",
"SELECT *\nFROM Customers\nWHERE NOT (FirstName ILIKE 'pet%')"
}
})));