Skip to content

Commit

Permalink
Overskriver dagens partisjon ved flere kjøringer samme dag
Browse files Browse the repository at this point in the history
Co-authored-by: Sivert Frang Lunsæter <sivert.frang.lunseter@nav.no>
  • Loading branch information
chsko and sivertflu committed Jul 3, 2024
1 parent 7676edb commit 5527002
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prod/federated-query-spaghet.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ resource "google_bigquery_data_transfer_config" "query_config" {
schedule = "every day 01:00"
destination_dataset_id = google_bigquery_dataset.spaghet_dataset.dataset_id
params = {
destination_table_name_template = "public_vedtaksperiode_venter"
write_disposition = "WRITE_APPEND"
destination_table_name_template = "public_vedtaksperiode_venter$${run_date}"
write_disposition = "WRITE_TRUNCATE"
query = "SELECT * FROM EXTERNAL_QUERY(\"tbd-prod-eacd.europe-north1.spaghet\", \"\"\"${file("./sql/vedtaksperiode_venter.sql")}\"\"\")"
}
}

0 comments on commit 5527002

Please sign in to comment.