Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-34629 Python type hints improvement
  3. SPARK-35015

Add type hints of pyspark.sql.column.* and pyspark.sql.types.*

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 3.1.2
    • None
    • PySpark
    • None

    Description

      python/pyspark/pandas/spark/functions.py:22: error: Module 'pyspark.sql.column' has no attribute '_to_java_column'
      python/pyspark/pandas/spark/functions.py:22: error: Module 'pyspark.sql.column' has no attribute '_to_seq'
      python/pyspark/pandas/spark/functions.py:22: error: Module 'pyspark.sql.column' has no attribute '_create_column_from_literal'

      python/pyspark/pandas/frame.py:6486: error: Module 'pyspark.sql.types' has no attribute '_parse_datatype_string'

       

      The error was found when enable the mypy work on pandas intergrations.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yikunkero Yikun Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: