Shire Aaron
05/11/2026, 6:37 AMcount(*) using StringBuilder.
However, the current HTTP controller drops such plans because of the hasAggregation() check:
https://github.com/StarRocks/starrocks/blob/c3df3ac17bcba154aa09a7d2518bb904f39b8078/fe/fe-core/src/main/java/com/starrocks/http/rest/TableQueryPlanAction.java#L249
Therefore, we use SELECT 1 FROM db.tbl to avoid transferring real table data, and thus avoid unnecessary I/O.
But since the bypass commit:
https://github.com/StarRocks/starrocks/commit/3fbe5184a16eca3cdad6416b05337767e2d7c285#diff-3be0bcdb0c3c5fe6415556cf49c7270d4fc2e2f071c0240145ce175a32a484e2L874
this constant slot no longer appears in the returned slots. Is this behavior expected?