关注 spark技术分享,
撸spark源码 玩spark最佳实践

explain Operator — Explaining Query Plan

explain Operator — Explaining Query Plan

  1. Calls explain with extended flag disabled

explain prints the logical and (with extended flag enabled) physical plans to the console.

Internally, explain creates a ExplainCommand runnable command with the logical plan and extended flag.

explain then executes the plan with ExplainCommand runnable command and collects the results that are printed out to the standard output.

Note

explain uses SparkSession to access the current SessionState to execute the plan.

For streaming Datasets, ExplainCommand command simply creates a IncrementalExecution for the SparkSession and the logical plan.

Note
For the purpose of explain, IncrementalExecution is created with the output mode Append, checkpoint location <unknown>, run id a random number, current batch id 0 and offset metadata empty. They do not really matter when explaining the load-part of a streaming query.
赞(0) 打赏
未经允许不得转载:spark技术分享 » explain Operator — Explaining Query Plan
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏