Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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: []
3 changes: 0 additions & 3 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 All @@ -101,7 +99,6 @@ subprojects {
'search/330_fetch_fields/error includes glob pattern',
// we need a @timestamp field to be defined in index mapping
'search/380_sort_segments_on_timestamp/*',
'field_caps/40_time_series/*',
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if this is a bit broad. How many are failing without this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The yaml failed because of the setup create index, index mapping has time_series_dimension and time_series_metric.
I remove this line, and run the test, it is ok.

Copy link
Member

Choose a reason for hiding this comment

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

Could you remove the line from the PR? I think you've covered this in the translater.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, done

/////// NOT SUPPORTED ///////
].join(',')
}
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