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

    https://github.com/apache/spark/pull/21240#discussion_r186264417
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/generators.scala
 ---
    @@ -222,6 +223,51 @@ case class Stack(children: Seq[Expression]) extends 
Generator {
       }
     }
     
    +/**
    + * Replicate the row based N times. N is specified as the first argument 
to the function.
    + * {{{
    + *   SELECT replicate_rows(2, "val1", "val2") ->
    + *   2  val1  val2
    + *   2  val1  val2
    + *  }}}
    + */
    +@ExpressionDescription(
    +usage = "_FUNC_(n, expr1, ..., exprk) - Replicates `expr1`, ..., `exprk` 
into `n` rows.",
    --- End diff --
    
    ```Replicates `n`, `expr1`, ..., `exprk` into `n` rows.```?


---

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

Reply via email to