itholic opened a new pull request, #38657:
URL: https://github.com/apache/spark/pull/38657

   ### What changes were proposed in this pull request?
   
   This PR proposes to improve the error message and test for 
`PYTHON_UDF_IN_ON_CLAUSE`
   
   ### Why are the changes needed?
   
   The current error message is not clear enough to let user understand the 
solve the problem.
   
   We can provide more information to improve the usability.
   
   Also, we should test the error class with `checkError` for better 
testability.
   
   ### Does this PR introduce _any_ user-facing change?
   
   The error message is improved with additional detailed information.
   
   From
   ```
   Python UDF in the ON clause of a <joinType> JOIN.
   ```
   
   To
   ```
   Python UDF in the ON clause of a <joinType> JOIN. In case of an INNNER JOIN 
consider rewriting to a CROSS JOIN with a WHERE clause.
   ```
   
   ### How was this patch tested?
   
   Manually tested for fixed test case.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to