Cmdlets for Databricks

Build 24.0.9060

Update-Databricks Cmdlet

Parameters   Output Objects  

Updates Databricks data.

Syntax

Update-Databricks [parameters]

Remarks

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

$conn = Connect-Databricks -Server "127.0.0.1" -HTTPPath "MyHTTPPath"" -User "MyUser" -Token "MyToken"
Update-Databricks -Connection $conn -Table "[CData].[Sample].Customers" -Columns @("CompanyName") -Values @("Jon Deere") -Id "22"
The Where parameter can also be used to specify the primary key of the table:
Update-Databricks -Connection $conn -Table "[CData].[Sample].Customers" -Columns @("CompanyName") -Values @("Jon Deere") -Where "_id = '22'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Databricks -Connection $conn -Table [CData].[Sample].Customers -Where "Country = 'US'" | Update-Databricks -Columns @("Country") -Values @("US 2")

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