Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18419#discussion_r124066988
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/SQLExecution.scala ---
    @@ -100,7 +105,9 @@ object SQLExecution {
           // all accumulator metrics will be 0. It will confuse people if we 
show them in Web UI.
           //
           // A real case is the `DataFrame.count` method.
    -      throw new IllegalArgumentException(s"$EXECUTION_ID_KEY is already 
set")
    +      throw new IllegalArgumentException(s"$EXECUTION_ID_KEY is already 
set, please wrap your " +
    --- End diff --
    
    `SQLExecution` is kind of a developer API, people who develop data source 
may need to call `ignoreNestedExecutionId` inside their data source 
implementation, as reading/writing data source will be run inside a command and 
they may hit the nested execution problem. What do you think?


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to