v.24.3Improvement

Added current_user function for MySQL compatibility

Added current_user function as a compatibility alias for MySQL. #61770 (Yarik Briukhovetskyi).
Added the current_user function as a compatibility alias for MySQL in ClickHouse.

Why it matters

This feature provides MySQL compatibility by introducing the current_user function, allowing users migrating from MySQL or integrating with systems expecting this function to retrieve the current user context without errors.

How to use it

Users can simply call the current_user() function in their SQL queries to get the current user, similar to MySQL usage, without any additional configuration.