You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "2010YOUY01 (via GitHub)" <gi...@apache.org> on 2025/12/22 04:11:45 UTC
[PR] feat: Add per-expression evaluation timing metrics to ProjectionExec [datafusion]
2010YOUY01 opened a new pull request, #19447:
URL: https://github.com/apache/datafusion/pull/19447
## Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
-->
Part of https://github.com/apache/datafusion/issues/18456
## Rationale for this change
<!--
Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.
-->
See issue for the rationale, this PR is implementing the 1st part of the issue.
Demo in `datafrusion-cli`
```
DataFusion CLI v51.0.0
> explain analyze select a+1, pow(a,2)
from generate_series(1,1000000) as t1(a);
+-------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| plan_type | plan |
+-------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Plan with Metrics | ProjectionExec: expr=[a@0 + 1 as t1.a + Int64(1), power(CAST(a@0 AS Float64), 2) as pow(t1.a,Int64(2))], metrics=[output_rows=1.00 M, elapsed_compute=32.37ms, output_bytes=15.3 MB, output_batches=123, expr_eval_time_0=8.27ms, expr_eval_time_1=23.82ms] |
| | RepartitionExec: partitioning=RoundRobinBatch(14), input_partitions=1, metrics=[output_rows=1.00 M, elapsed_compute=780.87µs, output_bytes=7.7 MB, output_batches=123, spill_count=0, spilled_bytes=0.0 B, spilled_rows=0, fetch_time=1.19ms, repartition_time=1ns, send_time=186.54µs] |
| | ProjectionExec: expr=[value@0 as a], metrics=[output_rows=1.00 M, elapsed_compute=148.62µs, output_bytes=7.7 MB, output_batches=123, expr_eval_time_0=4.12µs] |
| | LazyMemoryExec: partitions=1, batch_generators=[generate_series: start=1, end=1000000, batch_size=8192], metrics=[output_rows=1.00 M, elapsed_compute=1.01ms, output_bytes=7.7 MB, output_batches=123] |
| | |
+-------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row(s) fetched.
```
Each expressions' evaluation time are tracked individually in `expr_eval_time_*`. `expr_eval_time_0` is for `a+1`, and `expr_eval_time_1` is for `pow(a,2)`.
I chose number index because the pretty formatting for expressions are still a bit verbose now (like `[a@0 + 1 as t1.a + Int64(1)`)
## What changes are included in this PR?
<!--
There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR.
-->
1. Moved metrics module from `datafusion-execution` crate to `datafusion-physical-expr-common`. (I optimistically think it's enough to move to `execution` crate previously, however there are many execution utilities live in `physical-expr-common`, so we have to further move it down in the dependency tree)
2. Added a struct to hold each expression's evaluation time: `ExpressionEvaluatorMetrics`
3. Put `Option<ExpressionEvaluatorMetrics>` inside `Projector`, and change the execution accordingly.
## Are these changes tested?
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
4. Serve as another way to document the expected behavior of the code
If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
-->
Yes, added several slts
## Are there any user-facing changes?
No
<!--
If there are user-facing changes then we may require documentation to be updated before approving the PR.
-->
<!--
If there are any breaking changes to public APIs, please add the `api change` label.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: Add per-expression evaluation timing metrics to ProjectionExec [datafusion]
Posted by "xudong963 (via GitHub)" <gi...@apache.org>.
xudong963 merged PR #19447:
URL: https://github.com/apache/datafusion/pull/19447
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: Add per-expression evaluation timing metrics to ProjectionExec [datafusion]
Posted by "martin-g (via GitHub)" <gi...@apache.org>.
martin-g commented on code in PR #19447:
URL: https://github.com/apache/datafusion/pull/19447#discussion_r2641119846
##########
datafusion/physical-expr-common/src/metrics/expression.rs:
##########
@@ -0,0 +1,85 @@
+// 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.
+
+//! Metrics helpers for expression evaluation.
+
+use super::{ExecutionPlanMetricsSet, MetricBuilder, MetricType, ScopedTimerGuard, Time};
+
+/// Tracks evaluation time for a sequence of expressions.
+///
+/// # Example
+/// Given SQL query:
+/// EXPLAIN ANALYZE
+/// SELECT a+1, pow(a,2)
+/// FROM generate_series(1, 1000000) as t1(a)
+///
+/// This struct holds two time metrics for the projection expressions
+/// `a+1` and `pow(a,2)`, respectively.
+///
+/// The output reads:
+/// `ProjectionExec: expr=[a@0 + 1 as t1.a + Int64(1), power(CAST(a@0 AS Float64), 2) as pow(t1.a,Int64(2))], metrics=[... expr_0_eval_time=9.23ms, expr_1_eval_time=32.35ms...]`
+#[derive(Debug, Clone)]
+pub struct ExpressionEvaluatorMetrics {
+ expression_times: Vec<Time>,
+}
+
+impl ExpressionEvaluatorMetrics {
+ /// Create metrics for a collection of expressions.
+ ///
+ /// # Args
+ /// - expression_labels: unique identifier for each metric, so that the metric
Review Comment:
Items for the other args ?
##########
datafusion/physical-expr-common/src/metrics/expression.rs:
##########
@@ -0,0 +1,85 @@
+// 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.
+
+//! Metrics helpers for expression evaluation.
+
+use super::{ExecutionPlanMetricsSet, MetricBuilder, MetricType, ScopedTimerGuard, Time};
+
+/// Tracks evaluation time for a sequence of expressions.
+///
+/// # Example
+/// Given SQL query:
+/// EXPLAIN ANALYZE
+/// SELECT a+1, pow(a,2)
+/// FROM generate_series(1, 1000000) as t1(a)
+///
+/// This struct holds two time metrics for the projection expressions
+/// `a+1` and `pow(a,2)`, respectively.
+///
+/// The output reads:
+/// `ProjectionExec: expr=[a@0 + 1 as t1.a + Int64(1), power(CAST(a@0 AS Float64), 2) as pow(t1.a,Int64(2))], metrics=[... expr_0_eval_time=9.23ms, expr_1_eval_time=32.35ms...]`
+#[derive(Debug, Clone)]
+pub struct ExpressionEvaluatorMetrics {
+ expression_times: Vec<Time>,
+}
+
+impl ExpressionEvaluatorMetrics {
+ /// Create metrics for a collection of expressions.
+ ///
+ /// # Args
+ /// - expression_labels: unique identifier for each metric, so that the metric
+ /// can get aggregated across multiple partitions. It is not the name showed
+ /// in the `EXPLAIN ANALYZE`, the metric name will be `expr_{idx}_eval_time`
+ /// according to the expression order.
+ pub fn new<T>(
+ metrics: &ExecutionPlanMetricsSet,
+ partition: usize,
+ expression_labels: impl IntoIterator<Item = T>,
+ ) -> Self
+ where
+ T: Into<String>,
+ {
+ let expression_times = expression_labels
+ .into_iter()
+ .enumerate()
+ .map(|(idx, label)| {
+ MetricBuilder::new(metrics)
+ .with_new_label("expr", label.into())
+ .with_type(MetricType::DEV)
+ // Existing PhysicalExpr formatter is a bit verbose, so use simple name
+ .subset_time(format!("expr_{idx}_eval_time"), partition)
+ })
+ .collect();
+
+ Self { expression_times }
+ }
+
+ /// Returns a timer guard for the expression at `index`, if present.
+ pub fn scoped_timer(&self, index: usize) -> Option<ScopedTimerGuard<'_>> {
Review Comment:
```suggestion
#[inline]
pub fn scoped_timer(&self, index: usize) -> Option<ScopedTimerGuard<'_>> {
```
##########
datafusion/execution/src/lib.rs:
##########
@@ -32,7 +32,6 @@ pub mod cache;
pub mod config;
pub mod disk_manager;
pub mod memory_pool;
-pub mod metrics;
Review Comment:
> Are there any user-facing changes?
No
This actually is a user-facing removal of a public item.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: Add per-expression evaluation timing metrics to ProjectionExec [datafusion]
Posted by "2010YOUY01 (via GitHub)" <gi...@apache.org>.
2010YOUY01 commented on code in PR #19447:
URL: https://github.com/apache/datafusion/pull/19447#discussion_r2641748350
##########
datafusion/execution/src/lib.rs:
##########
@@ -32,7 +32,6 @@ pub mod cache;
pub mod config;
pub mod disk_manager;
pub mod memory_pool;
-pub mod metrics;
Review Comment:
Oh yeah, I forgot to mention this was moved in https://github.com/apache/datafusion/pull/19247, and hasn't went through any release, if we can make this PR before the next release, it wouldn't be a breaking change. Otherwise I will add the `API change` tag.
##########
datafusion/physical-expr-common/src/metrics/expression.rs:
##########
@@ -0,0 +1,85 @@
+// 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.
+
+//! Metrics helpers for expression evaluation.
+
+use super::{ExecutionPlanMetricsSet, MetricBuilder, MetricType, ScopedTimerGuard, Time};
+
+/// Tracks evaluation time for a sequence of expressions.
+///
+/// # Example
+/// Given SQL query:
+/// EXPLAIN ANALYZE
+/// SELECT a+1, pow(a,2)
+/// FROM generate_series(1, 1000000) as t1(a)
+///
+/// This struct holds two time metrics for the projection expressions
+/// `a+1` and `pow(a,2)`, respectively.
+///
+/// The output reads:
+/// `ProjectionExec: expr=[a@0 + 1 as t1.a + Int64(1), power(CAST(a@0 AS Float64), 2) as pow(t1.a,Int64(2))], metrics=[... expr_0_eval_time=9.23ms, expr_1_eval_time=32.35ms...]`
+#[derive(Debug, Clone)]
+pub struct ExpressionEvaluatorMetrics {
+ expression_times: Vec<Time>,
+}
+
+impl ExpressionEvaluatorMetrics {
+ /// Create metrics for a collection of expressions.
+ ///
+ /// # Args
+ /// - expression_labels: unique identifier for each metric, so that the metric
+ /// can get aggregated across multiple partitions. It is not the name showed
+ /// in the `EXPLAIN ANALYZE`, the metric name will be `expr_{idx}_eval_time`
+ /// according to the expression order.
+ pub fn new<T>(
+ metrics: &ExecutionPlanMetricsSet,
+ partition: usize,
+ expression_labels: impl IntoIterator<Item = T>,
+ ) -> Self
+ where
+ T: Into<String>,
+ {
+ let expression_times = expression_labels
+ .into_iter()
+ .enumerate()
+ .map(|(idx, label)| {
+ MetricBuilder::new(metrics)
+ .with_new_label("expr", label.into())
+ .with_type(MetricType::DEV)
+ // Existing PhysicalExpr formatter is a bit verbose, so use simple name
+ .subset_time(format!("expr_{idx}_eval_time"), partition)
+ })
+ .collect();
+
+ Self { expression_times }
+ }
+
+ /// Returns a timer guard for the expression at `index`, if present.
+ pub fn scoped_timer(&self, index: usize) -> Option<ScopedTimerGuard<'_>> {
Review Comment:
updated [a304cd8](https://github.com/apache/datafusion/pull/19447/commits/a304cd85d76c665cffecfef204c31477bc583087)
##########
datafusion/physical-expr-common/src/metrics/expression.rs:
##########
@@ -0,0 +1,85 @@
+// 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.
+
+//! Metrics helpers for expression evaluation.
+
+use super::{ExecutionPlanMetricsSet, MetricBuilder, MetricType, ScopedTimerGuard, Time};
+
+/// Tracks evaluation time for a sequence of expressions.
+///
+/// # Example
+/// Given SQL query:
+/// EXPLAIN ANALYZE
+/// SELECT a+1, pow(a,2)
+/// FROM generate_series(1, 1000000) as t1(a)
+///
+/// This struct holds two time metrics for the projection expressions
+/// `a+1` and `pow(a,2)`, respectively.
+///
+/// The output reads:
+/// `ProjectionExec: expr=[a@0 + 1 as t1.a + Int64(1), power(CAST(a@0 AS Float64), 2) as pow(t1.a,Int64(2))], metrics=[... expr_0_eval_time=9.23ms, expr_1_eval_time=32.35ms...]`
+#[derive(Debug, Clone)]
+pub struct ExpressionEvaluatorMetrics {
+ expression_times: Vec<Time>,
+}
+
+impl ExpressionEvaluatorMetrics {
+ /// Create metrics for a collection of expressions.
+ ///
+ /// # Args
+ /// - expression_labels: unique identifier for each metric, so that the metric
Review Comment:
updated [a304cd8](https://github.com/apache/datafusion/pull/19447/commits/a304cd85d76c665cffecfef204c31477bc583087), thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: Add per-expression evaluation timing metrics to ProjectionExec [datafusion]
Posted by "2010YOUY01 (via GitHub)" <gi...@apache.org>.
2010YOUY01 commented on code in PR #19447:
URL: https://github.com/apache/datafusion/pull/19447#discussion_r2639305638
##########
datafusion/physical-expr-common/src/metrics/expression.rs:
##########
@@ -0,0 +1,85 @@
+// 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.
+
+//! Metrics helpers for expression evaluation.
+
+use super::{ExecutionPlanMetricsSet, MetricBuilder, MetricType, ScopedTimerGuard, Time};
+
+/// Tracks evaluation time for a sequence of expressions.
+///
+/// # Example
+/// Given SQL query:
+/// EXPLAIN ANALYZE
+/// SELECT a+1, pow(a,2)
+/// FROM generate_series(1, 1000000) as t1(a)
+///
+/// This struct holds two time metrics for the projection expressions
+/// `a+1` and `pow(a,2)`, respectively.
+///
+/// The output reads:
+/// `ProjectionExec: expr=[a@0 + 1 as t1.a + Int64(1), power(CAST(a@0 AS Float64), 2) as pow(t1.a,Int64(2))], metrics=[... expr_eval_time_0=9.23ms, expr_eval_time_1=32.35ms...]`
+#[derive(Debug, Clone)]
+pub struct ExpressionEvaluatorMetrics {
+ expression_times: Vec<Time>,
+}
+
+impl ExpressionEvaluatorMetrics {
+ /// Create metrics for a collection of expressions.
+ ///
+ /// # Args
+ /// - expression_labels: unique identifier for each metric, so that the metric
+ /// can get aggregated across multiple partitions. It is not the name showed
+ /// in the `EXPLAIN ANALYZE`, the metric name will be `expr_eval_time_{idx}`
+ /// according to the expression order.
+ pub fn new<T>(
+ metrics: &ExecutionPlanMetricsSet,
+ partition: usize,
+ expression_labels: impl IntoIterator<Item = T>,
+ ) -> Self
+ where
+ T: Into<String>,
+ {
+ let expression_times = expression_labels
+ .into_iter()
+ .enumerate()
+ .map(|(idx, label)| {
+ MetricBuilder::new(metrics)
+ .with_new_label("expr", label.into())
+ .with_type(MetricType::DEV)
+ // Existing PhysicalExpr formatter is a bit verbose, so use simple name
+ .subset_time(format!("expr_eval_time_{idx}"), partition)
Review Comment:
[fe31656](https://github.com/apache/datafusion/pull/19447/commits/fe31656fc0e8d7f185a64a494ae2ff01157ed5d0) updated.
Indeed, it looks nicer.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: Add per-expression evaluation timing metrics to ProjectionExec [datafusion]
Posted by "xudong963 (via GitHub)" <gi...@apache.org>.
xudong963 commented on code in PR #19447:
URL: https://github.com/apache/datafusion/pull/19447#discussion_r2639194356
##########
datafusion/physical-expr-common/src/metrics/expression.rs:
##########
@@ -0,0 +1,85 @@
+// 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.
+
+//! Metrics helpers for expression evaluation.
+
+use super::{ExecutionPlanMetricsSet, MetricBuilder, MetricType, ScopedTimerGuard, Time};
+
+/// Tracks evaluation time for a sequence of expressions.
+///
+/// # Example
+/// Given SQL query:
+/// EXPLAIN ANALYZE
+/// SELECT a+1, pow(a,2)
+/// FROM generate_series(1, 1000000) as t1(a)
+///
+/// This struct holds two time metrics for the projection expressions
+/// `a+1` and `pow(a,2)`, respectively.
+///
+/// The output reads:
+/// `ProjectionExec: expr=[a@0 + 1 as t1.a + Int64(1), power(CAST(a@0 AS Float64), 2) as pow(t1.a,Int64(2))], metrics=[... expr_eval_time_0=9.23ms, expr_eval_time_1=32.35ms...]`
+#[derive(Debug, Clone)]
+pub struct ExpressionEvaluatorMetrics {
+ expression_times: Vec<Time>,
+}
+
+impl ExpressionEvaluatorMetrics {
+ /// Create metrics for a collection of expressions.
+ ///
+ /// # Args
+ /// - expression_labels: unique identifier for each metric, so that the metric
+ /// can get aggregated across multiple partitions. It is not the name showed
+ /// in the `EXPLAIN ANALYZE`, the metric name will be `expr_eval_time_{idx}`
+ /// according to the expression order.
+ pub fn new<T>(
+ metrics: &ExecutionPlanMetricsSet,
+ partition: usize,
+ expression_labels: impl IntoIterator<Item = T>,
+ ) -> Self
+ where
+ T: Into<String>,
+ {
+ let expression_times = expression_labels
+ .into_iter()
+ .enumerate()
+ .map(|(idx, label)| {
+ MetricBuilder::new(metrics)
+ .with_new_label("expr", label.into())
+ .with_type(MetricType::DEV)
+ // Existing PhysicalExpr formatter is a bit verbose, so use simple name
+ .subset_time(format!("expr_eval_time_{idx}"), partition)
Review Comment:
How about `expr_[idx]_eval_time`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org