Skip to content

MDEV-10426 ANY_VALUE function#5151

Draft
jaeheonshim wants to merge 1 commit into
MariaDB:mainfrom
jaeheonshim:MDEV-10426-any-value
Draft

MDEV-10426 ANY_VALUE function#5151
jaeheonshim wants to merge 1 commit into
MariaDB:mainfrom
jaeheonshim:MDEV-10426-any-value

Conversation

@jaeheonshim
Copy link
Copy Markdown

MDEV-10426: Add support for the MySQL ANY_VALUE() function (SQL:2023 feature T626).

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements the ANY_VALUE() function by adding it to the client commands, defining the Item_func_any_value class (inheriting from Item_func_coalesce), and registering it in the function registry. Feedback on the changes points out a critical issue: because Item_func_any_value inherits from Item_func_coalesce, it will still trigger ONLY_FULL_GROUP_BY errors unless check_cols_in_group_by() is overridden to return false directly.

Comment thread sql/item_cmpfunc.h
@vuvova vuvova added the GSoC label Jun 1, 2026
@gkodinov gkodinov added the External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements. label Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements. GSoC

Development

Successfully merging this pull request may close these issues.

5 participants