Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Function signature changed consistent with mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
chloe-zh committed Jul 9, 2020
1 parent 4ebd360 commit a0c3a53
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,14 @@ public void ceil_double_value(Double value) {
@Test
public void ceil_null_value() {
FunctionExpression ceil = dsl.ceil(DSL.ref(DOUBLE_TYPE_NULL_VALUE_FIELD, DOUBLE));
assertEquals(LONG, ceil.type());
assertEquals(DOUBLE, ceil.type());
assertTrue(ceil.valueOf(valueEnv()).isNull());
}

@Test
public void ceil_missing_value() {
FunctionExpression ceil = dsl.ceil(DSL.ref(DOUBLE_TYPE_MISSING_VALUE_FIELD, DOUBLE));
assertEquals(LONG, ceil.type());
assertEquals(DOUBLE, ceil.type());
assertTrue(ceil.valueOf(valueEnv()).isMissing());
}

Expand Down Expand Up @@ -315,14 +315,14 @@ public void floor_double_value(Double value) {
@Test
public void floor_null_value() {
FunctionExpression floor = dsl.floor(DSL.ref(DOUBLE_TYPE_NULL_VALUE_FIELD, DOUBLE));
assertEquals(LONG, floor.type());
assertEquals(DOUBLE, floor.type());
assertTrue(floor.valueOf(valueEnv()).isNull());
}

@Test
public void floor_missing_value() {
FunctionExpression floor = dsl.floor(DSL.ref(DOUBLE_TYPE_MISSING_VALUE_FIELD, DOUBLE));
assertEquals(LONG, floor.type());
assertEquals(DOUBLE, floor.type());
assertTrue(floor.valueOf(valueEnv()).isMissing());
}

Expand Down

0 comments on commit a0c3a53

Please sign in to comment.