Hi! Could someone point me to the open source logi...
# community-support
c
Hi! Could someone point me to the open source logic that determines writing dbt metadata to dbt_run_results in bigquery?
y
Hi Chris! The macro that uploads the dbt run results is called here, inside the on_run_end macro. Since there's no bigquery__insert_rows macro defined in the codebase, BigQuery automatically uses the default__insert_rows implementation. Please let me know if this answers your question!
c
@Yosef Arbiv thanks for answering are we able to add a macro called {% macro bigquery__insert_rows for custom logic? or we can't override elementary macros at all?
also more context, i'd like to split up inserting all into
dbt_run_results
because running into DML quota limits, something like dbt_run_results_a dbt_run_results_b depending on the table
y
Thanks for providing the context! I believe it should work aince dbt shares macros between libraries, but I haven't tried it myself. Let me know how it goes!
c
how can we change the table name that elementary writes to though? i think table_relation in this case refers to the dbt model that just executed vs the metadata table name
actually nvm i think table_relation is correct. let me give it a try
🔥 1