Open YANG-DB opened 1 month ago
IMO functions - @LantaoJin what are your thoughts?
@YANG-DB
I have a question related to the edge case associated with ternary logic. What should be the outcome of invoking eval r = isempty(null)
? According to the below definition
SELECT CASE
WHEN length(trim(column_name)) = 0 THEN true
ELSE false
END AS is_empty
isempty(null)
evaluates to false
. Is this expected?
The initial implementation is ready for review. The version contains the unresolved problem described in the above comment. @YANG-DB , please let me know what you think.
can we close this as https://github.com/opensearch-project/opensearch-spark/pull/676 is merged?
Is your feature request related to a problem? Add
isEmpty
command for PPL spark based execution driver .Since spark sql doesnt offer such expression a possible option would be:
IsEmptyExpression
Do you have any additional context?