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

[pull] main from elastic:main #547

Merged
merged 9 commits into from
Nov 27, 2024
Merged

[pull] main from elastic:main #547

merged 9 commits into from
Nov 27, 2024

Conversation

pull[bot]
Copy link

@pull pull bot commented Nov 27, 2024

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

ashm-dev and others added 9 commits November 27, 2024 10:17
This class has no state, no need to pass instances of it around all its
members can be static to simplify node construction and the code
overall.
…vice (#117573)

Small cleanup from a code-review earlier.
SearchService isn't using this thing, it's only used by the transport
action so that's where it should reside.
Adjusted constructors accordingly and removed getter.
If `COUNT` agg has a filter applied, this must also be push down to source. This currently does not happen, but this issue is masked currently by two factors:
* a logical optimisation, `ExtractAggregateCommonFilter` that extracts the filter out of the STATS entirely (and pushes it to source then from a `WHERE`);
* the phisical plan optimisation implementing the  push down, `PushStatsToSource`, currently only applies if there's just one agg function to push down.

However, this fix needs to be applied since:
* it's still present in versions prior to `ExtractAggregateCommonFilter` introduction;
* the defect might resurface when the restriction in `PushStatsToSource` is lifted.

Fixes #115522.
Assert optimization applied to search IT tests
Currently, we emit a deprecation warning in the parser of the source 
field when source mode is used in mappings. However, this behavior 
causes warnings to be emitted for every mapping update. In tests with
assertions enabled, warnings are also triggered for every change to
index metadata. As a result, deprecation warnings are inadvertently
emitted for index or update requests.

This change relocates the deprecation check to the mapper, limiting it 
to cases where a new index is created or a template is created/updated.

Relates to #117524
Removes the "entitlement" parameter from policy parsing.
@pull pull bot added the ⤵️ pull label Nov 27, 2024
@pull pull bot merged commit 418cbbf into Samboski1:main Nov 27, 2024
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.

8 participants