Skip to content
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

[Transform] Do not deduce mappings in latest transform function #66523

Merged

Conversation

przemekwitek
Copy link
Contributor

@przemekwitek przemekwitek commented Dec 17, 2020

This PR disables mapping deduction in case of latest transform function. The reason is we cannot deduce the mappings reliably anyway (think of various settings like text's analyzer).
In most cases we expect the users providing index templates from which destination index mappings will be taken (the user can even create the destination index with custom mappings at their will).
For the case when there is no template, the transform will still create the destination index, but with no mappings. This will result in documents from source index being indexed into destination index with dynamic mappings.

Additionally, this PR makes LatestContinuousIT test use runtime fields to verify that latest handles runtime fields correctly.

Relates #65869

@przemekwitek przemekwitek force-pushed the latest_do_not_deduce_mappings branch from 0ff08a9 to 7d8d9f9 Compare December 18, 2020 07:20
@przemekwitek
Copy link
Contributor Author

run elasticsearch-ci/2

@przemekwitek przemekwitek force-pushed the latest_do_not_deduce_mappings branch from 7d8d9f9 to 4302ab8 Compare December 18, 2020 09:30
@przemekwitek przemekwitek changed the title Do not deduce mappings in latest transform function [Transform] Do not deduce mappings in latest transform function Dec 18, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml/Transform)

Copy link

@hendrikmuhs hendrikmuhs left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants