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

[NSE-795] Fix a consecutive SMJ issue in wscg #798

Merged
merged 5 commits into from
Mar 28, 2022

Conversation

PHILO-HE
Copy link
Collaborator

It is not supported to have two or more SMJ consecutively executed in a whole stage code gen.

@github-actions
Copy link

#795

@PHILO-HE PHILO-HE force-pushed the spark3.2-smj-wscg branch from 70c8584 to 1ea3c17 Compare March 27, 2022 07:19
@PHILO-HE
Copy link
Collaborator Author

For a SMJ whose children are both SMJ, putting them into a wscg will lead to a native error (set dependency error). In this patch, I simply move the parent SMJ into the outside of wscg.

Capture

@PHILO-HE PHILO-HE changed the title [NSE-795] Fix SMJ issues in wscg [NSE-795] Fix a consecutive SMJ issue in wscg Mar 27, 2022
@PHILO-HE PHILO-HE force-pushed the spark3.2-smj-wscg branch from 4bd9475 to 8cd1282 Compare March 27, 2022 12:57
assert(ex.head.child.isInstanceOf[ColumnarBroadcastExchangeAdaptor])
// FIXME: ignore DPP xchg reuse
//assert(ex.nonEmpty)
//assert(ex.head.child.isInstanceOf[ColumnarBroadcastExchangeAdaptor])
Copy link
Collaborator

Choose a reason for hiding this comment

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

the tests are ignored until we fix the columnarSubqueryBoradcast gap

@PHILO-HE PHILO-HE force-pushed the spark3.2-smj-wscg branch from 7166b7d to c91cac0 Compare March 28, 2022 06:23
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
@zhouyuan zhouyuan merged commit 2557758 into oap-project:master Mar 28, 2022
zhouyuan added a commit to zhouyuan/native-sql-engine that referenced this pull request Mar 28, 2022
* Break whole stage code gen for consecutive SMJ

* Check optimized operation in wscg

* Add special handling for consecutive SMJ

* Undo a piece of code changes

* ignore DPP xchg reuse

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

Co-authored-by: Yuan Zhou <yuan.zhou@intel.com>
zhouyuan added a commit that referenced this pull request Mar 28, 2022
* Break whole stage code gen for consecutive SMJ

* Check optimized operation in wscg

* Add special handling for consecutive SMJ

* Undo a piece of code changes

* ignore DPP xchg reuse

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

Co-authored-by: Yuan Zhou <yuan.zhou@intel.com>

Co-authored-by: PHILO-HE <feilong.he@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.

3 participants