You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2018/08/03 18:21:36 UTC
[GitHub] HanumathRao commented on a change in pull request #1417:
DRILL-6645: Transform TopN in Lateral Unnest pipeline to Sort and Limit.
HanumathRao commented on a change in pull request #1417: DRILL-6645: Transform TopN in Lateral Unnest pipeline to Sort and Limit.
URL: https://github.com/apache/drill/pull/1417#discussion_r207628346
##########
File path: exec/java-exec/src/main/java/org/apache/drill/exec/planner/physical/Prel.java
##########
@@ -56,7 +56,13 @@ public boolean useAbstractConvertersForConversion(RelTraitSet fromTraits,
SelectionVectorMode getEncoding();
boolean needsFinalColumnReordering();
- default Prel addImplicitRowIDCol(List<RelNode> children) {
+ /**
+ * If the operator is in Lateral/Unnest pipeline, then it generates a new operator which knows how to process
+ * the rows accordingly during execution.
+ * eg: TopNPrel -> SortPrel and LimitPrel
+ * Other operators like FilterPrel, ProjectPrel etc will add an implicit row id to the output.
+ */
+ default Prel getRelForLateralUnnestPipeline(List<RelNode> children) {
throw new UnsupportedOperationException("Adding Implicit RowID column is not supported for " +
Review comment:
changed the name of the function to prepareForLateralUnnestPipeline.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services