spark¶
In std/io/db/spark.
fn spark(*, table: String, url: String = "", url_env: String = "", token_env: String = "", order: List<String> = []) : Spark
The table table, qualified by catalog and schema where it holds dots,
behind the Spark SQL endpoint at url or at the address the
environment variable url_env holds, one of the two, as a Spark
transport; its parameters are the keys of the spark kind, each
written by name. token_env names the variable holding an access
token, where the endpoint asks for one. Rows are read in the order of
the columns order names, and as the table is scanned without them.
Constructing it opens no session.
A constructed table has no schema boundary: a row is read as Data, or
as the type an annotation names, and a declared record is written a
column per field, the table's rows replaced. Its columns, mode and
strictness are configured on a spark endpoint.