FailedChanges

Summary

  1. [SPARK-25690][SQL] Analyzer rule HandleNullInputsForUDF does not (details)
Commit 368513048198efcee8c9a35678b608be0cb9ad48 by gatorsmile
[SPARK-25690][SQL] Analyzer rule HandleNullInputsForUDF does not
stabilize and can be applied infinitely
## What changes were proposed in this pull request?
The HandleNullInputsForUDF rule can generate new If node infinitely,
thus causing problems like match of SQL cache missed. This was fixed in
SPARK-24891 and was then broken by SPARK-25044. The unit test in
`AnalysisSuite` added in SPARK-24891 should have failed but didn't
because it wasn't properly updated after the `ScalaUDF` constructor
signature change. So this PR also updates the test accordingly based on
the new `ScalaUDF` constructor.
## How was this patch tested?
Updated the original UT. This should be justified as the original UT
became invalid after SPARK-25044.
Closes #22701 from maryannxue/spark-25690.
Authored-by: maryannxue <maryannxue@apache.org> Signed-off-by:
gatorsmile <gatorsmile@gmail.com>
The file was modifiedsql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala (diff)
The file was modifiedsql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/AnalysisSuite.scala (diff)