Skip to content

Keep track of timestamp_field mapping as part of a data stream#58400

Merged
martijnvg merged 3 commits intoelastic:7.xfrom
martijnvg:backport_58096
Jun 22, 2020
Merged

Keep track of timestamp_field mapping as part of a data stream#58400
martijnvg merged 3 commits intoelastic:7.xfrom
martijnvg:backport_58096

Conversation

@martijnvg
Copy link
Copy Markdown
Member

Backporting #58096 to 7.x branch.
Relates to #53100

  • use mapping source directly instead of using mapper service to extract the relevant mapping details
  • moved assertion to TimestampField class and added helper method for tests
  • Improved logic that inserts timestamp field mapping into an mapping.
    If the timestamp field path consisted out of object fields and
    if the final mapping did not contain the parent field then an error
    occurred, because the prior logic assumed that the object field existed.

…ic#58096)

Backporting elastic#58096 to 7.x branch.
Relates to elastic#53100

* use mapping source direcly instead of using mapper service to extract the relevant mapping details
* moved assertion to TimestampField class and added helper method for tests
* Improved logic that inserts timestamp field mapping into an mapping.
If the timestamp field path consisted out of object fields and
if the final mapping did not contain the parent field then an error
occurred, because the prior logic assumed that the object field existed.
@martijnvg martijnvg added backport :StorageEngine/Data streams Data streams and their lifecycles v7.9.0 labels Jun 22, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Data streams)

@elasticmachine elasticmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. label Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :StorageEngine/Data streams Data streams and their lifecycles Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v7.9.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants