Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

class BigQueryConnectionProperties(DataSourceConnectionProperties, ABC):
project_id: Optional[str] = Field(None, description="BigQuery project ID")
storage_project_id: Optional[str] = Field(None, description="BigQuery storage project ID")
location: Optional[str] = Field(None, description="BigQuery location")
client_options: Optional[dict] = Field(None, description="Client options")
labels: Optional[dict] = Field({}, description="Labels")
Expand Down Expand Up @@ -117,6 +118,10 @@ def _apply_optional_params(self, config: BigQueryConnectionProperties):
self.location = config.location
self.client_options = config.client_options

# Storage project ID is currently not used, because the project is configured via the DQN in the data contract.
# When we implement discovery, we'll need to use this value.
self.storage_project_id = config.storage_project_id if config.storage_project_id else self.project_id

self.labels = config.labels

def _create_connection(
Expand Down