Skip to content

Floor built in function return type  #8795

@Ted-Jiang

Description

@Ted-Jiang

https://github.com/apache/arrow-datafusion/blob/f0af5eb949e2c5fa9f66eb6f6a9fcdf8f7389c9d/datafusion/expr/src/built_in_function.rs#L899-L915

from this code floor() only retun float type

but from postgresql

floor ( numeric ) → numeric

floor ( double precision ) → double precision

Nearest integer less than or equal to argument

floor(42.8) → 42

floor(-42.8) → -43

https://www.postgresql.org/docs/current/functions-math.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions