You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: RADIANS(x) math function not supported #24440
Others: discovered via NL2SQL workload generating standard MySQL math functions
Actual Behavior
The standard MySQL RADIANS(x) math function (which converts degrees to radians) is reported as not supported.
ERROR 20105 (HY000): not supported: function or operator 'radians'
(also tested RADIAN(x) in case of a naming variant — same "not supported" error)
Expected Behavior
RADIANS(x) is a standard MySQL math function returning the radian value of x (where x is in degrees). MatrixOne, being MySQL-compatible, should support it. Companion DEGREES(x) should also be checked.
SELECT RADIANS(180); -- expected ~3.141592653589793, fails with "not supported"SELECT RADIANS(90); -- expected ~1.5707963267948966SELECT DEGREES(PI()); -- please also confirm whether the companion DEGREES() works
Additional information
Trigonometric / geospatial workloads (distance calculations, lat-lon, sensor azimuth) routinely use RADIANS() and DEGREES(). Their absence blocks any standard MySQL haversine-distance formula and other common spatial queries.
Activity
ULookup commentedon Jun 2, 2026
This issue has been resolved. RADIANS() and DEGREES() are now available on all active branches:
main4.0-dev3.0-devChanges
pkg/sql/plan/function/function_id.go— Function ID constants and name-to-ID mappingspkg/sql/plan/function/list_builtIn.go— Overload definitionspkg/sql/plan/function/func_builtin.go—builtInDegrees()andbuiltInRadians()pkg/sql/plan/function/func_builtin_test.go— Unit teststest/distributed/cases/function/— Integration tests