You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by jk...@apache.org on 2015/12/30 01:32:31 UTC

spark git commit: [SPARK-12349][SPARK-12349][ML] Fix typo in Spark version regex introduced in / PR 10327

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 <so...@cloudera.com>

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 <so...@cloudera.com>
Authored: Tue Dec 29 16:32:26 2015 -0800
Committer: Joseph K. Bradley <jo...@databricks.com>
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: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org