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
@@ -891,7 +890,16 @@ class TForgetScriptExecutionOperationQueryActor : public TQueryBase {
891
890
}
892
891
MaxRowId = *maxRowId;
893
892
894
-
ClearTimeInfo();
893
+
if (MaxRowId >= NumberRowsInBatch) {
894
+
TStringBuilder message = TStringBuilder() << "Query result rows count is " << MaxRowId + 1;
895
+
if (*maxResultSetId > 0) {
896
+
message << " in " << *maxResultSetId + 1 << " result sets";
897
+
}
898
+
NYql::TIssue issue(message << ", that is larger than allowed limit " << MAX_NUMBER_ROWS_IN_BATCH << " rows for one time forget, results will be forgotten in the background process");
if (status.GetStatus() == NYdb::EStatus::CLIENT_DEADLINE_EXCEEDED) {
1766
-
// Wait until last forget is not finished
1767
-
Sleep(TDuration::Seconds(30));
1768
-
}
1759
+
constsize_t forgetRowsLimit = 100000;
1760
+
if (numberRows > forgetRowsLimit) {
1761
+
UNIT_ASSERT_STRING_CONTAINS(status.GetIssues().ToString(), TStringBuilder() << "Info: Query result rows count is " << numberRows << ", that is larger than allowed limit " << forgetRowsLimit << " rows for one time forget, results will be forgotten in the background process");
0 commit comments