(e dag.Expr, o order.Which)
| 90 | } |
| 91 | |
| 92 | func sortKeyOfExpr(e dag.Expr, o order.Which) (order.SortKey, bool) { |
| 93 | key := fieldOf(e) |
| 94 | if key == nil { |
| 95 | return order.SortKey{}, false |
| 96 | } |
| 97 | return order.NewSortKey(o, key), true |
| 98 | } |
| 99 | |
| 100 | // isKeyOfAggregate returns true iff any of a's grouping keys is the |
| 101 | // same as the given primary-key sort order or an order-preserving function |
no test coverage detected