Why PlanNodeStats has different number of CpuWallTiming variables compare to OperatorStats #4104
-
DescriptionEach velox/velox/exec/PlanNodeStats.cpp Lines 46 to 48 in e4a2c99 Fine-grained metrics is important for some operator, for example, we could know the elapsed time for Agg to build hash table by I am curious about the design for this difference, and it would be great that using same number of timer in I would like to contribute a pr for this, if you agree this idea, thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
@mbasmanova would you help take a look? |
Beta Was this translation helpful? Give feedback.
-
Just moving the Issue to a Discussion to get more feedback. Other than Masha (she's off this week), maybe @xiaoxmeng @spershin @majetideepak @aditi-pandit could also give some feedback? |
Beta Was this translation helpful? Give feedback.
-
@Yohahaha In principle these finer grained stats might be useful, but over the years we haven't found this to be case. We also noticed that it difficult to use the stats if only fine-grained stats are available as we always found ourselves writing code to add them up. That said, I see no problem with keeping total stat (cpuWallTiming) and adding fine-grained stats. |
Beta Was this translation helpful? Give feedback.
@Yohahaha In principle these finer grained stats might be useful, but over the years we haven't found this to be case. We also noticed that it difficult to use the stats if only fine-grained stats are available as we always found ourselves writing code to add them up. That said, I see no problem with keeping total stat (cpuWallTiming) and adding fine-grained stats.