Skip to content

Commit

Permalink
Update set.md
Browse files Browse the repository at this point in the history
Added string example, It needs a single quote inside the double quote. to read a string. Otherwise, it was giving compilation error. Set is heavily used as a variable alternative.
  • Loading branch information
ameerulislam authored Sep 29, 2024
1 parent 711fc27 commit d092609
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions website/docs/reference/dbt-jinja-functions/set.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ __Args__:
{% do log(my_set) %} {# None #}
```

```
{% set email_id = "'[email protected]'" %}
```

### set_strict

The `set_strict` context method can be used to convert any iterable to a sequence of iterable elements that are unique (a set). The difference to the `set` context method is that the `set_strict` method will raise an exception on a `TypeError`, if the provided value is not a valid iterable and cannot be converted to a set.
Expand Down

0 comments on commit d092609

Please sign in to comment.