Skip to content

Commit 2d1e5d3

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

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:
@@ -408,28 +437,13 @@ unsupported with sort:
408437

409438
---
410439
nested declared inline:
411-
- do:
412-
bulk:
413-
index: test
414-
refresh: true
415-
body:
416-
- { "index": { } }
417-
- {
418-
"find_me": 1,
419-
"nested": {
420-
"foo": 1,
421-
"bar": "bar",
422-
"baz": 1.9
423-
}
424-
}
425-
426440
- do:
427441
allowed_warnings_regex:
428442
- "Field \\[.*\\] cannot be retrieved, it is unsupported or not indexed; returning null"
429443
- "No limit defined, adding default limit of \\[.*\\]"
430444
esql.query:
431445
body:
432-
query: 'FROM test | WHERE find_me == 1 | KEEP n*'
446+
query: 'FROM test2 | WHERE find_me == 1 | KEEP n*'
433447

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

0 commit comments

Comments
 (0)