Skip to content

Commit

Permalink
include example of default in get_single_value
Browse files Browse the repository at this point in the history
  • Loading branch information
joellabes authored Apr 4, 2023
1 parent 8129160 commit 9507d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ This macro returns a single value from a sql query, so that you don't need to in
select max(created_at) from {{ ref('processed_orders') }}
{% endset %}
{%- set newest_processed_order = dbt_utils.get_single_value(sql_statement) -%}
{%- set newest_processed_order = dbt_utils.get_single_value(sql_statement, default="'2020-01-01'") -%}
select
Expand Down

0 comments on commit 9507d6b

Please sign in to comment.