Skip to content

Runtime fields core-with-mapped tests support tsdb #83577

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/changelog/83577.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 83577
summary: Runtime fields core-with-mapped tests support tsdb
area: Mapping
type: bug
issues: []
2 changes: 0 additions & 2 deletions x-pack/qa/runtime-fields/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ subprojects {
//there is something wrong when using dotted document syntax here, passes in main yaml tests
'search/330_fetch_fields/Test nested field inside object structure',

// AwaitsFix: https://github.com/elastic/elasticsearch/issues/83431
'search.aggregation/450_time_series/Basic test',
/////// TO FIX ///////

/////// NOT SUPPORTED ///////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.elasticsearch.common.io.stream.BytesStreamOutput;
import org.elasticsearch.core.RestApiVersion;
import org.elasticsearch.index.mapper.BooleanFieldMapper;
import org.elasticsearch.index.mapper.DataStreamTimestampFieldMapper;
import org.elasticsearch.index.mapper.DateFieldMapper;
import org.elasticsearch.index.mapper.GeoPointFieldMapper;
import org.elasticsearch.index.mapper.IpFieldMapper;
Expand Down Expand Up @@ -292,6 +293,18 @@ protected final boolean runtimeifyMappingProperties(Map<String, Object> properti
// Our source reading script doesn't emulate ignore_malformed
continue;
}
if (propertyMap.containsKey("time_series_dimension")) {
// time_series_dimension field can't emulate with scripts.
continue;
}
if (propertyMap.containsKey("time_series_metric")) {
// time_series_metric field can't emulate with scripts.
continue;
}
if (name.equals(DataStreamTimestampFieldMapper.DEFAULT_PATH)) {
// time_series and data stream indices need timestamp field
continue;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

if (RUNTIME_TYPES.contains(type) == false) {
continue;
}
Expand Down