v.25.6New Feature
Function arrayFirst, arrayFirstIndex, arrayLast and arrayLastIndex will
FunctionarrayFirst,arrayFirstIndex,arrayLastandarrayLastIndexwill filter away NULL values returned by the filter expression. In previous versions, Nullable filter results were not supported. Fixes #81113. #81197 (Lennard Eijsackers).
Why it matters
Previously, these functions did not support Nullable filter results, which caused incorrect behavior when filters containedNULL values. This update ensures that NULL results are properly excluded, improving the accuracy and reliability of array element selection based on filter criteria.How to use it
Users can simply continue to use the functionsarrayFirst, arrayFirstIndex, arrayLast, and arrayLastIndex with Nullable filter expressions. The functions will automatically exclude NULL values from the filter results without requiring any changes to the existing query syntax.