You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to limit the amount of RAM usage. passing a default maxRows option has no effect, the whole query is returned
How to reproduce
constoperation=awaitthis.session.executeStatement(`WITH numbers AS ( SELECT num FROM (SELECT EXPLODE(SEQUENCE(1, 100)) AS num) AS seq)SELECT numFROM numbersORDER BY RAND()`,{maxRows: 10},);constfetched=awaitoperation.fetchAll();console.log(fetched.length);
You will notice here that fetched has a size of 100, not 10.
Hi @quadristan! Your question is a duplicate of #86 and #155 - please read it. In short - maxRows in executeStatement is related to direct results feature and provides a hint to server about how much data it can return immediately
Version
I am using the 1.8.4 version
Description
We want to limit the amount of RAM usage. passing a default maxRows option has no effect, the whole query is returned
How to reproduce
You will notice here that fetched has a size of 100, not 10.
Workaround
The workaround is to use
fetchChunk
instead:Please deprecate or fix
maxRows
options for theexecuteStatement
method of the session objectThe text was updated successfully, but these errors were encountered: