import org.apache.spark.sql.catalyst.plans.logical.HintInfo
val broadcastOff = HintInfo()
scala> println(broadcastOff.broadcast)
false
val broadcastOn = broadcastOff.copy(broadcast = true)
scala> println(broadcastOn)
(broadcast)
val broadcastOff = broadcastOn.resetForJoin
scala> println(broadcastOff.broadcast)
false
HintInfo
HintInfo
takes a single broadcast flag when created.
HintInfo
is created when:
-
Dataset.broadcast function is used
-
ResolveBroadcastHints
logical resolution rule is executed (and resolves UnresolvedHint logical operators) -
ResolvedHint and Statistics are created
-
InMemoryRelation
is requested for computeStats (when sizeInBytesStats is0
) -
HintInfo
is requested to resetForJoin
broadcast
is used to…FIXME
broadcast
is off (i.e. false
) by default.
resetForJoin
Method
resetForJoin(): HintInfo
resetForJoin
…FIXME
Note
|
resetForJoin is used when SizeInBytesOnlyStatsPlanVisitor is requested to visitIntersect and visitJoin.
|