@@ -117,8 +117,8 @@ protected Collection<Class<? extends Plugin>> nodePlugins() {
117117 TestConfigs configs = testConfigurations .computeIfAbsent ("strings" , TestConfigs ::new );
118118 configs .addPasses (KEYWORD , KEYWORD );
119119 configs .addPasses (TEXT , KEYWORD );
120- configs .addFailsText (KEYWORD , TEXT );
121- configs .addFailsText (TEXT , TEXT );
120+ configs .addFailsText (KEYWORD );
121+ configs .addFailsText (TEXT );
122122 }
123123
124124 // Test integer types
@@ -187,7 +187,8 @@ protected Collection<Class<? extends Plugin>> nodePlugins() {
187187 }
188188 }
189189 }
190- // TODO: Add tests for mixed groups (should mostly fail, but might be some implicit casting to consider)
190+
191+ // TODO: Add tests for more types, eg. unsigned_long, version, spatial types, date/temporal types.
191192
192193 // Make sure we have never added two configurations with the same index name
193194 Set <String > knownTypes = new HashSet <>();
@@ -365,13 +366,13 @@ private void addFails(DataType mainType, DataType lookupType) {
365366 );
366367 }
367368
368- private void addFailsText (DataType mainType , DataType lookupType ) {
369+ private void addFailsText (DataType mainType ) {
369370 String fieldName = "field_" + mainType .esType ();
370371 String errorMessage = String .format (Locale .ROOT , "JOIN with right field [%s] of type [TEXT] is not supported" , fieldName );
371372 add (
372373 new TestConfigFails <>(
373374 mainType ,
374- lookupType ,
375+ DataType . TEXT ,
375376 VerificationException .class ,
376377 e -> assertThat (e .getMessage (), containsString (errorMessage ))
377378 )
@@ -450,6 +451,7 @@ public void testQuery(String query) {
450451 exception (),
451452 "Expected exception " + exception ().getSimpleName () + " but no exception was thrown: " + query ,
452453 () -> {
454+ // noinspection EmptyTryBlock
453455 try (var ignored = EsqlQueryRequestBuilder .newRequestBuilder (client ()).query (query ).get ()) {
454456 // We use try-with-resources to ensure the request is closed if the exception is not thrown (less cluttered errors)
455457 }
0 commit comments