v.22.2New Feature
Add DEGREES and RADIANS Functions for MySQL Compatibility
AddDEGREESandRADIANSfunctions for MySQL compatibility. #33769 (Bharat Nallan).
Why it matters
This feature introduces theDEGREES 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 theDEGREES 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 ...;