Skip to content

Commit 064c2ab

Browse files
authored
Add where clause example (#623)
* Add where clause example - Provided example of optional where clause in get_columns_values * Update README.md
1 parent 6de034b commit 064c2ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@ This macro returns the unique values for a column in a given [relation](https://
628628
-- Returns the list sorted alphabetically
629629
{% set payment_methods = dbt_utils.get_column_values(
630630
table=ref('stg_payments'),
631+
where="payment_method = 'bank_transfer'",
631632
column='payment_method',
632633
order_by='payment_method'
633634
) %}

0 commit comments

Comments
 (0)