This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 7686c37f705 [SPARK-40491][SQL] Remove too old TODO for JdbcRDD
7686c37f705 is described below

commit 7686c37f7057c41aeda84f32e073a5d8ac93bc8f
Author: Jiaan Geng <[email protected]>
AuthorDate: Wed Sep 21 11:24:45 2022 +0900

    [SPARK-40491][SQL] Remove too old TODO for JdbcRDD
    
    ### What changes were proposed in this pull request?
    According to the legacy document of `JdbcRDD`, we need to expose a jdbcRDD 
function in `SparkContext`.
    
    ### Why are the changes needed?
    The `jdbcRDD` function in `SparkContext` easy use for users.
    
    ### Does this PR introduce _any_ user-facing change?
    'No'.
    Just is a new API.
    
    ### How was this patch tested?
    New tests.
    
    Closes #37937 from beliefer/SPARK-40491.
    
    Authored-by: Jiaan Geng <[email protected]>
    Signed-off-by: Hyukjin Kwon <[email protected]>
---
 core/src/main/scala/org/apache/spark/rdd/JdbcRDD.scala | 1 -
 1 file changed, 1 deletion(-)

diff --git a/core/src/main/scala/org/apache/spark/rdd/JdbcRDD.scala 
b/core/src/main/scala/org/apache/spark/rdd/JdbcRDD.scala
index fccabcdd169..c41255491e9 100644
--- a/core/src/main/scala/org/apache/spark/rdd/JdbcRDD.scala
+++ b/core/src/main/scala/org/apache/spark/rdd/JdbcRDD.scala
@@ -32,7 +32,6 @@ private[spark] class JdbcPartition(idx: Int, val lower: Long, 
val upper: Long) e
   override def index: Int = idx
 }
 
-// TODO: Expose a jdbcRDD function in SparkContext and mark this as 
semi-private
 /**
  * An RDD that executes a SQL query on a JDBC connection and reads results.
  * For usage example, see test case JdbcRDDSuite.


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

Reply via email to