-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Remove timestampField from DataStreamTestHelper#newInstance(...) helper methods #85260
Merged
martijnvg
merged 7 commits into
elastic:master
from
martijnvg:remove_timestampField_from_DataStreamTestHelper_newInstance_method
Mar 23, 2022
Merged
Remove timestampField from DataStreamTestHelper#newInstance(...) helper methods #85260
martijnvg
merged 7 commits into
elastic:master
from
martijnvg:remove_timestampField_from_DataStreamTestHelper_newInstance_method
Mar 23, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…er methods. This makes tests a bit cleaner. The timestamp field is always '@timestamp' and in the future will likely remove the 'timeStampField' field from `DataStream` class. Since in practice it is always '@timestamp'. When data streams was developed the idea was the timestamp field would be configurable. We left it hardcode to '@timestamp', since that is the timestamp field for all Elastic solutions. In the last years we have not found a reason to use any other timestamp field than '@timestamp', so in the future will likely remove this 'timeStampField' field from `DataStream` class, which currently is hardcoded to '@timestamp'.
martijnvg
added
>non-issue
:Data Management/Data streams
Data streams and their lifecycles
v8.2.0
labels
Mar 23, 2022
elasticmachine
added
the
Team:Data Management
Meta label for data/management team
label
Mar 23, 2022
Pinging @elastic/es-data-management (Team:Data Management) |
joegallo
approved these changes
Mar 23, 2022
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.
Looks fine, and it has the Jenkins seal of approval. 🚢
martijnvg
added a commit
to martijnvg/elasticsearch
that referenced
this pull request
Mar 24, 2022
Timestamp field is always '@timestamp' and is already fixed to this field. Removing this parameter from DataStream's constructors makes this clearer and makes the code a bit cleaner too. This change doesn't break bwc in any way or change the xcontent/binary format. A next followup change may do this. Followup from elastic#85260
elasticsearchmachine
pushed a commit
that referenced
this pull request
Mar 28, 2022
Timestamp field is always '@timestamp' and is already fixed to this field. Removing this parameter from DataStream's constructors makes this clearer and makes the code a bit cleaner too. This change doesn't break bwc in any way or change the xcontent/binary format. A next followup change may do this. Followup from #85260
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
:Data Management/Data streams
Data streams and their lifecycles
>non-issue
Team:Data Management
Meta label for data/management team
v8.2.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This makes tests a bit cleaner.
The timestamp field is always
@timestamp
and in the future will likelyremove the 'timeStampField' field from
DataStream
class. Since in practiceit is always
@timestamp
.When data streams was developed the idea was the timestamp field would be configurable.
We left it hardcode to '@timestamp', since that is the timestamp field for all Elastic
solutions. In the last years we have not found a reason to use any other timestamp field
than
@timestamp
so in the future will likely remove this 'timeStampField' field fromDataStream
class, which currently is hardcoded to@timestamp
.