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

    https://github.com/apache/spark/pull/17028#discussion_r102676907
  
    --- Diff: 
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/aggregate/PercentileSuite.scala
 ---
    @@ -39,44 +38,44 @@ class PercentileSuite extends SparkFunSuite {
         val agg = new Percentile(BoundReference(0, IntegerType, true), 
Literal(0.5))
     
         // Check empty serialize and deserialize
    -    val buffer = new OpenHashMap[Number, Long]()
    +    val buffer = new OpenHashMap[AnyRef, Long]()
         assert(compareEquals(agg.deserialize(agg.serialize(buffer)), buffer))
     
         // Check non-empty buffer serializa and deserialize.
         data.foreach { key =>
    -      buffer.changeValue(key, 1L, _ + 1L)
    +      buffer.changeValue(new Integer(key), 1L, _ + 1L)
    --- End diff --
    
    If this boxing does not exist, it throws an exception below;
    ```
    [error] 
/Users/maropu/IdeaProjects/spark/spark-master/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/aggregate/Perc
    entileSuite.scala:46: the result type of an implicit conversion must be 
more specific than AnyRef
    ```


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to