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

yumwang 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 d31718d6c70 [MINOR][CONNECT][PYTHON] Typo fixes
d31718d6c70 is described below

commit d31718d6c70fd7c7c49bd576e1afb044475f7882
Author: panbingkun <pbk1...@gmail.com>
AuthorDate: Sun Apr 16 08:29:37 2023 +0800

    [MINOR][CONNECT][PYTHON] Typo fixes
    
    ### What changes were proposed in this pull request?
    The pr aims to fix typos, include:
    - StrageLevel -> StorageLevel
    - DateFrame -> DataFrame
    
    ### Why are the changes needed?
    Fix typos
    
    ### Does this PR introduce _any_ user-facing change?
    No.
    
    ### How was this patch tested?
    Pass GA.
    
    Closes #40803 from panbingkun/minor_typo.
    
    Authored-by: panbingkun <pbk1...@gmail.com>
    Signed-off-by: Yuming Wang <yumw...@ebay.com>
---
 .../apache/spark/sql/connect/common/StorageLevelProtoConverter.scala    | 2 +-
 python/pyspark/sql/tests/test_arrow.py                                  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/connector/connect/common/src/main/scala/org/apache/spark/sql/connect/common/StorageLevelProtoConverter.scala
 
b/connector/connect/common/src/main/scala/org/apache/spark/sql/connect/common/StorageLevelProtoConverter.scala
index 7bf273843b5..11ac9595ff4 100644
--- 
a/connector/connect/common/src/main/scala/org/apache/spark/sql/connect/common/StorageLevelProtoConverter.scala
+++ 
b/connector/connect/common/src/main/scala/org/apache/spark/sql/connect/common/StorageLevelProtoConverter.scala
@@ -21,7 +21,7 @@ import org.apache.spark.connect.proto
 import org.apache.spark.storage.StorageLevel
 
 /**
- * Helper class for conversions between [[StrageLevel]] and 
[[proto.StorageLevel]].
+ * Helper class for conversions between [[StorageLevel]] and 
[[proto.StorageLevel]].
  */
 object StorageLevelProtoConverter {
   def toStorageLevel(sl: proto.StorageLevel): StorageLevel = {
diff --git a/python/pyspark/sql/tests/test_arrow.py 
b/python/pyspark/sql/tests/test_arrow.py
index 04aaa2b1c32..1c96273a22f 100644
--- a/python/pyspark/sql/tests/test_arrow.py
+++ b/python/pyspark/sql/tests/test_arrow.py
@@ -809,7 +809,7 @@ class ArrowTestsMixin:
         for case in cases:
             run_test(*case)
 
-    def test_createDateFrame_with_category_type(self):
+    def test_createDataFrame_with_category_type(self):
         pdf = pd.DataFrame({"A": ["a", "b", "c", "a"]})
         pdf["B"] = pdf["A"].astype("category")
         category_first_element = dict(enumerate(pdf["B"].cat.categories))[0]


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

Reply via email to