alamb commented on code in PR #4750:
URL: https://github.com/apache/arrow-datafusion/pull/4750#discussion_r1057918046
##########
datafusion/core/src/execution/context.rs:
##########
@@ -1055,9 +1039,12 @@ impl SessionContext {
Arc::new(TaskContext::from(self))
}
- /// Get a copy of the [`SessionState`] of this [`SessionContext`]
+ /// Snapshots the [`SessionState`] of this [`SessionContext`] setting the
+ /// `query_execution_start_time` to the current time
pub fn state(&self) -> SessionState {
- self.state.read().clone()
+ let mut state = self.state.read().clone();
+ state.execution_props.start_execution();
Review Comment:
This is a nice change 👍 make sense
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]