Skip to content

Commit

Permalink
Fix tests according to the parser update.
Browse files Browse the repository at this point in the history
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
  • Loading branch information
Yury-Fridlyand committed May 19, 2022
1 parent 94748b5 commit d5def08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ public void canBuildKeywordsAsIdentInQualifiedName() {
@Test
public void canBuildRelevanceFunctionWithArguments() {
assertEqual(
"source=test | where match(message, 'test query', analyzer='keyword')",
"source=test | where match('message', 'test query', analyzer='keyword')",
filter(
relation("test"),
function(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,15 +433,15 @@ public void relevanceMatch() {
assertEquals(AstDSL.function("match",
unresolvedArg("field", stringLiteral("message")),
unresolvedArg("query", stringLiteral("search query"))),
buildExprAst("match(message, 'search query')")
buildExprAst("match('message', 'search query')")
);

assertEquals(AstDSL.function("match",
unresolvedArg("field", stringLiteral("message")),
unresolvedArg("query", stringLiteral("search query")),
unresolvedArg("analyzer", stringLiteral("keyword")),
unresolvedArg("operator", stringLiteral("AND"))),
buildExprAst("match(message, 'search query', analyzer='keyword', operator='AND')"));
buildExprAst("match('message', 'search query', analyzer='keyword', operator='AND')"));
}

@Test
Expand Down

0 comments on commit d5def08

Please sign in to comment.