Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33303

Deduplicate deterministic PythonUDF calls

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.0
    • SQL
    • None

    Description

      We run into an issue where a customer created a column with an expensive PythonUDF call and build a very complex logic on the the top of that column as new derived columns. Due to `CollapseProject` and `ExtractPythonUDFs` rules the UDF is called ~1000 times for each row which degraded the performance of the query significantly.

      The `ExtractPythonUDFs` rule could deduplicate deterministic UDFs so as to avoid performance degradation.

       

      Attachments

        Activity

          People

            petertoth Peter Toth
            petertoth Peter Toth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: