Github user tdas commented on the pull request:
https://github.com/apache/spark/pull/6006#issuecomment-100332361
@marmbrus Good you raised the question. @rxin and I had half-a-discussion
offline about it. Correct me if I am wrong but HiveContext is a superset of the
SQLContext in terms of functionality. So the last HiveContext created should
also be accessible through this interface. Since the SQLContext constructor
register itself with singleton, the HiveContext will also do the same. This
part made sense to me.
Going beyond that if you think there should also be a
HiveContext.getOrCreate, which would return the last instantiated HiveContext
(not SQLContext), I can add that too in this PR.
---
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]