Skip to contents

Define a SQL query function to be executed within a task graph

Usage

delayed_sql(query, name = NULL, namespace = NULL)

Arguments

query

SQL query string – see vignette for examples

name

A display name for the query

namespace

If supplied, the TileDB-Cloud namespace to charge the query to. If omitted, a namespace can be applied at your top-level call to compute. If omitted there as well, your logged-in account's default namespace will be used.

Value

A task-graph node object on which you can later call compute. The return value from compute() will be the query result as a dataframe. Note that results will be strings, so numerical results will need to be explicitly cast as such.