db_context_command_run_and_wait: Run a Command and Wait For Results

View source: R/execution-context.R

db_context_command_run_and_waitR Documentation

Run a Command and Wait For Results

Description

Run a Command and Wait For Results

Usage

db_context_command_run_and_wait(
  cluster_id,
  context_id,
  language = c("python", "sql", "scala", "r"),
  command = NULL,
  command_file = NULL,
  options = list(),
  parse_result = TRUE,
  host = db_host(),
  token = db_token()
)

Arguments

cluster_id

The ID of the cluster to create the context for.

context_id

The ID of the execution context.

language

The language for the context. One of python, sql, scala, r.

command

The command string to run.

command_file

The path to a file containing the command to run.

options

Named list of values used downstream. For example, a 'displayRowLimit' override (used in testing).

parse_result

Boolean, determines if results are parsed automatically.

host

Databricks workspace URL, defaults to calling db_host().

token

Databricks workspace token, defaults to calling db_token().

See Also

Other Execution Context API: db_context_command_cancel(), db_context_command_parse(), db_context_command_run(), db_context_command_status(), db_context_create(), db_context_destroy(), db_context_status()


brickster documentation built on April 12, 2025, 1:21 a.m.