Github user vijoshi commented on the issue:

    https://github.com/apache/spark/pull/17731
  
    @felixcheung yes. We need to support these two types of possibilities:
    
    ```
    #do not call sparkR.session() - followed by implicit reference to 
sparkSession
    a <- createDataFrame(iris)
    ```
    
    or
    
    ```
    #do not call sparkR.session() - followed by implicit reference to 
sparkContext
    doubled <- spark.lapply(1:10, function(x){2 * x})
    ```
    
    Internal implementations of APIs like `spark.lapply` directly look for the 
sparkContext so to account for these, the sparkContext needs to be friendly to 
being lazily initialized.


---
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