Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyangxiaozhu committed Jun 28, 2024
1 parent fbc38fd commit bc6b380
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions velox/docs/functions/spark/misc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Miscellaneous Functions
.. spark:function:: raise_error(message)
Throws a user error with the specified ``message``.
If ``message`` is NULL, throws a user error with empty message.

.. spark:function:: spark_partition_id() -> integer
Expand Down
2 changes: 1 addition & 1 deletion velox/functions/sparksql/RaiseError.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct RaiseErrorFunction {
if (input) {
return Status::UserError("{}", *input);
}
return Status::UserError("{}", "");
return Status::UserError();
}
};
} // namespace facebook::velox::functions::sparksql

0 comments on commit bc6b380

Please sign in to comment.