morrySnow commented on code in PR #10170:
URL: https://github.com/apache/doris/pull/10170#discussion_r994342637
##########
fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java:
##########
@@ -756,6 +763,79 @@ private void getScanRangeLocations() throws UserException {
LOG.debug("distribution prune cost: {} ms",
(System.currentTimeMillis() - start));
}
+ /**
+ * First, determine how many rows to sample from each partition according
to the number of partitions.
+ * Then determine the number of Tablets to be selected for each partition
according to the average number
+ * of rows of Tablet,
+ * If seek is not specified, the specified number of Tablets are
pseudo-randomly selected from each partition.
+ * If seek is specified, it will be selected sequentially from the seek
tablet of the partition.
+ * And add the manually specified Tablet id to the selected Tablet.
+ * simpleTabletNums = simpleRows / partitionNums / (partitionRows /
partitionTabletNums)
+ */
+ public void computeSampleTabletIds() {
+ if (desc.getSampleTabletIds() != null) {
Review Comment:
why not get sample info from TableRef dierctly?
--
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]