v.21.7Improvement

MySQL Compatibility: Fix User Function Output

A feature for MySQL compatibility protocol: make user function to return correct output. Closes #25697. #25697 (sundyli).
Implemented MySQL compatibility protocol support for the user function to return correct output.

Why it matters

To improve MySQL compatibility by ensuring that the user function provides accurate results, aligning ClickHouse behavior with MySQL and enhancing interoperability for users migrating or integrating with ClickHouse.

How to use it

Use the user function within queries executed via the MySQL compatibility protocol as usual. The function will now return the correct user information without additional configuration.