Skip to content

Commit

Permalink
Fix contact validation failure on query data types change (#862) (#1083)
Browse files Browse the repository at this point in the history
* add current_timestamp to prevent empty query caching
* add changie log

(cherry picked from commit 1b8cae2)

Co-authored-by: Mykola Dementiev <[email protected]>
  • Loading branch information
mikealfare and dementiev27 authored Feb 1, 2024
1 parent 3a5e868 commit 3e3abb3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20230804-005817.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Fix contact validation failure on query data types change
time: 2023-08-04T00:58:17.97704+03:00
custom:
Author: dementiev27
Issue: "861"
10 changes: 10 additions & 0 deletions dbt/include/bigquery/macros/adapters/columns.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% macro bigquery__get_empty_subquery_sql(select_sql, select_sql_header=none) %}
{%- if select_sql_header is not none -%}
{{ select_sql_header }}
{%- endif -%}
select * from (
{{ select_sql }}
) as __dbt_sbq
where false and current_timestamp() = current_timestamp()
limit 0
{% endmacro %}

0 comments on commit 3e3abb3

Please sign in to comment.