Skip to content

Commit

Permalink
NULLIF function is not NON_NULLABLE nor NULLABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeminso authored and mergify[bot] committed Jan 11, 2024
1 parent 5ff277c commit e9fd37e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ public static void register(ScalarFunctionModule module) {
TypeSignature.parse("E"),
TypeSignature.parse("E"),
TypeSignature.parse("E")
).withTypeVariableConstraints(typeVariable("E"))
.withFeature(Feature.NON_NULLABLE),
).withTypeVariableConstraints(typeVariable("E")),
NullIfFunction::new
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void test_negated_concat_with_three_valued_logic() {
@Test
public void test_nullif() {
assertThat(convert("NULLIF(2, x) != 1")).hasToString(
"+(+*:* -(nullif(2, x) = 1))");
"+(+*:* -(nullif(2, x) = 1)) #(NOT (nullif(2, x) = 1))");
}

@Test
Expand Down

0 comments on commit e9fd37e

Please sign in to comment.