Skip to content

Commit b619623

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 5c3d8b5 commit b619623

File tree

1 file changed

+2
-5
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/string/regex

1 file changed

+2
-5
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/string/regex/WildcardLikeList.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
import org.apache.lucene.search.MultiTermQuery.RewriteMethod;
1111
import org.apache.lucene.util.automaton.Automaton;
12-
import org.elasticsearch.TransportVersions;
1312
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
1413
import org.elasticsearch.common.io.stream.StreamInput;
1514
import org.elasticsearch.common.io.stream.StreamOutput;
@@ -121,10 +120,8 @@ public Translatable translatable(LucenePushdownPredicates pushdownPredicates) {
121120
*/
122121
@Override
123122
public Query asQuery(LucenePushdownPredicates pushdownPredicates, TranslatorHandler handler) {
124-
if(configuration != null && configuration.stringLikeOnIndex() == false) {
125-
throw new IllegalArgumentException(
126-
"LIKE with LIST cannot be used with string_like_on_index enabled. Use LIKE instead."
127-
);
123+
if (configuration != null && configuration.stringLikeOnIndex() == false) {
124+
throw new IllegalArgumentException("LIKE with LIST cannot be used with string_like_on_index enabled. Use LIKE instead.");
128125
}
129126
var field = field();
130127
LucenePushdownPredicates.checkIsPushableAttribute(field);

0 commit comments

Comments
 (0)