Skip to content

Commit 6e2bc78

Browse files
authored
[ES|QL] Fix mapping for the colors & dense vector CSV datasets (failing bwc tests) (#130090) (#130164)
(cherry picked from commit e2dfd5d) # Conflicts: # muted-tests.yml
1 parent 791c7ef commit 6e2bc78

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

muted-tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,8 +561,6 @@ tests:
561561
- class: org.elasticsearch.xpack.inference.qa.mixed.CohereServiceMixedIT
562562
method: testCohereEmbeddings
563563
issue: https://github.com/elastic/elasticsearch/issues/130010
564-
- class: org.elasticsearch.xpack.esql.qa.mixed.MixedClusterEsqlSpecIT
565-
issue: https://github.com/elastic/elasticsearch/issues/128224
566564
- class: org.elasticsearch.cluster.metadata.ComposableIndexTemplateTests
567565
method: testMergeEmptyMappingsIntoTemplateWithNonEmptySettings
568566
issue: https://github.com/elastic/elasticsearch/issues/130050

x-pack/plugin/esql/qa/testFixtures/src/main/resources/mapping-colors.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"type": "dense_vector",
1414
"similarity": "l2_norm",
1515
"index_options": {
16-
"type": "hnsw"
16+
"type": "hnsw",
17+
"m": 16,
18+
"ef_construction": 100
1719
}
1820
}
1921
}

x-pack/plugin/esql/qa/testFixtures/src/main/resources/mapping-dense_vector.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
},
66
"vector": {
77
"type": "dense_vector",
8-
"similarity": "l2_norm"
8+
"similarity": "l2_norm",
9+
"index_options": {
10+
"type": "hnsw",
11+
"m": 16,
12+
"ef_construction": 100
13+
}
914
}
1015
}
1116
}

0 commit comments

Comments
 (0)