Skip to content

[Bug]: POW(x, y) math function not supported #24439

Closed

Description

@dengn

Branch Name

main (v3.0.10 release tag)

Commit ID

2c55016e89a957fcb6e7554cebcfd1e6f2f3cd13

Other Environment Information

  • Hardware parameters: n/a (release build)
  • OS type: n/a
  • 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.

Reference: https://dev.mysql.com/doc/refman/8.0/en/mathematical-functions.html#function_pow

Steps to Reproduce

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))).

Related issue filed in the same session:

  • RADIANS() (or RADIAN()) not supported

Activity

  1. added
    severity/s1
    on Jun 2, 2026
  2. added theissue type on Jun 2, 2026
  3. added this to the MO-202606 milestone on Jun 2, 2026
  4. added
    severity/s0
    and removed
    severity/s1
    on Jun 30, 2026
  5. modified the milestones: MO-202606, MO-202607 on Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

severity/s0

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions