EvalEx 3.2.0 released #460
uklimaschewski
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am happy to announce the release of EvalEx version 3.2.0.
Apart of several bug fixes, this new minor release contains several new features:
EvalEx now supports also single quotes for string constants, along with double quotes.
To stay backward compatible, this feature is disabled by default. To enable it, you have to enable it in the configuration.
Operators now also allow lazy evaluation. This enables a shortcut circuiting e.g. for the boolean operators:
IF(v != NULL && v > 0, TRUE, FALSE)
In this case, the right part of the AND operator is now only evaluated, if the left part is true.
Expression can be copied and evaluated with a different set of values:
There is a new
copy()
function for an expression. This will return a clone of the original expression.This allows a thread-save evaluation of the "same" expression with different values.
Java arrays can now be passed as parameters for evaluation.
This works also for primitive arrays, like
int[]
,double[]
,boolean[]
and also Object arrays likeString[]
orBigDecimal[]
.The
SUM
,MIN
andMAX
functions now also can handle ARRAY parameter.If a parameter to these functions is an array, each element of the array will be taken into account. Arrays and scalar values can also be mixed and also multidimensional arrays are supported.
There are two new string functions:
STR_STARTS_WITH
: Returns true if the string starts with the substring (case-sensitive).STR_ENDS_WITH
: Returns true if the string ends with the substring (case-sensitive).There are two new date/time functions:
DT_NOW
: Produces a new DATE_TIME that represents the current moment in time.DT_TODAY
: Produces a new DATE_TIME that represents the current date, at midnight (00:00). An optional time zone (string) can be specified, e.g. "America/Sao_Paulo", or "GMT-03:00". If no zone id is specified, the configured zone id is used.Welcome and a big THANK YOU also to two new Contributors:
Full Changelog: 3.1.0...3.2.0
Beta Was this translation helpful? Give feedback.
All reactions