-
Notifications
You must be signed in to change notification settings - Fork 444
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
[GLUTEN-7068][CORE] Fix issue updating leaf input metrics #7067
Conversation
Thanks for opening a pull request! Could you open an issue for this pull request on Github Issues? https://github.com/apache/incubator-gluten/issues Then could you also rename commit message and pull request title in the following format?
See also: |
Run Gluten Clickhouse CI |
c8c1d4c
to
a3388f6
Compare
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
cc @zhztheplayer @ulysses-you can you please review? 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.
Thank you for catching. Just some nits.
val leavesBuffer = new ArrayBuffer[TransformSupport]() | ||
collectTransformSupportLeaves(child, leavesBuffer) | ||
val leavesMetricsUpdater = leavesBuffer.map(_.metricsUpdater()) |
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.
nit: leafBuffer
and leafMetricsUpdater
? As one should already know they are for leaves.
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.
Updated, thanks.
case t: TransformSupport if t.children.forall(!_.isInstanceOf[TransformSupport]) => true | ||
case _ => false | ||
private def leafInputMetricsUpdater(): InputMetricsWrapper => Unit = { | ||
def collectTransformSupportLeaves( |
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.
nit: Could rename to collectLeaves
? To simplify code.
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.
Sure, will update in next iteration.
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.
done
gluten-substrait/src/main/scala/org/apache/gluten/execution/WholeStageTransformer.scala
Outdated
Show resolved
Hide resolved
…oleStageTransformer.scala Co-authored-by: Hongze Zhang <[email protected]>
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
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!
Run Gluten Clickhouse CI |
late lgtm |
What changes were proposed in this pull request?
Fix issue #7068 collecting input metrics such as bytesRead and recordsRead from file scan.
How was this patch tested?
UT added.