Cmdlets for Apache Hive

Build 24.0.9060

Update-ApacheHive Cmdlet

Parameters   Output Objects  

Updates Apache Hive data.

Syntax

Update-ApacheHive [parameters]

Remarks

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

$conn = Connect-ApacheHive -Server "127.0.0.1" -Port "10000" -Transportmode "BINARY"
Update-ApacheHive -Connection $conn -Table "[CData].[Default].Customers" -Columns @("CompanyName") -Values @("John Deere") -Id "22"
The Where parameter can also be used to specify the primary key of the table:
Update-ApacheHive -Connection $conn -Table "[CData].[Default].Customers" -Columns @("CompanyName") -Values @("John Deere") -Where "_id = '22'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-ApacheHive -Connection $conn -Table [CData].[Default].Customers -Where "Country = 'US'" | Update-ApacheHive -Columns @("Country") -Values @("US 2")

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