Skip to content

Commit 6fb49b1

Browse files
authored
Add user agent in bigframes mode (#1152)
1 parent a83f6a4 commit 6fb49b1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: Features
2+
body: Add user agent in bigframes mode
3+
time: 2025-06-12T00:05:57.59845537Z
4+
custom:
5+
Author: jialuoo
6+
Issue: "1152"

dbt-bigquery/src/dbt/include/bigquery/macros/materializations/table.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ df.write \
143143
{% macro bigframes_write_table(compiled_code, target_relation) %}
144144
import bigframes.pandas as bpd
145145
bpd.options.compute.extra_query_labels["bigframes-dbt-api"] = "python-model-table"
146+
bpd.options.bigquery.application_name = f"dbt-bigquery-{{dbt_version}}"
146147
bpd.options.bigquery.ordering_mode = "partial"
147148
bpd.options.bigquery.project = "{{ target.project }}"
148149
{% if target.location %}

0 commit comments

Comments
 (0)