Ruifeng Zheng created SPARK-62404:
-------------------------------------

             Summary: Add StorageLevel.fromString to PySpark
                 Key: SPARK-62404
                 URL: https://issues.apache.org/jira/browse/SPARK-62404
             Project: Spark
          Issue Type: Improvement
          Components: PySpark
    Affects Versions: 5.0.0
            Reporter: Ruifeng Zheng


Scala provides StorageLevel.fromString, but PySpark currently has no 
corresponding method to create a StorageLevel from a name.

Add a static StorageLevel.fromString(name) method that accepts the same 13 
case-sensitive names as Scala, including NONE and the serialized and replicated 
variants. Return matching memory, disk, off-heap, serialization, and 
replication settings without requiring a JVM connection. Reject invalid names 
with a structured PySparkValueError.

Document the Scala/Python storage-level naming differences, include runnable 
examples, and add the method to the API reference. The new method is available 
starting in 4.5.0.




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to