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

srowen 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 92d4563  [MINOR][SQL] Fix typo for config hint in SQLConf.scala
92d4563 is described below

commit 92d45631246e206bdc11f702972306b59f5beb15
Author: Bessenyei Balázs Donát <9086834+bes...@users.noreply.github.com>
AuthorDate: Sun Jul 18 15:33:26 2021 -0500

    [MINOR][SQL] Fix typo for config hint in SQLConf.scala
    
    ### What changes were proposed in this pull request?
    
    This PR fixes typo for 
`spark.sql.legacy.allowCreatingManagedTableUsingNonemptyLocation` in 
`SQLConf.scala`.
    
    ### Why are the changes needed?
    
    This is a [Broken windows 
theory](https://en.wikipedia.org/wiki/Broken_windows_theory) change.
    
    ### Does this PR introduce _any_ user-facing change?
    
    Yes, after merging this PR, the error message for commands such as
    ```python
    
spark.conf.set("spark.sql.legacy.allowCreatingManagedTableUsingNonemptyLocation",
 "true")
    ```
    , users will get a typo-free exception.
    
    ### How was this patch tested?
    
    This is a trivial change.
    
    Closes #33389 from bessbd/patch-1.
    
    Authored-by: Bessenyei Balázs Donát 
<9086834+bes...@users.noreply.github.com>
    Signed-off-by: Sean Owen <sro...@gmail.com>
---
 sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala 
b/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
index b9663bb..0add7f5 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
@@ -3437,7 +3437,7 @@ object SQLConf {
         "It was removed to prevent errors like SPARK-23173 for non-default 
value."),
       RemovedConfig(
         "spark.sql.legacy.allowCreatingManagedTableUsingNonemptyLocation", 
"3.0.0", "false",
-        "It was removed to prevent loosing of users data for non-default 
value."),
+        "It was removed to prevent loss of user data for non-default value."),
       RemovedConfig("spark.sql.legacy.compareDateTimestampInTimestamp", 
"3.0.0", "true",
         "It was removed to prevent errors like SPARK-23549 for non-default 
value."),
       RemovedConfig("spark.sql.parquet.int64AsTimestampMillis", "3.0.0", 
"false",

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

Reply via email to