Skip to contents

If eager evaluation is enabled and the Spark object is a SparkDataFrame, evaluate the SparkDataFrame and print top rows of the SparkDataFrame, otherwise, print the class and type information of the Spark object.

Usage

# S4 method for Column
show(object)

# S4 method for GroupedData
show(object)

# S4 method for SparkDataFrame
show(object)

# S4 method for WindowSpec
show(object)

# S4 method for StreamingQuery
show(object)

Arguments

object

a Spark object. Can be a SparkDataFrame, Column, GroupedData, WindowSpec.

Note

show(Column) since 1.4.0

show(GroupedData) since 1.4.0

show(SparkDataFrame) since 1.4.0

show(WindowSpec) since 2.0.0

show(StreamingQuery) since 2.2.0

Examples

if (FALSE) {
sparkR.session()
path <- "path/to/file.json"
df <- read.json(path)
show(df)
}