Github user kunalkhamar commented on the issue:
https://github.com/apache/spark/pull/16826
@rxin
The change from `SessionState(SparkSession,parentSessionState)` to
`SessionState(SparkSession,SQLConf,SessionCatalog,...)` is mostly done. Still
have 4 failing tests (OOMs) and will create some more tests.
Also, currently `SparkSession` has-a `SessionState` and `SessionState`
has-a `SparkSession`. Investigating into removing the `SparkSession` reference
from inside `SessionState`. This would change the constructor from
`SessionState(SparkSession,SQLConf,SessionCatalog,...)`to
`SessionState(SQLConf,SessionCatalog,...)`.
There are fields inside `SessionState` that depend on `SparkSession`, e.g.
`Analyzer` and `QueryExecution`. But these can be created and passed in to
`SessionState` during creation. It seems we might be able to pull up all such
references to `SparkSession` to initialization (i.e. inside
`SessionState.apply`.) Same goes for `HiveSessionState`.
Any thoughts on this?
---
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]