Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@

package org.elasticsearch.xpack.esql.action;

import org.apache.lucene.tests.util.LuceneTestCase;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.index.mapper.extras.MapperExtrasPlugin;
import org.elasticsearch.plugins.Plugin;
import org.elasticsearch.test.ESIntegTestCase;
import org.elasticsearch.test.ESIntegTestCase.ClusterScope;
import org.elasticsearch.xcontent.XContentType;
import org.elasticsearch.xpack.core.esql.action.ColumnInfo;
import org.elasticsearch.xpack.esql.VerificationException;
import org.elasticsearch.xpack.esql.core.type.DataType;
Expand Down Expand Up @@ -117,6 +120,7 @@
* And assert that the result exists and is equal to "value".
*/
@ClusterScope(scope = SUITE, numClientNodes = 1, numDataNodes = 1)
@LuceneTestCase.SuppressFileSystems(value = "HandleLimitFS")
public class LookupJoinTypesIT extends ESIntegTestCase {
protected Collection<Class<? extends Plugin>> nodePlugins() {
return List.of(
Expand Down Expand Up @@ -357,16 +361,18 @@ private void initIndexes(String group) {
private void initData(String group) {
Collection<TestConfig> configs = testConfigurations.get(group).configs.values();
int docId = 0;
List<IndexRequestBuilder> indexRequests = new ArrayList<>(configs.size());
for (TestConfig config : configs) {
String doc = String.format(Locale.ROOT, """
{
%s,
"other": "value"
}
""", lookupPropertyFor(config));
index(config.indexName(), "" + (++docId), doc);
refresh(config.indexName());
var indexRequest = client().prepareIndex().setIndex(config.indexName()).setId("" + (++docId)).setSource(doc, XContentType.JSON);
indexRequests.add(indexRequest);
}
indexRandom(true, indexRequests);
List<String> mainProperties = configs.stream().map(this::mainPropertyFor).distinct().collect(Collectors.toList());
index("index", "1", String.format(Locale.ROOT, """
{
Expand Down