Learn R Programming

sparklyr (version 1.8.5)

sdf_sql: Spark DataFrame from SQL

Description

Defines a Spark DataFrame from a SQL query, useful to create Spark DataFrames without collecting the results immediately.

Usage

sdf_sql(sc, sql)

Arguments

sc

A spark_connection.

sql

a 'SQL' query used to generate a Spark DataFrame.