Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
Azure Data CLI (
azdata
)
The following article provides reference for the sql commands in the azdata tool. For more information about other azdata commands, see azdata reference
Command | Description |
---|---|
azdata bdc spark statement list | List all the statements in the given Spark session. |
azdata bdc spark statement create | Create a new Spark statement in the given session. |
azdata bdc spark statement info | Get information about the requested statement in the given Spark session. |
azdata bdc spark statement cancel | Cancel a statement within the given Spark session. |
List all the statements in the given Spark session.
azdata bdc spark statement list --session-id -i
List all the session statements.
azdata spark statement list --session-id 0
Spark session ID number.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
This creates and executes a new statement in the given session. If the execute is quick the result contains the output from the execution. Otherwise the result can be retrieved using 'spark session info' after the statement is complete.
azdata bdc spark statement create --session-id -i
--code -c
Run a statement.
azdata spark statement create --session-id 0 --code "2+2"
Spark session ID number.
String containing code to execute as part of the statement.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
This gets the execution status and execution results if the statement has completed. The statement id is returned from 'spark statement create'.
azdata bdc spark statement info --session-id -i
--statement-id -s
Get statement info for session with ID of 0 and statement ID of 0.
azdata spark statement info --session-id 0 --statement-id 0
Spark session ID number.
Spark statement ID number within the given session ID.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
This cancels a statement within the given Spark session. The statement id is returned from 'spark statement create'.
azdata bdc spark statement cancel --session-id -i
--statement-id -s
Cancel a statement.
azdata spark statement cancel --session-id 0 --statement-id 0
Spark session ID number.
Spark statement ID number within the given session ID.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Output format. Allowed values: json, jsonc, table, tsv. Default: json.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
For more information about other azdata commands, see azdata reference.
For more information about how to install the azdata tool, see Install azdata.
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today