pathling_read_tables {pathling}R Documentation

Create a data source from managed tables

Description

pathling_read_tables() creates a data source from a set of Spark tables, where the table names are the resource type codes.

Usage

pathling_read_tables(pc, schema = NULL)

Arguments

pc

The PathlingContext object.

schema

An optional schema name that should be used to qualify the table names.

Value

A DataSource object that can be used to run queries against the data.

See Also

Pathling documentation - Reading managed tables

Other data source functions: pathling_read_bundles(), pathling_read_datasets(), pathling_read_delta(), pathling_read_ndjson(), pathling_read_parquet()

Examples


pc <- pathling_connect()
spark <- pathling_spark(pc)
data_source <- pc %>% pathling_read_tables()
data_source %>% ds_read('Patient') %>% sparklyr::sdf_nrow()
pathling_disconnect(pc)


[Package pathling version 6.4.2 Index]