[YSQL] BNLJ with query LIMIT and size-based limit does not reset row limit after first request, resulting in extra RPCs #18708
Labels
area/ysql
Yugabyte SQL (YSQL)
kind/enhancement
This is an enhancement of an existing feature
priority/medium
Medium priority issue
Jira Link: DB-7610
Description
Query:
With row limit
The query has 4 requests: three for the outer table (10 + 1024 + 1024 rows), one for the inner table (10 rows). This works as expected.
With size limit
The query gives the plan:
Since there is no row limit set, the LIMIT passed down by the query is never overwritten by anything, and every request is sent with a 10 row limit. We sent 103 requests for 10 rows each, until we have enough to fill the batch size.
Warning: Please confirm that this issue does not contain any sensitive information
The text was updated successfully, but these errors were encountered: