Skip to content

Commit 9fa97f8

Browse files
authored
Update udfs.md
1 parent 4e6c7c5 commit 9fa97f8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎website/docs/docs/build/udfs.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ Follow these steps to define UDFs in dbt:
249249
`volatility` is accepted in dbt for SQL, Python, and JavaScript UDFs, but the handling of it is warehouse-specific. For SQL and Python UDFs on BigQuery, `volatility` is ignored and dbt displays a warning. For JavaScript UDFs on BigQuery, `deterministic` and `non-deterministic` are applied when creating the UDF; `stable` is not supported. In Snowflake, all supported volatility values are applied when creating the UDF. Refer to [volatility](/reference/resource-configs/volatility) for more information.
250250
:::
251251

252-
4. Run one of the following `dbt build` commands to build your UDFs and create them in the warehouse:
252+
3. Run one of the following `dbt build` commands to build your UDFs and create them in the warehouse:
253253

254254
Build all UDFs:
255255

@@ -422,7 +422,7 @@ Follow these steps to define UDFs in dbt:
422422
</TabItem>
423423
</Tabs>
424424
425-
5. Reference the UDF in a model using the `{{ function(...) }}` macro. For example:
425+
4. Reference the UDF in a model using the `{{ function(...) }}` macro. For example:
426426
427427
<File name="models/my_model.sql">
428428
@@ -436,7 +436,7 @@ Follow these steps to define UDFs in dbt:
436436
437437
When using [`--defer`](/reference/node-selection/defer), `function()` resolves to the existing UDF in the deferred environment (for example, production) if the function is not selected or not yet built in your target environment. This requires a state manifest specified using `--state` or an equivalent environment variable (such as `DBT_ENGINE_STATE`), which dbt uses to determine where to defer. This allows models that depend on UDFs to run successfully in [continuous integration](/docs/deploy/continuous-integration) and development workflows. For more information, refer to [Configure state selection](/reference/node-selection/configure-state).
438438
439-
6. Run `dbt compile` to see how the UDF is referenced. In the following example, the `{{ function('is_positive_int') }}` is replaced by the UDF name `udf_db.udf_schema.is_positive_int`.
439+
5. Run `dbt compile` to see how the UDF is referenced. In the following example, the `{{ function('is_positive_int') }}` is replaced by the UDF name `udf_db.udf_schema.is_positive_int`.
440440
441441
<File name="models/my_model.sql">
442442

0 commit comments

Comments
 (0)