Skip to content

Commit f2f4039

Browse files
committed
Fix default function name prefix
1 parent 4318f54 commit f2f4039

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

presto-docs/src/main/sphinx/presto_cpp/properties.rst

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,24 @@ alphabetical order.
116116
* **Type:** ``string``
117117
* **Default value:** ``presto.default``
118118

119-
Specifies the namespace prefix for native C++ functions.
119+
Specifies the namespace prefix for native C++ functions. This prefix is used when
120+
registering Velox functions in Prestissimo to ensure proper function resolution in
121+
multi-catalog environments.
122+
123+
.. warning::
124+
125+
**Critical**: When registering Velox functions, you **must** follow the
126+
``catalog.schema.`` prefix pattern. Functions registered without this pattern
127+
will cause worker node crashes.
128+
129+
The configured value (e.g., ``presto.default``) is automatically appended with a
130+
trailing dot (``.``) to form the complete prefix (``presto.default.``). This results
131+
in fully qualified function names like ``presto.default.substr``, ``presto.default.sum``, etc.
132+
133+
.. note::
134+
135+
Internal functions (prefixed with ``$internal$``) do not follow this pattern and
136+
are exempt from the three-part naming requirement.
120137

121138
Worker Properties
122139
-----------------

0 commit comments

Comments
 (0)