Skip to content

Commit

Permalink
fix function name
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Kao <seankao@amazon.com>
  • Loading branch information
seankao-az committed Jun 28, 2022
1 parent 9e2a9ff commit 7960428
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,19 @@ public void can_parse_simple_query_string_relevance_function() {

@Test
public void testDescribeCommandShouldPass() {
ParseTree tree = new PPLSyntaxParser().analyzeSyntax("describe t");
ParseTree tree = new PPLSyntaxParser().parse("describe t");
assertNotEquals(null, tree);
}

@Test
public void testDescribeCommandWithMultipleIndicesShouldPass() {
ParseTree tree = new PPLSyntaxParser().analyzeSyntax("describe t,u");
ParseTree tree = new PPLSyntaxParser().parse("describe t,u");
assertNotEquals(null, tree);
}

@Test
public void testDescribeFieldsCommandShouldPass() {
ParseTree tree = new PPLSyntaxParser().analyzeSyntax("describe t | fields a,b");
ParseTree tree = new PPLSyntaxParser().parse("describe t | fields a,b");
assertNotEquals(null, tree);
}

Expand All @@ -169,7 +169,7 @@ public void testDescribeCommandWithSourceShouldFail() {
exceptionRule.expect(RuntimeException.class);
exceptionRule.expectMessage("Failed to parse query due to offending symbol");

new PPLSyntaxParser().analyzeSyntax("describe source=t");
new PPLSyntaxParser().parse("describe source=t");
}
}

0 comments on commit 7960428

Please sign in to comment.