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

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


The following commit(s) were added to refs/heads/branch-3.4 by this push:
     new 54d1b625716 [SPARK-43006][PYSPARK] Fix typo in StorageLevel __eq__()
54d1b625716 is described below

commit 54d1b6257165385edfe7b0bff69d775218369b11
Author: thyecust <t...@mail.ecust.edu.cn>
AuthorDate: Mon Apr 3 08:26:00 2023 -0500

    [SPARK-43006][PYSPARK] Fix typo in StorageLevel __eq__()
    
    ### What changes were proposed in this pull request?
    
    fix `self.deserialized == self.deserialized` with `self.deserialized == 
other.deserialized`
    
    ### Why are the changes needed?
    
    The original expression is always True, which is likely to be a typo.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    No test added. Use GitHub Actions.
    
    Closes #40619 from thyecust/patch-1.
    
    Authored-by: thyecust <t...@mail.ecust.edu.cn>
    Signed-off-by: Sean Owen <sro...@gmail.com>
    (cherry picked from commit f57c3686a4fc5cf6c15442c116155b75d338a35d)
    Signed-off-by: Sean Owen <sro...@gmail.com>
---
 python/pyspark/storagelevel.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/pyspark/storagelevel.py b/python/pyspark/storagelevel.py
index c9a70fabdf7..dabc0d2717c 100644
--- a/python/pyspark/storagelevel.py
+++ b/python/pyspark/storagelevel.py
@@ -80,7 +80,7 @@ class StorageLevel:
             and self.useMemory == other.useMemory
             and self.useDisk == other.useDisk
             and self.useOffHeap == other.useOffHeap
-            and self.deserialized == self.deserialized
+            and self.deserialized == other.deserialized
             and self.replication == other.replication
         )
 


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

Reply via email to