diff --git a/models/sources/model_executions.sql b/models/sources/model_executions.sql index fa57379f..5710affd 100644 --- a/models/sources/model_executions.sql +++ b/models/sources/model_executions.sql @@ -13,7 +13,7 @@ select cast(null as {{ type_float() }}) as total_node_runtime, cast(null as {{ type_int() }}) as rows_affected, {% if target.type == "bigquery" %} - , cast(null as {{ type_int() }}) as bytes_processed + cast(null as {{ type_int() }}) as bytes_processed, {% endif %} cast(null as {{ type_string() }}) as materialization, cast(null as {{ type_string() }}) as {% if target.type == "sqlserver" %} "schema" diff --git a/models/sources/seeds.sql b/models/sources/seeds.sql index 5a7b0162..882c661a 100644 --- a/models/sources/seeds.sql +++ b/models/sources/seeds.sql @@ -1,23 +1,23 @@ /* Bigquery won't let us `where` without `from` so we use this workaround */ -with - dummy_cte as ( - - select 1 as foo - - ) +with dummy_cte as (select 1 as foo) select - cast(null as {{ type_string() }}) as command_invocation_id - , cast(null as {{ type_string() }}) as node_id - , cast(null as {{ type_timestamp() }}) as run_started_at - , cast(null as {{ type_string() }}) as "database" - , cast(null as {{ type_string() }}) as "schema" - , cast(null as {{ type_string() }}) as name - , cast(null as {{ type_string() }}) as package_name - , cast(null as {{ type_string() }}) as path - , cast(null as {{ type_string() }}) as checksum - , cast(null as {{ type_json() }}) as meta - , cast(null as {{ type_string() }}) as alias - , cast(null as {{ type_json() }}) as all_results + cast(null as {{ type_string() }}) as command_invocation_id, + cast(null as {{ type_string() }}) as node_id, + cast(null as {{ type_timestamp() }}) as run_started_at, + cast(null as {{ type_string() }}) as {% if target.type == "sqlserver" %} "database" + {% else %} database + {% endif %}, + cast(null as {{ type_string() }}) as {% if target.type == "sqlserver" %} "schema" + {% else %} schema + {% endif %}, + cast(null as {{ type_string() }}) as name, + cast(null as {{ type_string() }}) as package_name, + cast(null as {{ type_string() }}) as path, + cast(null as {{ type_string() }}) as checksum, + cast(null as {{ type_json() }}) as meta, + cast(null as {{ type_string() }}) as alias, + cast(null as {{ type_json() }}) as all_results from dummy_cte where 1 = 0 +