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

Deduplicate deterministic PythonUDF calls

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.1.0
    • Component/s: SQL
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: