Skip to content

Commit 022d183

Browse files
Move the mapping update to a new index created upfront (elastic#132581) (elastic#135454)
(cherry picked from commit b5156fd) # Conflicts: # muted-tests.yml Co-authored-by: Andrei Stefan <[email protected]>
1 parent 0d2a5c9 commit 022d183

File tree

1 file changed

+30
-16
lines changed

1 file changed

+30
-16
lines changed

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
@@ -107,6 +107,35 @@ setup:
107107
"some_doc": { "foo": "xy", "bar": 12 }
108108
}
109109

110+
- do:
111+
indices.create:
112+
index: test2
113+
body:
114+
settings:
115+
number_of_shards: 5
116+
mappings:
117+
properties:
118+
name:
119+
type: keyword
120+
nested:
121+
type: nested
122+
find_me:
123+
type: long
124+
125+
- do:
126+
bulk:
127+
index: test2
128+
refresh: true
129+
body:
130+
- { "index": { } }
131+
- {
132+
"find_me": 1,
133+
"nested": {
134+
"foo": 1,
135+
"bar": "bar",
136+
"baz": 1.9
137+
}
138+
}
110139
---
111140
unsupported:
112141
- requires:
@@ -411,28 +440,13 @@ unsupported with sort:
411440

412441
---
413442
nested declared inline:
414-
- do:
415-
bulk:
416-
index: test
417-
refresh: true
418-
body:
419-
- { "index": { } }
420-
- {
421-
"find_me": 1,
422-
"nested": {
423-
"foo": 1,
424-
"bar": "bar",
425-
"baz": 1.9
426-
}
427-
}
428-
429443
- do:
430444
allowed_warnings_regex:
431445
- "Field \\[.*\\] cannot be retrieved, it is unsupported or not indexed; returning null"
432446
- "No limit defined, adding default limit of \\[.*\\]"
433447
esql.query:
434448
body:
435-
query: 'FROM test | WHERE find_me == 1 | KEEP n*'
449+
query: 'FROM test2 | WHERE find_me == 1 | KEEP n*'
436450

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

0 commit comments

Comments
 (0)