HyukjinKwon opened a new pull request #35410:
URL: https://github.com/apache/spark/pull/35410


   ### What changes were proposed in this pull request?
   
   This PR proposes to `SparkSession` within PySpark. This is a base work for 
respecting runtime configuration, etc. Currently, we rely on old deprecated 
`SQLContext` internally
   
   In addition, this PR also proposes to expose `DataFrame.sparkSession` like 
Scala API does.
   
   Lastly, it contained a bit of refactoring such as:
   - Move `SQLContext._conf` -> `SparkSession._jconf`..
   - Rename `rdd_array` to `df_array` at `DataFrame.randomSplit`.
   - Deprecate and warn `DataFrame.sql_ctx` and `DataFrame(..., sql_ctx)`.
   
   ### Why are the changes needed?
   
   - This is a base work for PySpark to respect runtime configuration.
   - To expose the same API layer as Scala API (`df.sparkSession`)
   - To avoid relaying on old `SQLContext`.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes.
   
   - Deprecate and warn `DataFrame.sql_ctx` and `DataFrame(..., sql_ctx)`.
   - New API `DataFrame.sparkSession`
   
   ### How was this patch tested?
   
   Existing test cases should cover them.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to