Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions modules/querying/pages/func/query-user-defined-functions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,14 @@ GSQL > GET ExprFunctions TO "./udf.hpp"

In the downloaded file, add the function definition for the `rng()` function.

[NOTE]
====
Use a unique prefix for your UDF names, such as `udf_`, to avoid naming
conflicts with TigerGraph built-in functions. If a future TigerGraph upgrade
introduces a built-in function with the same name as an existing UDF, it
may cause conflicts during the upgrade.
====

.udf.hpp
[source.wrap,c++]
----
Expand Down