Skip to content

Commit

Permalink
Fix project-bugfix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ejcx committed Mar 5, 2024
1 parent 635e9c3 commit 7f06c5a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ var parserTests = []struct {
},
{
name: "ProjectError",
query: "StormEvents | project EventId State EventType",
query: "StormEvents | project EventId=1 State",
err: true,
want: &TabularExpr{
Source: &TableRef{
Expand All @@ -1125,7 +1125,15 @@ var parserTests = []struct {
Name: "EventId",
NameSpan: newSpan(22, 29),
},
Assign: nullSpan(),
Assign: Span{
Start: 29,
End: 30,
},
X: &BasicLit{
Kind: TokenNumber,
Value: "1",
ValueSpan: newSpan(30, 31),
},
},
},
},
Expand Down

0 comments on commit 7f06c5a

Please sign in to comment.