View source: R/sql-query-execution.R
db_sql_exec_and_wait | R Documentation |
Internal helper that executes a query and waits for completion. This separates the execution/polling logic from result fetching.
db_sql_exec_and_wait(
warehouse_id,
statement,
catalog = NULL,
schema = NULL,
parameters = NULL,
row_limit = NULL,
byte_limit = NULL,
wait_timeout = "0s",
disposition = c("EXTERNAL_LINKS", "INLINE"),
format = c("ARROW_STREAM", "JSON_ARRAY"),
host = db_host(),
token = db_token(),
show_progress = TRUE
)
warehouse_id |
String, ID of warehouse upon which to execute a statement. |
statement |
String, the SQL statement to execute. The statement can
optionally be parameterized, see |
catalog |
String, sets default catalog for statement execution, similar
to |
schema |
String, sets default schema for statement execution, similar
to |
parameters |
List of Named Lists, parameters to pass into a SQL statement containing parameter markers. A parameter consists of a name, a value, and optionally a type.
To represent a See docs for more details. |
row_limit |
Integer, applies the given row limit to the statement's
result set, but unlike the |
byte_limit |
Integer, applies the given byte limit to the statement's
result size. Byte counts are based on internal data representations and
might not match the final size in the requested format. If the result was
truncated due to the byte limit, then |
wait_timeout |
Initial wait timeout (default "30s") |
disposition |
One of |
format |
One of |
host |
Databricks workspace URL, defaults to calling |
token |
Databricks workspace token, defaults to calling |
Status response with manifest when query completes successfully
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.