-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CORE] Simplify TransformSupport #3426
Conversation
Thanks for opening a pull request! Could you open an issue for this pull request on Github Issues? https://github.com/oap-project/gluten/issues Then could you also rename commit message and pull request title in the following format?
See also: |
Run Gluten Clickhouse CI |
1 similar comment
Run Gluten Clickhouse CI |
@@ -58,18 +65,14 @@ trait TransformSupport extends GlutenPlan { | |||
*/ | |||
def columnarInputRDDs: Seq[RDD[ColumnarBatch]] | |||
|
|||
def getBuildPlans: Seq[(SparkPlan, SparkPlan)] | |||
|
|||
def getStreamedLeafPlan: SparkPlan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two methods are from first initial commit, but it seems we never use them now. I'm not sure the original idea. cc @rui-mo @zhztheplayer @PHILO-HE @zzcclp if you have some context
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's some legacy code copied from Gazelle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. It looks good to me to remove them from the code.
s"${this.getClass.getSimpleName} doesn't support doExecute") | ||
} | ||
|
||
final override lazy val supportsColumnar: Boolean = GlutenConfig.getConf.enableColumnarIterator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This config is NOT applicable to velox backend, as only columnar iterator is supported. @zzcclp, @baibaichen, is this config still workable for CH backend? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm +1 to remove this config if does not break CH backend
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@loneylee, could you please help confirm? Thanks!
Run Gluten Clickhouse CI |
1 similar comment
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
1 similar comment
Run Gluten Clickhouse CI |
/Benchmark Velox |
CC @JkSelf |
case _ => false | ||
} | ||
.map(_.asInstanceOf[TransformSupport].metricsUpdater()) | ||
.getOrElse(new NoopMetricsUpdater) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As NoopMetricsUpdater
doesn't do any specific thing, maybe, we can change NoopMetricsUpdater
from class
to object
type. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
nice clean up!
@@ -28,8 +28,7 @@ import java.util | |||
import scala.collection.JavaConverters._ | |||
|
|||
case class FilterExecTransformer(condition: Expression, child: SparkPlan) | |||
extends FilterExecTransformerBase(condition, child) | |||
with TransformSupport { | |||
extends FilterExecTransformerBase(condition, child) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FilterExecTransformerBase
already extends TransfromSupport
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
Run Gluten Clickhouse CI |
===== Performance report for TPCH SF2000 with Velox backend, for reference only ====
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks! Will merge the patch soon if no other review comment.
===== Performance report for TPCH SF2000 with Velox backend, for reference only ====
|
What changes were proposed in this pull request?
getBuildPlans
andgetStreamedLeafPlan
LeafTransformSupport
andUnaryTransformSupport
to simplifycolumnarInputRDDs
doExecute
andsupportsColumnar
toTransformSupport
COLUMNAR_ITERATOR_ENABLED
configHow was this patch tested?
Pass CI