ZhangYu0123 opened a new pull request, #17703: URL: https://github.com/apache/doris/pull/17703
# Proposed changes Array remove function can't processing null element and just return null as result. In some cases, it isn't logical. Problems are as follows: <img width="769" alt="image" src="https://user-images.githubusercontent.com/67053339/224533554-1582635d-07d1-4621-b9f8-e1257b02c8bb.png"> So this pr adds functionality for array_remove to handle empty elements. Details as follows: 1. Added an optional parameter like this: array<T> array_remove(array<T> arr, T val, is_process_null = false). 2. When is_process_null is 1 or True, array_remove will remove null element in array. <img width="463" alt="image" src="https://user-images.githubusercontent.com/67053339/224534036-3530c9fa-f717-4789-b524-c5d54bf86196.png"> 3. When is_process_null is 10 or False or default. Array_remove is the same as the previous processing logic. Issue Number: close #xxx ## Problem summary Describe your changes. ## Checklist(Required) * [ ] Does it affect the original behavior * [ ] Has unit tests been added * [ ] Has document been added or modified * [ ] Does it need to update dependencies * [ ] Is this PR support rollback (If NO, please explain WHY) ## Further comments If this is a relatively large or complex change, kick off the discussion at [d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org