Skip to content
  • Sean Owen's avatar
    6c695083
    [SPARK-22322][CORE] Update FutureAction for compatibility with Scala 2.12 Future · 6c695083
    Sean Owen authored
    ## What changes were proposed in this pull request?
    
    Scala 2.12's `Future` defines two new methods to implement, `transform` and `transformWith`. These can be implemented naturally in Spark's `FutureAction` extension and subclasses, but, only in terms of the new methods that don't exist in Scala 2.11. To support both at the same time, reflection is used to implement these.
    
    ## How was this patch tested?
    
    Existing tests.
    
    Author: Sean Owen <sowen@cloudera.com>
    
    Closes #19561 from srowen/SPARK-22322.
    6c695083
    [SPARK-22322][CORE] Update FutureAction for compatibility with Scala 2.12 Future
    Sean Owen authored
    ## What changes were proposed in this pull request?
    
    Scala 2.12's `Future` defines two new methods to implement, `transform` and `transformWith`. These can be implemented naturally in Spark's `FutureAction` extension and subclasses, but, only in terms of the new methods that don't exist in Scala 2.11. To support both at the same time, reflection is used to implement these.
    
    ## How was this patch tested?
    
    Existing tests.
    
    Author: Sean Owen <sowen@cloudera.com>
    
    Closes #19561 from srowen/SPARK-22322.
Loading