Skip to content

Commit 1382a06

Browse files
committed
update logicalsort default constructor
Signed-off-by: Ritvi Bhatt <ribhatt@amazon.com>
1 parent 7f47364 commit 1382a06

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/src/main/java/org/opensearch/sql/planner/logical/LogicalSort.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ public class LogicalSort extends LogicalPlan {
2626
private final List<Pair<SortOption, Expression>> sortList;
2727

2828
public LogicalSort(LogicalPlan child, List<Pair<SortOption, Expression>> sortList) {
29-
super(Collections.singletonList(child));
30-
this.count = 0;
31-
this.sortList = sortList;
29+
this(child, 0, sortList);
3230
}
3331

3432
/** Constructor of LogicalSort. */

0 commit comments

Comments
 (0)