Skip to contents

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

Usage

explain(x, ...)

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

# S4 method for class '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) { # \dontrun{
sparkR.session()
path <- "path/to/file.json"
df <- read.json(path)
explain(df, TRUE)
} # }
if (FALSE)  explain(sq)  # \dontrun{}