-
Notifications
You must be signed in to change notification settings - Fork 18
[DOC-10857] Add a note to ARRAY_REMOVE() #334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description of the DOC ticket (DOC-10857) includes the reason why ARRAY_REMOVE() cannot remove NULL values from an array. Can that be added?
Reasoning from the DOC ticket:
The ARRAY_REMOVE function can't be used to remove NULL values from an array since it uses an equality predicate and NULL doesn't equal NULL.
The internal implementation of the ARRAY_REMOVE() function uses an equality predicate when evaluating the array elements to remove. And since NULL does not equal NULL, the implementation will not remove the NULL values from the array,
Done. Updated the doc to include this information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
DOC-10857
Added a note to the ARRAY_REMOVE function about removing NULL values.
Preview: https://preview.docs-test.couchbase.com/docs-devex-DOC-10857-update-array-remove/server/current/n1ql/n1ql-language-reference/arrayfun.html#fn-array-remove
Credentials: Preview docs for internal review