Github user viirya commented on a diff in the pull request: https://github.com/apache/spark/pull/18419#discussion_r123928964 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/SQLExecution.scala --- @@ -118,4 +125,19 @@ object SQLExecution { sc.setLocalProperty(SQLExecution.EXECUTION_ID_KEY, oldExecutionId) } } + + /** + * Wrap an action which may have nested execution id. This method can be used to run an execution + * inside another execution, e.g., `CacheTableCommand` need to call `Dataset.collect`. + */ + def ignoreNestedExecutionId[T](sparkSession: SparkSession)(body: => T): T = { --- End diff -- Although we ignore nested execution id, the job stages and metrics created by the body here will still be recorded into the `SQLExecutionUIData` referred by the current execution id. But looks it should be fine.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org