You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2022/10/07 05:58:00 UTC
[jira] [Resolved] (SPARK-40565) Non-deterministic filters shouldn't get pushed to V2 file sources
[ https://issues.apache.org/jira/browse/SPARK-40565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun resolved SPARK-40565.
-----------------------------------
Fix Version/s: 3.4.0
Resolution: Fixed
Issue resolved by pull request 38003
[https://github.com/apache/spark/pull/38003]
> Non-deterministic filters shouldn't get pushed to V2 file sources
> -----------------------------------------------------------------
>
> Key: SPARK-40565
> URL: https://issues.apache.org/jira/browse/SPARK-40565
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.3.0
> Reporter: Adam Binford
> Assignee: Adam Binford
> Priority: Major
> Fix For: 3.4.0
>
>
> 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}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org