mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
fix: SQL select to honor limits properly for array queries (#13568)
added tests to cover the scenarios as well.
This commit is contained in:
@@ -548,6 +548,17 @@ OuterLoop:
|
||||
}
|
||||
|
||||
outputQueue[len(outputQueue)-1] = outputRecord
|
||||
if s3Select.statement.LimitReached() {
|
||||
if !sendRecord() {
|
||||
break
|
||||
}
|
||||
if err = writer.Finish(s3Select.getProgress()); err != nil {
|
||||
// FIXME: log this error.
|
||||
err = nil
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
if len(outputQueue) < cap(outputQueue) {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user