In Spark structured streaming spark by default print metrics, But as per the documentation triggerExecution must be the total time spent on execution of a whole bat