File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/enrich Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 2828import org .elasticsearch .search .internal .AliasFilter ;
2929import org .elasticsearch .tasks .TaskId ;
3030import org .elasticsearch .transport .TransportService ;
31- import org .elasticsearch .xpack .esql .VerificationException ;
31+ import org .elasticsearch .xpack .esql .EsqlIllegalArgumentException ;
3232import org .elasticsearch .xpack .esql .action .EsqlQueryAction ;
3333import org .elasticsearch .xpack .esql .core .expression .NamedExpression ;
3434import org .elasticsearch .xpack .esql .core .tree .Source ;
@@ -201,8 +201,7 @@ public void writeTo(StreamOutput out) throws IOException {
201201 if (out .getTransportVersion ().onOrAfter (TransportVersions .JOIN_ON_ALIASES )) {
202202 out .writeString (indexPattern );
203203 } else if (indexPattern .equals (shardId .getIndexName ()) == false ) {
204- // TODO can we throw exceptions here?
205- throw new VerificationException ("Aliases and index patterns are not allowed for LOOKUP JOIN []" , indexPattern );
204+ throw new EsqlIllegalArgumentException ("Aliases and index patterns are not allowed for LOOKUP JOIN []" , indexPattern );
206205 }
207206
208207 out .writeString (inputDataType .typeName ());
You can’t perform that action at this time.
0 commit comments