Skip to content

Commit

Permalink
add docs to sv_to_udf_str
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-b-miller committed Mar 1, 2023
1 parent 254a583 commit 0840cdc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions python/cudf/cudf/testing/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,21 @@ def expect_warning_if(condition, warning=FutureWarning, *args, **kwargs):


def sv_to_udf_str(sv):
"""
Cast a string_view object to a udf_string object
This placeholder function never runs in python
It exists only for numba to have something to replace
with the typing and lowering code below
This is similar conceptually to needing a translation
engine to emit an expression in target language "B" when
there is no equivalent in the source language "A" to
translate from. This function effectively defines the
expression in language "A" and the associated typing
and lowering describe the translation process, despite
the expression having no meaning in language "A"
"""
pass


Expand Down

0 comments on commit 0840cdc

Please sign in to comment.