@@ -16,37 +16,37 @@ class DbApiOps(dialect: DialectTypeMappers) {
1616 * with gaps. If there is no ORDER BY clause, then all rows are considered peers and
1717 * this function always returns 1.
1818 */
19- def rank (): Expr [Int ] = Expr { implicit ctx => sql " RANK() " }
19+ def rank (): Expr [Int ] = Expr { _ => sql " RANK() " }
2020
2121 /**
2222 * The number of the row within the current partition. Rows are numbered starting
2323 * from 1 in the order defined by the ORDER BY clause in the window definition, or
2424 * in arbitrary order otherwise.
2525 */
26- def rowNumber (): Expr [Int ] = Expr { implicit ctx => sql " ROW_NUMBER() " }
26+ def rowNumber (): Expr [Int ] = Expr { _ => sql " ROW_NUMBER() " }
2727
2828 /**
2929 * The number of the current row's peer group within its partition - the rank of the
3030 * current row without gaps. Rows are numbered starting from 1 in the order defined
3131 * by the ORDER BY clause in the window definition. If there is no ORDER BY clause,
3232 * then all rows are considered peers and this function always returns 1.
3333 */
34- def denseRank (): Expr [Int ] = Expr { implicit ctx => sql " DENSE_RANK() " }
34+ def denseRank (): Expr [Int ] = Expr { _ => sql " DENSE_RANK() " }
3535
3636 /**
3737 * Despite the name, this function always returns a value between 0.0 and 1.0 equal to
3838 * (rank - 1)/(partition-rows - 1), where rank is the value returned by built-in window
3939 * function rank() and partition-rows is the total number of rows in the partition. If
4040 * the partition contains only one row, this function returns 0.0.
4141 */
42- def percentRank (): Expr [Double ] = Expr { implicit ctx => sql " PERCENT_RANK() " }
42+ def percentRank (): Expr [Double ] = Expr { _ => sql " PERCENT_RANK() " }
4343
4444 /**
4545 * The cumulative distribution. Calculated as row-number/partition-rows, where row-number
4646 * is the value returned by row_number() for the last peer in the group and partition-rows
4747 * the number of rows in the partition.
4848 */
49- def cumeDist (): Expr [Double ] = Expr { implicit ctx => sql " CUME_DIST() " }
49+ def cumeDist (): Expr [Double ] = Expr { _ => sql " CUME_DIST() " }
5050
5151 /**
5252 * Argument N is handled as an integer. This function divides the partition into N groups
@@ -55,7 +55,7 @@ class DbApiOps(dialect: DialectTypeMappers) {
5555 * groups occur first. This function returns the integer value assigned to the group that
5656 * the current row is a part of.
5757 */
58- def ntile (n : Int ): Expr [Int ] = Expr { implicit ctx => sql " NTILE( $n) " }
58+ def ntile (n : Int ): Expr [Int ] = Expr { _ => sql " NTILE( $n) " }
5959
6060 private def lagLead [T ](prefix : SqlStr , e : Expr [T ], offset : Int , default : Expr [T ]): Expr [T ] =
6161 Expr { implicit ctx =>
0 commit comments