Github user tdas commented on the pull request: https://github.com/apache/spark/pull/7321#issuecomment-120097912 @sarutak This code will not work because sc2 will throw an error that there cannot be two active sparkcontexts in the same JVM. @mengxr The point of getOrCreate is to get a SQLContext if one is already active, rather than creating a new SQLContext. If there isnt any active, then a new one will be started using the provided SparkContext.
--- 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