Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
[oap-native-sql] fix filter for sortOrder containing projection exprs (
Browse files Browse the repository at this point in the history
  • Loading branch information
rui-mo authored Jan 18, 2021
1 parent 6a8e413 commit f8826e3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ case class ColumnarSortExec(

/***********************************************************/
def getCodeGenSignature =
if (!sortOrder
.filter(
expr => bindReference(expr.child, child.output, true).isInstanceOf[BoundReference])
.isEmpty) {
if (sortOrder.exists(expr =>
bindReference(
ConverterUtils.getAttrFromExpr(expr.child), child.output, true)
.isInstanceOf[BoundReference])) {
ColumnarSorter.prebuild(
sortOrder,
child.output,
Expand Down

0 comments on commit f8826e3

Please sign in to comment.