diff --git a/website/docs/docs/dbt-versions/core-upgrade/11-Older versions/upgrading-to-0-17-0.md b/website/docs/docs/dbt-versions/core-upgrade/11-Older versions/upgrading-to-0-17-0.md index adc6747310..b99466e7c9 100644 --- a/website/docs/docs/dbt-versions/core-upgrade/11-Older versions/upgrading-to-0-17-0.md +++ b/website/docs/docs/dbt-versions/core-upgrade/11-Older versions/upgrading-to-0-17-0.md @@ -248,8 +248,8 @@ BigQuery: **Core** - [`path:` selectors](/reference/node-selection/methods#the-path-method) -- [`--fail-fast`](/reference/commands/run#failing-fast) -- [as_text Jinja filter](/reference/dbt-jinja-functions/as_text) +- [`--fail-fast` command](/reference/commands/run#failing-fast) +- `as_text` Jinja filter: removed this defunct filter - [accessing nodes in the `graph` object](/reference/dbt-jinja-functions/graph) - [persist_docs](/reference/resource-configs/persist_docs) - [source properties](reference/source-properties) diff --git a/website/docs/reference/dbt-jinja-functions/as_text.md b/website/docs/reference/dbt-jinja-functions/as_text.md deleted file mode 100644 index 5c25147ee1..0000000000 --- a/website/docs/reference/dbt-jinja-functions/as_text.md +++ /dev/null @@ -1,59 +0,0 @@ ---- -title: "About as_text filter" -sidebar_label: "as_text" -id: "as_text" -description: "Use this filter to convert Jinja-compiled output back to text." ---- - -:::info - -Native rendering is not enabled by default. As such, the `as_text` filter has no functional effect. - -It is still possible to natively render specific values using the [`as_bool`](/reference/dbt-jinja-functions/as_bool), -[`as_number`](/reference/dbt-jinja-functions/as_number), and [`as_native`](/reference/dbt-jinja-functions/as_native) filters. - -::: - -The `as_text` Jinja filter will coerce Jinja-compiled output back to text. It -can be used in YAML rendering contexts where values _must_ be provided as -strings, rather than as the datatype that they look like. - - -### Usage - -In the example below, the `as_text` filter is used to assert that `''` is an -empty string. In a native rendering, `''` would be coerced to the Python -keyword `None`. This specification is necessary in `v0.17.0`, but it is not -useful or necessary in later versions of dbt. - - - -```yml -models: - - name: orders - columns: - - name: order_status - tests: - - accepted_values: - values: ['pending', 'shipped', "{{ '' | as_text }}"] - -``` - - - -As of `v0.17.1`, native rendering does not occur by default, and the `as_text` -specification is superfluous. - - - -```yml -models: - - name: orders - columns: - - name: order_status - tests: - - accepted_values: - values: ['pending', 'shipped', ''] -``` - - diff --git a/website/vercel.json b/website/vercel.json index f9dd018357..b662e1c214 100644 --- a/website/vercel.json +++ b/website/vercel.json @@ -3633,8 +3633,8 @@ "permanent": true }, { - "source": "/docs/writing-code-in-dbt/jinja-context/as_text", - "destination": "/reference/dbt-jinja-functions/as_text", + "source": "/reference/dbt-jinja-functions/as_text", + "destination": "/reference/dbt-jinja-functions", "permanent": true }, {