You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2020/08/28 06:19:56 UTC

[spark] branch branch-3.0 updated: [SPARK-28612][SQL][FOLLOWUP] Correct method doc of DataFrameWriterV2.replace()

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

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


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 87327a2  [SPARK-28612][SQL][FOLLOWUP] Correct method doc of DataFrameWriterV2.replace()
87327a2 is described below

commit 87327a28fbceade366faf0877fcc8e728d822742
Author: Jungtaek Lim (HeartSaVioR) <ka...@gmail.com>
AuthorDate: Fri Aug 28 15:14:57 2020 +0900

    [SPARK-28612][SQL][FOLLOWUP] Correct method doc of DataFrameWriterV2.replace()
    
    ### What changes were proposed in this pull request?
    
    This patch corrects the method doc of DataFrameWriterV2.replace() which explanation of exception is described oppositely.
    
    ### Why are the changes needed?
    
    The method doc is incorrect.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Only doc change.
    
    Closes #29568 from HeartSaVioR/SPARK-28612-FOLLOWUP-fix-doc-nit.
    
    Authored-by: Jungtaek Lim (HeartSaVioR) <ka...@gmail.com>
    Signed-off-by: HyukjinKwon <gu...@apache.org>
    (cherry picked from commit 73bfed3633be4322ae2a56df1f382d4749cc87f2)
    Signed-off-by: HyukjinKwon <gu...@apache.org>
---
 sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriterV2.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriterV2.scala b/sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriterV2.scala
index 15ff7fa..87f3541 100644
--- a/sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriterV2.scala
+++ b/sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriterV2.scala
@@ -324,7 +324,7 @@ trait CreateTableWriter[T] extends WriteConfigMethods[CreateTableWriter[T]] {
    * [[org.apache.spark.sql.catalyst.analysis.CannotReplaceMissingTableException]].
    *
    * @throws org.apache.spark.sql.catalyst.analysis.CannotReplaceMissingTableException
-   *         If the table already exists
+   *         If the table does not exist
    */
   @throws(classOf[CannotReplaceMissingTableException])
   def replace(): Unit


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