Skip to content

Commit 4ed8225

Browse files
committed
fix spotless check
Signed-off-by: Jialiang Liang <jiallian@amazon.com>
1 parent 6b127aa commit 4ed8225

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

core/src/test/java/org/opensearch/sql/analysis/AnalyzerTest.java

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1930,17 +1930,15 @@ public void brain_patterns_command() {
19301930

19311931
@Test
19321932
public void regex_command_throws_unsupported_operation_exception_in_legacy_engine() {
1933-
UnsupportedOperationException exception = assertThrows(
1934-
UnsupportedOperationException.class,
1935-
() -> analyze(
1936-
new org.opensearch.sql.ast.tree.Regex(
1937-
field("lastname"), "=", stringLiteral("^[A-Z][a-z]+$")
1938-
).attach(relation("schema"))
1939-
)
1940-
);
1933+
UnsupportedOperationException exception =
1934+
assertThrows(
1935+
UnsupportedOperationException.class,
1936+
() ->
1937+
analyze(
1938+
new org.opensearch.sql.ast.tree.Regex(
1939+
field("lastname"), "=", stringLiteral("^[A-Z][a-z]+$"))
1940+
.attach(relation("schema"))));
19411941
assertEquals(
1942-
"REGEX is supported only when plugins.calcite.enabled=true",
1943-
exception.getMessage()
1944-
);
1942+
"REGEX is supported only when plugins.calcite.enabled=true", exception.getMessage());
19451943
}
19461944
}

0 commit comments

Comments
 (0)