PartitionBy indicates to divide the query rows into groups by the given columns. Note that, standard SQL spec allows partition only by columns, and in order to use the "expression" version, use the PartitionByExpr.
(columns ...string)
| 2803 | // Note that, standard SQL spec allows partition only by columns, and in order to |
| 2804 | // use the "expression" version, use the PartitionByExpr. |
| 2805 | func (w *WindowBuilder) PartitionBy(columns ...string) *WindowBuilder { |
| 2806 | w.partition = func(b *Builder) { |
| 2807 | b.IdentComma(columns...) |
| 2808 | } |
| 2809 | return w |
| 2810 | } |
| 2811 | |
| 2812 | // PartitionExpr indicates to divide the query rows into groups by the given expression. |
| 2813 | func (w *WindowBuilder) PartitionExpr(x Querier) *WindowBuilder { |