Github user mateiz commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1393#discussion_r14916107
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/recommendation/MatrixFactorizationModel.scala
 ---
    @@ -53,7 +53,7 @@ class MatrixFactorizationModel private[mllib] (
         * @param usersProducts  RDD of (user, product) pairs.
         * @return RDD of Ratings.
         */
    -  def predict(usersProducts: RDD[(Int, Int)]): RDD[Rating] = {
    +  def predict(usersProducts: RDD[(Long, Long)]): RDD[Rating] = {
    --- End diff --
    
    This is a breaking API change unfortunately, and because of type erasure, 
users who compiled against an old MLlib (passing RDD[(Int, Int)]) will have 
their code link against the new one and get a ClassCastException


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to