You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/03/20 04:33:23 UTC

[GitHub] [spark] gatorsmile commented on a change in pull request #27839: [SPARK-31086][SQL] Add Back the Deprecated SQLContext methods

gatorsmile commented on a change in pull request #27839: [SPARK-31086][SQL] Add Back the Deprecated SQLContext methods
URL: https://github.com/apache/spark/pull/27839#discussion_r395435576
 
 

 ##########
 File path: sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala
 ##########
 @@ -611,6 +611,289 @@ class SQLContext private[sql](val sparkSession: SparkSession)
     sessionState.catalog.listTables(databaseName).map(_.table).toArray
   }
 
+  ////////////////////////////////////////////////////////////////////////////
+  ////////////////////////////////////////////////////////////////////////////
+  // Deprecated methods
+  ////////////////////////////////////////////////////////////////////////////
+  ////////////////////////////////////////////////////////////////////////////
+
+  /**
+   * @deprecated As of 1.3.0, replaced by `createDataFrame()`.
+   */
+  @deprecated("Use createDataFrame instead.", "1.3.0")
 
 Review comment:
   At least these Spark books are still using this API in their examples, although the first two claims they are updated using Spark 2.x
   
   - https://www.amazon.com/Mastering-Apache-Spark-2-x-DeepLearning4j/dp/1786462745/ref=sr_1_4?keywords=mastering+Apache+Spark&qid=1584678721&s=books&sr=1-4
   - https://www.manning.com/books/spark-in-action
   - http://shop.oreilly.com/product/0636920028512.do [first edition]
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org