Jackie-Jiang commented on code in PR #11112:
URL: https://github.com/apache/pinot/pull/11112#discussion_r1263997923
##########
pinot-core/src/main/java/org/apache/pinot/core/operator/query/SelectionOnlyOperator.java:
##########
@@ -75,6 +75,8 @@ public SelectionOnlyOperator(IndexSegment indexSegment,
QueryContext queryContex
_dataSchema = new DataSchema(columnNames, columnDataTypes);
_numRowsToKeep = queryContext.getLimit();
+ // TODO(gortiz): I think this is incorrect. The
SelectionOperatorUtils.MAX_ROW_HOLDER_INITIAL_CAPACITY limit
+ // is not enforced later in getNextBlock
Review Comment:
We need to limit the initial list size because it might not be filled up. In
a lot of scenario `LIMIT` can be very large (could be Integer.MAX_VALUE)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]