Skip to content
Snippets Groups Projects
Commit 4d286c90 authored by Davies Liu's avatar Davies Liu Committed by Herman van Hovell
Browse files

[SPARK-18589][SQL] Fix Python UDF accessing attributes from both side of join

PythonUDF is unevaluable, which can not be used inside a join condition, currently the optimizer will push a PythonUDF which accessing both side of join into the join condition, then the query will fail to plan.

This PR fix this issue by checking the expression is evaluable  or not before pushing it into Join.

Add a regression test.

Author: Davies Liu <davies@databricks.com>

Closes #16581 from davies/pyudf_join.
parent 482d361c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment