Cmdlets for Google BigQuery

Build 24.0.9060

Update-GoogleBigQuery Cmdlet

Parameters   Output Objects  

Updates Google BigQuery data.

Syntax

Update-GoogleBigQuery [parameters]

Remarks

The Update-GoogleBigQuery cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Google BigQuery data.

$conn = Connect-GoogleBigQuery -ProjectId 'NameOfProject' -DatasetId 'NameOfDataset'
Update-GoogleBigQuery -Connection $conn -Table "[publicdata].[samples].github_nested" -Columns @("repository.name") -Values @("EntityFramework") -Id "1"
The Where parameter can also be used to specify the primary key of the table:
Update-GoogleBigQuery -Connection $conn -Table "[publicdata].[samples].github_nested" -Columns @("repository.name") -Values @("EntityFramework") -Where "Id = '1'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-GoogleBigQuery -Connection $conn -Table [publicdata].[samples].github_nested -Where "repository.name = 'EntityFramework'" | Update-GoogleBigQuery -Columns @("repository.name") -Values @("EntityFramework 2")

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060