Repository: spark Updated Branches: refs/heads/master f6ecf1433 -> be86268eb
[SPARK-12349][SPARK-12349][ML] Fix typo in Spark version regex introduced in / PR 10327 Sorry jkbradley Ref: https://github.com/apache/spark/pull/10327#discussion_r48502942 Author: Sean Owen <[email protected]> Closes #10508 from srowen/SPARK-12349.2. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/be86268e Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/be86268e Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/be86268e Branch: refs/heads/master Commit: be86268eb54e3fa0a9ce7a07359b3e67731ed8b5 Parents: f6ecf14 Author: Sean Owen <[email protected]> Authored: Tue Dec 29 16:32:26 2015 -0800 Committer: Joseph K. Bradley <[email protected]> Committed: Tue Dec 29 16:32:26 2015 -0800 ---------------------------------------------------------------------- mllib/src/main/scala/org/apache/spark/ml/feature/PCA.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/be86268e/mllib/src/main/scala/org/apache/spark/ml/feature/PCA.scala ---------------------------------------------------------------------- diff --git a/mllib/src/main/scala/org/apache/spark/ml/feature/PCA.scala b/mllib/src/main/scala/org/apache/spark/ml/feature/PCA.scala index 759be81..f653798 100644 --- a/mllib/src/main/scala/org/apache/spark/ml/feature/PCA.scala +++ b/mllib/src/main/scala/org/apache/spark/ml/feature/PCA.scala @@ -180,7 +180,7 @@ object PCAModel extends MLReadable[PCAModel] { val metadata = DefaultParamsReader.loadMetadata(path, sc, className) // explainedVariance field is not present in Spark <= 1.6 - val versionRegex = "([0-9]+)\\.([0-9])+.*".r + val versionRegex = "([0-9]+)\\.([0-9]+).*".r val hasExplainedVariance = metadata.sparkVersion match { case versionRegex(major, minor) => (major.toInt >= 2 || (major.toInt == 1 && minor.toInt > 6)) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
