Mingliang Zhu created SPARK-46487:
-------------------------------------

             Summary: Push down part of filter through aggregate with 
nondeterministic field
                 Key: SPARK-46487
                 URL: https://issues.apache.org/jira/browse/SPARK-46487
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.5.0
            Reporter: Mingliang Zhu


{code:java}
testRelation
    .groupBy($"a")($"a", Rand(10).as("rand"))
    .where($"a" > 5 && $"rand" > 5)
{code}
after optimize
{code:java}
testRelation
    .where($"a" > 5)
    .groupBy($"a")($"a", Rand(10).as("rand"))
    .where($"rand" > 5)
{code}




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to