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]: POW(x, y) math function not supported #24439
Others: discovered via NL2SQL workload generating standard MySQL math functions
Actual Behavior
Calling the standard MySQL POW(x, y) math function returns an error indicating the function is not supported.
ERROR 20105 (HY000): not supported: function or operator 'pow'
Expected Behavior
POW(x, y) (alias POWER(x, y)) is a standard MySQL math function returning x raised to the power of y. MatrixOne, being MySQL-compatible, should support both names.
SELECT POW(2, 10); -- expected 1024, fails with "not supported: function or operator 'pow'"SELECT POW(1.5, 3);
SELECT POWER(2, 10); -- please also confirm whether the alias POWER works
Additional information
Math functions are commonly emitted by NL2SQL agents and BI tools (e.g., for distance / compound-interest / scaling computations). Missing POW forces awkward workarounds (EXP(y * LN(x))).
Activity