forked from oap-project/velox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OPPRO-242] Implement a workaround for Velox Anti join (oap-project#375)
- Loading branch information
Showing
18 changed files
with
727 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
...ends-clickhouse/src/main/scala/io/glutenproject/execution/CHHashJoinExecTransformer.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package io.glutenproject.execution | ||
|
||
import org.apache.spark.sql.catalyst.expressions._ | ||
import org.apache.spark.sql.catalyst.optimizer.BuildSide | ||
import org.apache.spark.sql.catalyst.plans._ | ||
import org.apache.spark.sql.execution.SparkPlan | ||
|
||
case class CHShuffledHashJoinExecTransformer(leftKeys: Seq[Expression], | ||
rightKeys: Seq[Expression], | ||
joinType: JoinType, | ||
buildSide: BuildSide, | ||
condition: Option[Expression], | ||
left: SparkPlan, | ||
right: SparkPlan) | ||
extends ShuffledHashJoinExecTransformer( | ||
leftKeys, rightKeys, joinType, buildSide, condition, left, right) { | ||
|
||
override protected def withNewChildrenInternal( | ||
newLeft: SparkPlan, newRight: SparkPlan): CHShuffledHashJoinExecTransformer = | ||
copy(left = newLeft, right = newRight) | ||
} | ||
|
||
case class CHBroadcastHashJoinExecTransformer(leftKeys: Seq[Expression], | ||
rightKeys: Seq[Expression], | ||
joinType: JoinType, | ||
buildSide: BuildSide, | ||
condition: Option[Expression], | ||
left: SparkPlan, | ||
right: SparkPlan, | ||
isNullAwareAntiJoin: Boolean = false) | ||
extends BroadcastHashJoinExecTransformer( | ||
leftKeys, rightKeys, joinType, buildSide, condition, left, right) { | ||
|
||
override protected def withNewChildrenInternal( | ||
newLeft: SparkPlan, newRight: SparkPlan): CHBroadcastHashJoinExecTransformer = | ||
copy(left = newLeft, right = newRight) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.