-
Notifications
You must be signed in to change notification settings - Fork 25.2k
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
Runtime fields core-with-mapped tests support tsdb #83577
Conversation
@nik9000 can you help to review this PR? |
if (name.equals(DataStreamTimestampFieldMapper.DEFAULT_PATH)) { | ||
// time_series and data stream indices need timestamp field | ||
continue; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -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/*', |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, done
Yeah! Thanks for the ping. I've replied inline |
Pinging @elastic/es-analytics-geo (Team:Analytics) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elasticmachine, test this please
@elasticmachine test this please |
All merged now. Thanks @weizijun ! |
* upstream/master: (166 commits) Bind host all instead of just _site_ when needed (elastic#83145) [DOCS] Fix min/max agg snippets for histograms (elastic#83695) [DOCS] Add deprecation notice for system indices (elastic#83688) Cache ILM policy name on IndexMetadata (elastic#83603) [DOCS] Fix 8.0 breaking changes sort order (elastic#83685) [ML] fix random sampling background query consistency (elastic#83676) Move internal APIs into their own namespace '_internal' Runtime fields core-with-mapped tests support tsdb (elastic#83577) Optimize calculating the presence of a quorum (elastic#83638) Use switch expressions in EnableAllocationDecider and NodeShutdownAllocationDecider (elastic#83641) Note libffi error message in tmpdir docs (elastic#83662) Fix TransportDesiredNodesActionsIT batch tests (elastic#83659) [DOCS] Remove unused upgrade doc files (elastic#83617) [ML] Wait for model process to stop in stop deployment (elastic#83644) [ML] Fix submit after shutdown in process worker service (elastic#83645) Remove req/resp classes associated with HLRC (elastic#83599) Introduce index.version.compatibility setting (elastic#83264) Rename InternalTestCluster#getMasterNodeInstance (elastic#83407) Mute TimeSeriesIndexSearcherTests testCollectInOrderAcrossSegments (elastic#83648) Add rollover add max_primary_shard_docs condition (elastic#80981) ... # Conflicts: # x-pack/plugin/rollup/build.gradle # x-pack/plugin/rollup/src/test/java/org/elasticsearch/xpack/rollup/v2/RollupActionSingleNodeTests.java
As runtime fields not support
time_series_dimension
andtime_series_metric
, it will lead to the failure of tsdb test case. And tsdb indices require the @timestamp field.So I improve the
runtimeifyMappingProperties
method logic, add some skip rule.time_series_dimension
field.time_series_metric
field.@timestamp
field.And the PR fixed the failed test in #83431