Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33054 Support interval type in PySpark
  3. SPARK-33055

Add support for CalendarIntervalType in PySpark schema

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 3.1.0
    • None
    • PySpark, SQL
    • None

    Description

      Queries resulting in interval types shouldn't fail in PySpark, i.e. the following

      from pyspark.sql.functions import current_timestamp                                                                                                                                  
      
      spark.range(1).select(current_timestamp() - current_timestamp())    
      

      should result in

      DataFrame[(current_timestamp() - current_timestamp()): interval]
      

      instead of ValueError.

      Attachments

        Activity

          People

            Unassigned Unassigned
            zero323 Maciej Szymkiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: