Skip to content
Snippets Groups Projects
  • Matthew Rocklin's avatar
    939a322c
    [SPARK-3417] Use new-style classes in PySpark · 939a322c
    Matthew Rocklin authored
    Tiny PR making SQLContext a new-style class.  This allows various type logic to work more effectively
    
    ```Python
    In [1]: import pyspark
    
    In [2]: pyspark.sql.SQLContext.mro()
    Out[2]: [pyspark.sql.SQLContext, object]
    ```
    
    Author: Matthew Rocklin <mrocklin@gmail.com>
    
    Closes #2288 from mrocklin/sqlcontext-new-style-class and squashes the following commits:
    
    4aadab6 [Matthew Rocklin] update other old-style classes
    a2dc02f [Matthew Rocklin] pyspark.sql.SQLContext is new-style class
    939a322c
    History
    [SPARK-3417] Use new-style classes in PySpark
    Matthew Rocklin authored
    Tiny PR making SQLContext a new-style class.  This allows various type logic to work more effectively
    
    ```Python
    In [1]: import pyspark
    
    In [2]: pyspark.sql.SQLContext.mro()
    Out[2]: [pyspark.sql.SQLContext, object]
    ```
    
    Author: Matthew Rocklin <mrocklin@gmail.com>
    
    Closes #2288 from mrocklin/sqlcontext-new-style-class and squashes the following commits:
    
    4aadab6 [Matthew Rocklin] update other old-style classes
    a2dc02f [Matthew Rocklin] pyspark.sql.SQLContext is new-style class