spark_read_table: Read a Spark Managed Table

Description Usage Arguments Value Examples

View source: R/read-write.R

Description

a shortcut function to read a Spark-managed table directly from the hive metastore without have to write any SQL. This is not a feature in Spark's Scala or Python API.

Usage

1

Arguments

table

string, the name of the table to read

Value

a spark_tbl

Examples

1
2
3
4
5
6
## Not run: 
spark_read_table("iris")
# same as
spark.sql("SELECT * FROM iris")

## End(Not run)

danzafar/tidyspark documentation built on Sept. 30, 2020, 12:19 p.m.