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)

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.

Examples

pc <- pathling_connect()
#> Warning: 2 arguments not used by format 'spark-3.5.3-bin-hadoop3'
spark <- pathling_spark(pc)
data_source <- pc %>% pathling_read_tables()
data_source %>% ds_read('Patient') %>% sparklyr::sdf_nrow()
#> [1] 0
pathling_disconnect(pc)