File tree Expand file tree Collapse file tree
core/src/test/java/org/opensearch/sql/analysis Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments