Skip to content

Commit

Permalink
add missing ceiling
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangjinwu committed Apr 4, 2023
1 parent 4100aaa commit 741245c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/frontend/src/binder/expr/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ impl Binder {
// "power" is the function name used in PG.
("power", raw_call(ExprType::Pow)),
("ceil", raw_call(ExprType::Ceil)),
("ceiling", raw_call(ExprType::Ceil)),
("floor", raw_call(ExprType::Floor)),
("abs", raw_call(ExprType::Abs)),
("exp", raw_call(ExprType::Exp)),
Expand Down
2 changes: 1 addition & 1 deletion src/tests/regress/data/sql/float8.sql
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ SELECT f.f1, round(f.f1) AS round_f1

-- ceil / ceiling
select ceil(f1) as ceil_f1 from float8_tbl f;
--@ select ceiling(f1) as ceiling_f1 from float8_tbl f;
select ceiling(f1) as ceiling_f1 from float8_tbl f;

-- floor
select floor(f1) as floor_f1 from float8_tbl f;
Expand Down

0 comments on commit 741245c

Please sign in to comment.