SuccessChanges

Summary

  1. [SPARK-26315][PYSPARK] auto cast threshold from Integer to Float in (commit: 20558f7506acdcdc3d33239bdbf82718ab5cf106) (details)
Commit 20558f7506acdcdc3d33239bdbf82718ab5cf106 by sean.owen
[SPARK-26315][PYSPARK] auto cast threshold from Integer to Float in
approxSimilarityJoin of BucketedRandomProjectionLSHModel
## What changes were proposed in this pull request?
If the input parameter 'threshold' to the function approxSimilarityJoin
is not a float, we would get an exception.  The fix is to convert the
'threshold' into a float before calling the java implementation method.
## How was this patch tested?
Added a new test case.  Without this fix, the test will throw an
exception as reported in the JIRA. With the fix, the test passes.
Please review http://spark.apache.org/contributing.html before opening a
pull request.
Closes #23313 from jerryjch/SPARK-26315.
Authored-by: Jing Chen He <jinghe@us.ibm.com> Signed-off-by: Sean Owen
<sean.owen@databricks.com>
(cherry picked from commit 860f4497f2a59b21d455ec8bfad9ae15d2fd4d2e)
Signed-off-by: Sean Owen <sean.owen@databricks.com>
(commit: 20558f7506acdcdc3d33239bdbf82718ab5cf106)
The file was modifiedpython/pyspark/ml/feature.py (diff)