Github user rdblue commented on the issue:

    https://github.com/apache/spark/pull/15738
  
    The purpose of this is to ensure the same behavior as Hive so users can 
move to SparkSQL without rewriting queries. That's why I'm trying to keep 
behavior as close as possible to the behavior of Hive (and Spark 1.6.1).
    
    Session vars are kept in a different namespace, so collisions should not 
overwrite configs and session vars take precedence in Hive. Because we still 
use a Hive SessionState and pass some commands to Hive, I thought it was also 
important to store the hive variables in the session state like Hive would. 
That way any command that are passed to Hive that have variable references work 
as well.


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