Skip to content

Commit aca7e4c

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

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
@@ -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)