File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
x-pack/plugin/esql/qa/testFixtures/src/main/java/org/elasticsearch/xpack/esql Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,10 @@ private static boolean isLookupDataset(TestDataset dataset) throws IOException {
316316 }
317317
318318 private static boolean isUnmappedFieldsDataset (TestDataset dataset ) throws IOException {
319- String mappingJsonText = readTextFile (getResource (dataset .mappingFileName ()));
319+ if (dataset .mappingFileName () == null ) {
320+ return true ;
321+ }
322+ String mappingJsonText = readTextFile (getResource ("/" + dataset .mappingFileName ()));
320323 JsonNode mappingNode = new ObjectMapper ().readTree (mappingJsonText );
321324 // BWC tests don't support _source field directives, so don't load those datasets.
322325 return mappingNode .get ("_source" ) != null ;
You can’t perform that action at this time.
0 commit comments