Adds `isnotempty(field)` function to PPL that returns true when a field
is not null and not an empty string — the logical negation of
`isempty(field)`.
Implementation: NOT(IS_NULL(arg) OR IS_EMPTY(arg))
- ANTLR grammar: added ISNOTEMPTY token and parser rules in all three
grammar modules (ppl, language-grammar, async-query-core)
- BuiltinFunctionName: added IS_NOT_EMPTY enum constant
- PPLFuncImpTable: registered Calcite implementation
- Integration test: testIsNotEmpty in CalcitePPLConditionBuiltinFunctionIT
- Documentation: added ISNOTEMPTY section to condition functions docs
Resolves opensearch-project#5182
Signed-off-by: Luca Cavenaghi <lucacavenaghics97@gmail.com>
Description
Adds
isnotempty(field)to PPL. Returnstruewhen a field is not null and not empty string — logical negation ofisempty(field).Resolves #5182
Changes
ISNOTEMPTYtoken and parser rules in ppl, language-grammar, and async-query-core grammarsIS_NOT_EMPTYenum constant toBuiltinFunctionNameNOT(IS_NULL(arg) OR IS_EMPTY(arg))inPPLFuncImpTabletestIsNotEmptyintegration test