View source: R/sql-query-execution.R
db_sql_exec_result | R Documentation |
Get SQL Query Results
db_sql_exec_result(
statement_id,
chunk_index,
host = db_host(),
token = db_token(),
perform_request = TRUE
)
statement_id |
String, query execution |
chunk_index |
Integer, chunk index to fetch result. Starts from |
host |
Databricks workspace URL, defaults to calling |
token |
Databricks workspace token, defaults to calling |
perform_request |
If |
After the statement execution has SUCCEEDED
, this request can be used to
fetch any chunk by index.
Whereas the first chunk with chunk_index = 0
is typically fetched with
db_sql_exec_result()
or db_sql_exec_status()
, this request can be used
to fetch subsequent chunks
The response structure is identical to the nested result element described
in the db_sql_exec_result()
request, and similarly includes the
next_chunk_index
and next_chunk_internal_link
fields for simple
iteration through the result set.
Read more on Databricks API docs
Other SQL Execution APIs:
db_sql_exec_cancel()
,
db_sql_exec_query()
,
db_sql_exec_status()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.