pathling_read_tables()
creates a data source from a set of Spark tables,
where the table names are the resource type codes.
pathling_read_tables(pc, schema = NULL)
The PathlingContext object.
An optional schema name that should be used to qualify the table names.
A DataSource object that can be used to run queries against the data.
Pathling documentation - Reading managed tables
Other data source functions:
pathling_read_bundles()
,
pathling_read_datasets()
,
pathling_read_delta()
,
pathling_read_ndjson()
,
pathling_read_parquet()
pc <- pathling_connect()
spark <- pathling_spark(pc)
data_source <- pc %>% pathling_read_tables()
data_source %>% ds_read('Patient') %>% sparklyr::sdf_nrow()
#> [1] 0
pathling_disconnect(pc)