Skip to content

Commit

Permalink
Implement a KQL functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
ltrk2 authored and kashwy committed Aug 26, 2023
1 parent 272fa68 commit 130c389
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/queries/0_stateless/02366_kql_tabular.reference
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,4 @@ Christine Nara Skilled Manual Partial College 33
Dalton Wood Professional Partial College 42
Angel Stewart Professional Partial College 46
-- Complex query with unknown function --
-- Missing column in front of startsWith --
3 changes: 3 additions & 0 deletions tests/queries/0_stateless/02366_kql_tabular.sql
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,6 @@ Customers | project FirstName,LastName,Occupation,Education,Age | where Age > 30

print '-- Complex query with unknown function --';
hits | where CounterID == 62 and EventDate >= '2013-07-14' and EventDate <= '2013-07-15' and IsRefresh == 0 and DontCountHits == 0 | summarize count() by d=bin(poopoo(EventTime), 1m) | order by d | limit 10; -- { clientError UNKNOWN_FUNCTION }

print '-- Missing column in front of startsWith --';
StormEvents | where startswith "W" | summarize Count=count() by State; -- { clientError SYNTAX_ERROR }

0 comments on commit 130c389

Please sign in to comment.