Skip to contents

Print the logical and physical Catalyst plans to the console for debugging.

Usage

explain(x, ...)

# S4 method for SparkDataFrame
explain(x, extended = FALSE)

# S4 method for StreamingQuery
explain(x, extended = FALSE)

Arguments

x

a SparkDataFrame or a StreamingQuery.

...

further arguments to be passed to or from other methods.

extended

Logical. If extended is FALSE, prints only the physical plan.

Note

explain since 1.4.0

explain(StreamingQuery) since 2.2.0

Examples

if (FALSE) {
sparkR.session()
path <- "path/to/file.json"
df <- read.json(path)
explain(df, TRUE)
}
if (FALSE)  explain(sq)