Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/13352#discussion_r64942596
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala ---
@@ -1178,8 +1176,9 @@ private[python] class PythonMLLibAPI extends
Serializable {
def getIndexedRows(indexedRowMatrix: IndexedRowMatrix): DataFrame = {
// We use DataFrames for serialization of IndexedRows to Python,
// so return a DataFrame.
- val sqlContext =
SQLContext.getOrCreate(indexedRowMatrix.rows.sparkContext)
- sqlContext.createDataFrame(indexedRowMatrix.rows)
+ val sc = indexedRowMatrix.rows.sparkContext
+ val spark = SparkSession.builder().config(sc.getConf).getOrCreate()
--- End diff --
there are a number of similar places
---
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]