Skip to content

Commit cc60216

Browse files
author
Nam Nguyen
committed
add target model's database
1 parent 575c7b2 commit cc60216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: macros/common/generate_create_logs_query.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
select
3838
ddl as query
3939
from
40-
`{{ target_model.schema }}`.INFORMATION_SCHEMA.TABLES
40+
`{{ target_model.database }}`.`{{ target_model.schema }}`.INFORMATION_SCHEMA.TABLES
4141
WHERE
4242
table_name = '{{ target_model.name }}'
4343
and creation_time < timestamp_sub(current_timestamp(), interval {{ num_units }} {{ time_unit }})

0 commit comments

Comments
 (0)