Skip to contents

Collect query results with proper progress timing for Databricks

Usage

# S3 method for class 'DatabricksConnection'
db_collect(
  con,
  sql,
  n = -1,
  warn_incomplete = TRUE,
  show_progress = con@show_progress,
  ...
)

Arguments

con

A DatabricksConnection object

sql

SQL query to execute

n

Maximum number of rows to collect (-1 for all)

warn_incomplete

Whether to warn if results were truncated

show_progress

If TRUE, show progress updates during collection. Defaults to the connection's show_progress setting.

...

Additional arguments

Value

A data frame with query results