Skip to content

MySQL function not implemented: POW #22934

Closed
Closed

Description

@dengn

Function Information

Function Name: POW
Category: numeric

MySQL Function Description

MySQL POW函数:
返回x的y次幂。

语法: POW(x, y) 或 POWER(x, y)

功能:
- 返回x的y次幂
- POW和POWER是同一个函数的别名
- 如果x为负数且y不是整数,可能返回NULL

Expected Behavior

预期行为:
- POW(2, 3) 应返回 8
- POW(2, 0) 应返回 1
- POW(4, 0.5) 应返回 2(平方根)

Current Behavior in MatrixOne

This function is not implemented in MatrixOne.

Error Message: (20105, "not supported: function or operator 'pow'")

Test Case

SELECT POW(2, 3) AS result1

MySQL Documentation

Request

Please implement the POW function to improve MySQL compatibility.

Activity

  1. added
    priority/p0
    kind/compatibility
    ai-easy
    on Nov 21, 2025
  2. added theissue type on Nov 21, 2025
  3. changed the issue type fromtoon Nov 21, 2025
  4. added this to the MO-202511 milestone on Nov 21, 2025
  5. fengttt commented on Nov 24, 2025

    @fengttt
    Contributor

    Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ai-easykind/compatibilitypriority/p0

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions