Skip to content

Implement native function: round() #1327

@richox

Description

@richox

Is your feature request related to a problem? Please describe.

currently, round() function has no native implementation because we found there are different behaviors from spark:

// TODO: datafusion's round() has different behavior from spark

Describe the solution you'd like

implement native round() with the same behavior as spark (to verify this, we can bring some codes from spark's MathExpressionSuite.scala). we can use AI to directly translate spark's implementation to rust.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions