Skip to content

Commit 36c4dae

Browse files
committed
add validation test case
1 parent 2570e8d commit 36c4dae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/parser/StatementParserTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2283,6 +2283,10 @@ public void testInvalidAlias() {
22832283
expectError("from test | eval A = coalesce(\"Å\", Å)", "line 1:36: token recognition error at: 'Å'");
22842284
}
22852285

2286+
public void testInvalidRemoteClusterPattern() {
2287+
expectError("from \"rem:ote\":index", "cluster string [rem:ote] must not contain ':'");
2288+
}
2289+
22862290
private LogicalPlan unresolvedRelation(String index) {
22872291
return new UnresolvedRelation(EMPTY, new IndexPattern(EMPTY, index), false, List.of(), IndexMode.STANDARD, null, "FROM");
22882292
}

0 commit comments

Comments
 (0)