Skip to content

Commit

Permalink
Document the behavior of Spark string functions for invalid UTF-8 inp…
Browse files Browse the repository at this point in the history
…ut (facebookincubator#10682)

Summary: Pull Request resolved: facebookincubator#10682

Reviewed By: pedroerp

Differential Revision: D61135197

Pulled By: xiaoxmeng

fbshipit-source-id: 85ab3e13a08628d73b7d14cf4056f8223ebc823d
  • Loading branch information
rui-mo authored and facebook-github-bot committed Aug 12, 2024
1 parent a6ca103 commit 42f0a6b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion velox/docs/functions/spark/string.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
String Functions
====================================

Unless specified otherwise, all functions return NULL if at least one of the arguments is NULL.
.. note::

Unless specified otherwise, all functions return NULL if at least one of the arguments is NULL.

These functions assume that input strings contain valid UTF-8 encoded Unicode code points.
The behavior is undefined if they are not.

.. spark:function:: ascii(string) -> integer
Expand Down

0 comments on commit 42f0a6b

Please sign in to comment.