v.22.2New Feature

Add DEGREES and RADIANS Functions for MySQL Compatibility

Add DEGREES and RADIANS functions for MySQL compatibility. #33769 (Bharat Nallan).
Added DEGREES and RADIANS functions to ClickHouse for compatibility with MySQL.

Why it matters

This feature introduces the DEGREES and RADIANS functions to allow users to easily convert between radians and degrees, matching MySQL behavior. It enhances interoperability and simplifies migrations or cross-database querying for users familiar with MySQL.

How to use it

Use the DEGREES function to convert radians to degrees, and RADIANS to convert degrees to radians in your SQL queries. For example:
SELECT DEGREES(radian_value) FROM ...;
SELECT RADIANS(degree_value) FROM ...;