Skip to content

[core] Add option to disable overflow exception in sum agg - #9874

Open
tsreaper wants to merge 1 commit into
apache:masterfrom
tsreaper:sum-overflow-exception
Open

tsreaper wants to merge 1 commit into
apache:masterfrom
tsreaper:sum-overflow-exception

Conversation

@tsreaper

Copy link
Copy Markdown
Contributor

Purpose

#7992 adds overflow detection in sum agg. If the result overflows, it will throw an exception.

However, some users don't care about overflows. This change will break their jobs without a way to recover.

This PR adds an option to disable the overflow exception.

Tests

  • FieldAggregatorTest

return options.get(
key(FIELDS_PREFIX + "." + fieldName + ".sum.fail-on-overflow")
.booleanType()
.defaultValue(true));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe default value should be false?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants