Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Jun 21, 2024
1 parent 5d0f757 commit 165a838
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions velox/core/SimpleFunctionMetadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -709,13 +709,13 @@ class UDFHolder {

static_assert(
!(udf_has_call_return_bool && udf_has_call_return_void),
"Provided call() methods need to return either void OR bool OR status.");
"Provided call() methods need to return either void OR bool OR Status.");
static_assert(
!(udf_has_call_return_bool && udf_has_call_return_status),
"Provided call() methods need to return either void OR bool OR status.");
"Provided call() methods need to return either void OR bool OR Status.");
static_assert(
!(udf_has_call_return_void && udf_has_call_return_status),
"Provided call() methods need to return either void OR bool OR status.");
"Provided call() methods need to return either void OR bool OR Status.");

// callNullable():
static constexpr bool udf_has_callNullable_return_bool = util::has_method<
Expand All @@ -741,13 +741,13 @@ class UDFHolder {
udf_has_callNullable_return_status;
static_assert(
!(udf_has_callNullable_return_bool && udf_has_callNullable_return_void),
"Provided callNullable() methods need to return either void OR bool OR status.");
"Provided callNullable() methods need to return either void OR bool OR Status.");
static_assert(
!(udf_has_callNullable_return_bool && udf_has_callNullable_return_status),
"Provided callNullable() methods need to return either void OR bool OR status.");
"Provided callNullable() methods need to return either void OR bool OR Status.");
static_assert(
!(udf_has_callNullable_return_void && udf_has_callNullable_return_status),
"Provided callNullable() methods need to return either void OR bool OR status.");
"Provided callNullable() methods need to return either void OR bool OR Status.");

// callNullFree():
static constexpr bool udf_has_callNullFree_return_bool = util::has_method<
Expand Down
1 change: 1 addition & 0 deletions velox/expression/tests/SimpleFunctionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1548,6 +1548,7 @@ TEST_F(SimpleFunctionTest, noThrow) {
(evaluateOnce<int64_t, int64_t>("try(no_throw(c0))", 6)),
"Input must not be 6");

// Error reported via Status by callNullable.
VELOX_ASSERT_THROW(
(evaluateOnce<int64_t, int64_t>("no_throw(c0)", std::nullopt)),
"Input cannot be NULL");
Expand Down

0 comments on commit 165a838

Please sign in to comment.