@@ -22,16 +22,26 @@ def __init__(
2222 * ,
2323 target : BaseTarget ,
2424 bigquery_conn_id : str = SQLMeshBigQueryHook .default_conn_name ,
25+ delegate_to : str | None = None ,
26+ impersonation_chain : str | t .Sequence [str ] | None = None ,
27+ location : t .Optional [str ] = None ,
2528 ** kwargs : t .Any ,
2629 ) -> None :
2730 super ().__init__ (** kwargs )
2831 self ._target = target
2932 self ._bigquery_conn_id = bigquery_conn_id
30- self ._hook_params = kwargs
33+ self ._delegate_to = delegate_to
34+ self ._impersonation_chain = impersonation_chain
35+ self ._location = location
3136
3237 def get_db_hook (self ) -> SQLMeshBigQueryHook :
3338 """Gets the BigQuery Hook which contains the DB API connection object"""
34- return SQLMeshBigQueryHook (self ._bigquery_conn_id , ** self ._hook_params )
39+ return SQLMeshBigQueryHook (
40+ self ._bigquery_conn_id ,
41+ delegate_to = self ._delegate_to ,
42+ impersonation_chain = self ._impersonation_chain ,
43+ location = self ._location ,
44+ )
3545
3646 def execute (self , context : Context ) -> None :
3747 """Executes the desired target against the configured BigQuery connection"""
0 commit comments