Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

[NSE-791] fix xchg reuse in Spark321 #799

Merged
merged 2 commits into from
Mar 25, 2022

Conversation

zhouyuan
Copy link
Collaborator

@zhouyuan zhouyuan commented Mar 24, 2022

What changes were proposed in this pull request?

This patch fixed the xchg reuse in Spark 321.

Signed-off-by: Yuan Zhou yuan.zhou@intel.com

How was this patch tested?

pass jenkins

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
@github-actions
Copy link

#791

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
@zhouyuan zhouyuan changed the title [NSE-791] fix xchg reuse [NSE-791] fix xchg reuse in Spark321 Mar 25, 2022
@zhouyuan zhouyuan marked this pull request as ready for review March 25, 2022 02:24
@@ -389,7 +389,8 @@ case class ColumnarPostOverrides() extends Rule[SparkPlan] {
s" See above override in BroadcastQueryStageExec")
val localBroadcastXchg = broadcastQueryStageExec.plan.asInstanceOf[BroadcastExchangeExec]
val dataToArrowColumnar = localBroadcastXchg.child.asInstanceOf[DataToArrowColumnarExec]
ColumnarBroadcastExchangeExec(localBroadcastXchg.mode, dataToArrowColumnar)
//ColumnarBroadcastExchangeExec(localBroadcastXchg.mode, dataToArrowColumnar)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This removed unnecessary DataToArrowColumnar and ColumnarBroadcastExchange

// and reuse the existing stage found in the `stageCache`, otherwise update the
// `stageCache` with the new stage.
val queryStage = context.stageCache.getOrElseUpdate(
e.canonicalized, newStage)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

partially revert Spark change on exchange key

@zhouyuan zhouyuan merged commit 8027a18 into oap-project:master Mar 25, 2022
zhouyuan added a commit to zhouyuan/native-sql-engine that referenced this pull request Mar 28, 2022
* fix xchg reuse

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>

* move to spark321 shim layer

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
zhouyuan added a commit that referenced this pull request Mar 28, 2022
* [NSE-791] fix xchg reuse in Spark321 (#799)

* fix xchg reuse

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>

* move to spark321 shim layer

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>

* Fix count() with decimal value (#802)

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
@weiting-chen weiting-chen added the bug Something isn't working label Apr 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants