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

Scripting: Add back params._source access in scripted metric aggs #34777

Merged
merged 1 commit into from Oct 24, 2018

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Oct 23, 2018

Access to special variables _source and _fields were accidentally
removed in recent refactorings. This commit adds them back, along with a
test.

closes #33884

Access to special variables _source and _fields were accidentally
removed in recent refactorings. This commit adds them back, along with a
test.

closes elastic#33884
@rjernst rjernst added >bug :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache v7.0.0 v6.5.0 labels Oct 23, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

Copy link
Contributor

@jdconrad jdconrad left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for doing this.

@rjernst rjernst merged commit 8da1c96 into elastic:master Oct 24, 2018
@rjernst rjernst deleted the scripted_aggs_source branch October 24, 2018 01:07
rjernst added a commit that referenced this pull request Oct 24, 2018
…4777)

Access to special variables _source and _fields were accidentally
removed in recent refactorings. This commit adds them back, along with a
test.

closes #33884
rjernst added a commit that referenced this pull request Oct 24, 2018
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Oct 24, 2018
…astic#34777)

Access to special variables _source and _fields were accidentally
removed in recent refactorings. This commit adds them back, along with a
test.

closes elastic#33884
kcm pushed a commit that referenced this pull request Oct 30, 2018
…4777)

Access to special variables _source and _fields were accidentally
removed in recent refactorings. This commit adds them back, along with a
test.

closes #33884
rjernst added a commit that referenced this pull request Oct 30, 2018
…4777) (#34832)

Access to special variables _source and _fields were accidentally
removed in recent refactorings. This commit adds them back, along with a
test.

closes #33884
rjernst added a commit that referenced this pull request Oct 30, 2018
…4777) (#34832)

Access to special variables _source and _fields were accidentally
removed in recent refactorings. This commit adds them back, along with a
test.

closes #33884
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache v6.5.0 v7.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Access _source in scripted metric aggregation with state context
4 participants