Github user twdsilva commented on a diff in the pull request:
https://github.com/apache/phoenix/pull/417#discussion_r243703928
--- Diff:
phoenix-core/src/main/java/org/apache/phoenix/compile/OrderByCompiler.java ---
@@ -88,7 +88,8 @@ public static OrderBy compile(StatementContext context,
Integer offset,
RowProjector rowProjector,
TupleProjector tupleProjector,
- boolean isInRowKeyOrder) throws
SQLException {
+ boolean isInRowKeyOrder,
+ Expression whereExpression) throws
SQLException {
--- End diff --
Can you explain why the whereExpression is needed?
---