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

    https://github.com/apache/spark/pull/21021#discussion_r186037573
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala
 ---
    @@ -117,47 +118,16 @@ case class MapValues(child: Expression)
     }
     
     /**
    - * Sorts the input array in ascending / descending order according to the 
natural ordering of
    - * the array elements and returns it.
    + * Common base class for [[SortArray]] and [[ArraySort]].
      */
    -// scalastyle:off line.size.limit
    -@ExpressionDescription(
    -  usage = "_FUNC_(array[, ascendingOrder]) - Sorts the input array in 
ascending or descending order according to the natural ordering of the array 
elements.",
    -  examples = """
    -    Examples:
    -      > SELECT _FUNC_(array('b', 'd', 'c', 'a'), true);
    -       ["a","b","c","d"]
    -  """)
    -// scalastyle:on line.size.limit
    -case class SortArray(base: Expression, ascendingOrder: Expression)
    -  extends BinaryExpression with ExpectsInputTypes with CodegenFallback {
    -
    -  def this(e: Expression) = this(e, Literal(true))
    +trait ArraySortUtil extends ExpectsInputTypes {
    --- End diff --
    
    Sure, thank you for your review while it is a long-holiday week in Japan.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to