NIFI-6672 PlusEvaluator throws an Arithmetic Exception in case of Long overflow.

TestQuery checks that Long overflow is detected and Double overflow is correctly promoted to POSITIVE_INFINITY

The behaviour change is reverted until further investigations.
The overflow behaviour is still enforced by unit tests and documented in the expression language doc
NIFI-6672 Removed test code.

This closes #3738

Signed-off-by: Mike Thomsen <mthomsen@apache.org>
This commit is contained in:
Alessandro D'Armiento 2019-09-15 17:20:44 +02:00 committed by Mike Thomsen
parent 0f4b79b55e
commit b025117824
No known key found for this signature in database
GPG Key ID: 88511C3D4CAD246F

View File

@ -1981,7 +1981,7 @@ Divide. This is to preserve backwards compatibility and to not force rounding er
=== plus
*Description*: [.description]#Adds a numeric value to the Subject. If either the argument or the Subject cannot be
coerced into a Number, returns `null`.#
coerced into a Number, returns `null`. Does not provide handling for overflow.
*Subject Type*: [.subject]#Number or Decimal#