diff --git a/sql/src/test/java/org/opensearch/sql/sql/antlr/SQLSyntaxParserTest.java b/sql/src/test/java/org/opensearch/sql/sql/antlr/SQLSyntaxParserTest.java index 6e2426c96f..6b78376d45 100644 --- a/sql/src/test/java/org/opensearch/sql/sql/antlr/SQLSyntaxParserTest.java +++ b/sql/src/test/java/org/opensearch/sql/sql/antlr/SQLSyntaxParserTest.java @@ -363,7 +363,8 @@ public void can_parse_query_relevance_function() { assertNotNull(parser.parse( "SELECT id FROM test WHERE query(\"address:query notes:query\")")); assertNotNull(parser.parse( - "SELECT id FROM test WHERE query(\"Body:\"taste beer\" Tags:\"taste beer\" Title:\"taste beer\"\")")); + "SELECT id FROM test WHERE " + + "query(\"Body:\'taste beer\' Tags:\'taste beer\' Title:\'taste beer\'\")")); }