Skip to content

Conversation

@bpintea
Copy link
Contributor

@bpintea bpintea commented Sep 24, 2025

This makes configurable the limit that the intermediate LocalRelation used in INLINE STATS execution can grow to.
By default, this can grow up to .1% of the heap.

Related #134455

This makes configurable the limit that the intermediate LocalRelation
used in INLINE STATS execution can grow to.
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Sep 24, 2025
* Values for cluster level settings used in physical planning.
*/
public class PhysicalSettings {
public class PlannerSettings {
Copy link
Member

Choose a reason for hiding this comment

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

Ah. I was expecting a LogicalSettings on day. but this is just as good.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was a bit hesitant about this rename, but I thought it might make sense since there's no hard distinguishing between them so far and even the new one is actually using while executing (subplans). But yes, then can be untangled if needed.


public static final Setting<ByteSizeValue> INTERMEDIATE_LOCAL_RELATION_MAX_SIZE = Setting.memorySizeSetting(
"esql.intermediate_local_relation_max_size",
"0.1%",
Copy link
Member

Choose a reason for hiding this comment

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

On a 512mb heap this is half a megabyte. That feels fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeh.. I dropped the min/max bounds for the limit, since I think this proportionality should be working by itself. But can add them back if it proves it'll be useful.

@bpintea
Copy link
Contributor Author

bpintea commented Sep 26, 2025

Thanks Nik!

@bpintea bpintea merged commit 1c14843 into elastic:main Sep 26, 2025
34 checks passed
@bpintea bpintea deleted the enh/local_relation_max_setting branch September 26, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants