Skip to content

[8.0] [ML] Fix datafeed preview with remote indices (#81099)#81103

Merged
elasticsearchmachine merged 1 commit intoelastic:8.0from
dimitris-athanasiou:backport/8.0/pr-81099
Nov 29, 2021
Merged

[8.0] [ML] Fix datafeed preview with remote indices (#81099)#81103
elasticsearchmachine merged 1 commit intoelastic:8.0from
dimitris-athanasiou:backport/8.0/pr-81099

Conversation

@dimitris-athanasiou
Copy link
Copy Markdown
Contributor

Backports the following commits to 8.0:

In elastic#77109 a bug was fixed with regard to `date_nanos` time fields
and the preview datafeed API. However, that fix introduces a new bug.
As we are calling the field caps API to find out whether the time field
is `date_nanos`, we are setting the datafeed indices on the request.
This may result to erroneous behaviour on local indices and it certainly
will result to an error if the datafeed's indices are remote.

This commit fixes that problem by setting the datafeed's indices on the
field caps request.
@dimitris-athanasiou dimitris-athanasiou added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport labels Nov 29, 2021
@elasticsearchmachine elasticsearchmachine merged commit 1bc6739 into elastic:8.0 Nov 29, 2021
@dimitris-athanasiou dimitris-athanasiou deleted the backport/8.0/pr-81099 branch November 29, 2021 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v8.0.0-rc1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants