Skip to content

Commit b5156fd

Browse files
authored
Move the mapping update to a new index created upfront (#132581)
1 parent 9daa870 commit b5156fd

File tree

2 files changed

+30
-19
lines changed

2 files changed

+30
-19
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -527,9 +527,6 @@ tests:
527527
- class: org.elasticsearch.xpack.esql.qa.single_node.EsqlSpecIT
528528
method: test {csv-spec:spatial.ConvertFromStringParseError}
529529
issue: https://github.com/elastic/elasticsearch/issues/132558
530-
- class: org.elasticsearch.xpack.esql.qa.mixed.EsqlClientYamlIT
531-
method: test {p0=esql/40_unsupported_types/nested declared inline}
532-
issue: https://github.com/elastic/elasticsearch/issues/126606
533530

534531
# Examples:
535532
#

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/esql/40_unsupported_types.yml

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,35 @@ setup:
108108
"some_doc": { "foo": "xy", "bar": 12 }
109109
}
110110

111+
- do:
112+
indices.create:
113+
index: test2
114+
body:
115+
settings:
116+
number_of_shards: 5
117+
mappings:
118+
properties:
119+
name:
120+
type: keyword
121+
nested:
122+
type: nested
123+
find_me:
124+
type: long
125+
126+
- do:
127+
bulk:
128+
index: test2
129+
refresh: true
130+
body:
131+
- { "index": { } }
132+
- {
133+
"find_me": 1,
134+
"nested": {
135+
"foo": 1,
136+
"bar": "bar",
137+
"baz": 1.9
138+
}
139+
}
111140
---
112141
unsupported:
113142
- requires:
@@ -417,28 +446,13 @@ unsupported with sort:
417446
- match: { values.0.28: 3 }
418447
---
419448
nested declared inline:
420-
- do:
421-
bulk:
422-
index: test
423-
refresh: true
424-
body:
425-
- { "index": { } }
426-
- {
427-
"find_me": 1,
428-
"nested": {
429-
"foo": 1,
430-
"bar": "bar",
431-
"baz": 1.9
432-
}
433-
}
434-
435449
- do:
436450
allowed_warnings_regex:
437451
- "Field \\[.*\\] cannot be retrieved, it is unsupported or not indexed; returning null"
438452
- "No limit defined, adding default limit of \\[.*\\]"
439453
esql.query:
440454
body:
441-
query: 'FROM test | WHERE find_me == 1 | KEEP n*'
455+
query: 'FROM test2 | WHERE find_me == 1 | KEEP n*'
442456

443457
# The `nested` field is not visible, nor are any of it's subfields.
444458
- match: { columns: [{name: name, type: keyword}] }

0 commit comments

Comments
 (0)