comphead commented on code in PR #1100:
URL: https://github.com/apache/datafusion-comet/pull/1100#discussion_r1849115188


##########
native/core/src/execution/jni_api.rs:
##########
@@ -335,20 +343,26 @@ pub unsafe extern "system" fn 
Java_org_apache_comet_Native_executePlan(
         // Because we don't know if input arrays are dictionary-encoded when 
we create
         // query plan, we need to defer stream initialization to first time 
execution.
         if exec_context.root_op.is_none() {
+            let start = Instant::now();
             let planner = 
PhysicalPlanner::new(Arc::clone(&exec_context.session_ctx))
                 .with_exec_id(exec_context_id);
             let (scans, root_op) = planner.create_plan(
                 &exec_context.spark_plan,
                 &mut exec_context.input_sources.clone(),
             )?;
+            let physical_plan_time = start.elapsed().as_millis() as usize;

Review Comment:
   wondering should we `info!` the planner 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to