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

Non-deterministic filters shouldn't get pushed to V2 file sources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.4.0
    • SQL
    • None

    Description

      Currently non-deterministic filters can be pushed down to V2 file sources, which is different from V1 which prevents out non-deterministic filters from being pushed.

      Main consequences:

      • Things like doing a rand filter on a partition column will throw an exception:
        • IllegalArgumentException: requirement failed: Nondeterministic expression org.apache.spark.sql.catalyst.expressions.Rand should be initialized before eval.
      • Using a non-deterministic UDF to collect metrics via accumulators gets pushed down and gives the wrong metrics

      Attachments

        Activity

          People

            kimahriman Adam Binford
            kimahriman Adam Binford
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: