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

Unexpected commutative property of udf/pandas_udf and filters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.1
    • None
    • Optimizer, PySpark
    • None

    Description

      Hello all,
      When running the attached minmal working example in the attachments, the order of the filter and the UDF is swapped by the optimizer. This can lead to errors, which are difficult to debug. In the documentation I have found no reference to such behavior. 

      Is this a bug or a functionality which is poorly documented?

      With kind regards,
      Max

      Attachments

        1. optimization_udf_filter.html
          615 kB
          Maximilian Sackel
        2. screenshot-1.png
          95 kB
          Maximilian Sackel
        3. screenshot-2.png
          92 kB
          Maximilian Sackel

        Activity

          People

            Unassigned Unassigned
            msackel Maximilian Sackel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: