File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
datafusion/src/physical_plan Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,14 +95,14 @@ impl ExecutionPlan for UnionExec {
9595 let baseline_metrics = BaselineMetrics :: new ( & self . metrics , partition) ;
9696 // record the tiny amount of work done in this function so
9797 // elapsed_compute is reported as non zero
98- let timer = baseline_metrics. elapsed_compute ( ) . timer ( ) ;
98+ let elapsed_compute = baseline_metrics. elapsed_compute ( ) . clone ( ) ;
99+ let _timer = elapsed_compute. timer ( ) ; // record on drop
99100
100101 // find partition to execute
101102 for input in self . inputs . iter ( ) {
102103 // Calculate whether partition belongs to the current partition
103104 if partition < input. output_partitioning ( ) . partition_count ( ) {
104105 let stream = input. execute ( partition) . await ?;
105- drop ( timer) ;
106106 return Ok ( Box :: pin ( ObservedStream :: new ( stream, baseline_metrics) ) ) ;
107107 } else {
108108 partition -= input. output_partitioning ( ) . partition_count ( ) ;
You can’t perform that action at this time.
0 commit comments