Cmdlets for Databricks

Build 21.0.7930

Invoke-Databricks Cmdlet

Parameters   Output Objects  

Searches and updates Databricks data.

Syntax

Invoke-Databricks [parameters]

Remarks

The Invoke-Databricks cmdlet allows you to use SQL statements to execute any SQL statement directly. Below is the syntax for a parameterized query:

$query = Invoke-Databricks -Connection $connection -Query 'SELECT * FROM [CData].[Sample].Customers WHERE Country=@Country' -Params @{'@Country'='US'}
This cmdlet is also useful for executing stored procedures. Use the EXEC keyword to call a stored procedure:
$query = Invoke-Databricks -Connection $connection -Query 'EXEC SearchSuppliers Country = @Country' -Params @{"US"}

Copyright (c) 2021 CData Software, Inc. - All rights reserved.
Build 21.0.7930