We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d045ea5 commit 457c8c8Copy full SHA for 457c8c8
1 file changed
core/src/test/java/org/opensearch/sql/analysis/AnalyzerTest.java
@@ -1929,4 +1929,17 @@ public void brain_patterns_command() {
1929
1930
assertAnalyzeEqual(expectedPlan, patterns);
1931
}
1932
+
1933
+ @Test
1934
+ public void rex_command_throws_unsupported_operation_exception_in_legacy_engine() {
1935
+ UnsupportedOperationException exception =
1936
+ assertThrows(
1937
+ UnsupportedOperationException.class,
1938
+ () ->
1939
+ analyze(
1940
+ new org.opensearch.sql.ast.tree.Rex(
1941
+ field("email"), stringLiteral("(?<user>[^@]+)@(?<domain>.+)"))
1942
+ .attach(relation("schema"))));
1943
+ assertEquals("REX is supported only when plugins.calcite.enabled=true", exception.getMessage());
1944
+ }
1945
0 commit comments