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

LocalTableScanExec

LocalTableScanExec Physical Operator

LocalTableScanExec is a leaf physical operator (i.e. no children) and producedAttributes being outputSet.

LocalTableScanExec is created when BasicOperators execution planning strategy resolves LocalRelation and Spark Structured Streaming’s MemoryPlan logical operators.

Tip
Read on MemoryPlan logical operator in the Spark Structured Streaming gitbook.

Table 1. LocalTableScanExec’s Performance Metrics
Key Name (in web UI) Description

numOutputRows

number of output rows

Note

It appears that when no Spark job is used to execute a LocalTableScanExec the numOutputRows metric is not displayed in the web UI.

When executed, LocalTableScanExec…​FIXME

spark sql LocalTableScanExec webui query details.png
Figure 1. LocalTableScanExec in web UI (Details for Query)
Table 2. LocalTableScanExec’s Internal Properties
Name Description

unsafeRows

Internal binary rows for…​FIXME

numParallelism

rdd

Executing Physical Operator (Generating RDD[InternalRow]) — doExecute Method

Note
doExecute is part of SparkPlan Contract to generate the runtime representation of a structured query as a distributed computation over internal binary rows on Apache Spark (i.e. RDD[InternalRow]).

doExecute…​FIXME

Creating LocalTableScanExec Instance

LocalTableScanExec takes the following when created:

赞(0) 打赏
未经允许不得转载:spark技术分享 » LocalTableScanExec
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

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

支付宝扫一扫打赏

微信扫一扫打赏