Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Julek Sompolski authored and Julek Sompolski committed Sep 23, 2024
1 parent c85da41 commit c6bd03a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class QueryExecution(

def analyzed: LogicalPlan = lazyAnalyzed.get

private val lazyCommandExecuted = Lazy {
private val lazyCommandExecuted = LazyTry {
mode match {
case CommandExecutionMode.NON_ROOT => analyzed.mapChildren(eagerlyExecuteCommands)
case CommandExecutionMode.ALL => eagerlyExecuteCommands(analyzed)
Expand Down Expand Up @@ -240,7 +240,7 @@ class QueryExecution(
* Given QueryExecution is not a public class, end users are discouraged to use this: please
* use `Dataset.rdd` instead where conversion will be applied.
*/
def toRDD: RDD[InternalRow] = lazyToRdd.get
def toRdd: RDD[InternalRow] = lazyToRdd.get

/** Get the metrics observed during the execution of the query plan. */
def observedMetrics: Map[String, Row] = CollectMetricsExec.collect(executedPlan)
Expand Down

0 comments on commit c6bd03a

Please sign in to comment.