mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
S3 Select: Parsing tweaks (#8261)
* Don't output empty lines. * Trim whitespace from byte to int/float/bool conversions.
This commit is contained in:
committed by
Harshavardhana
parent
cb01516a26
commit
dac1cf5a9a
@@ -470,13 +470,15 @@ func (s3Select *S3Select) Evaluate(w http.ResponseWriter) {
|
||||
outputRecord = s3Select.outputRecord()
|
||||
outputQueue[len(outputQueue)-1] = outputRecord
|
||||
}
|
||||
if err = s3Select.statement.Eval(inputRecord, outputRecord); err != nil {
|
||||
break
|
||||
}
|
||||
if outputRecord == nil {
|
||||
var ok bool
|
||||
ok, err = s3Select.statement.Eval(inputRecord, outputRecord)
|
||||
if !ok || err != nil {
|
||||
// This should not be written.
|
||||
// Remove it from the queue.
|
||||
outputQueue = outputQueue[:len(outputQueue)-1]
|
||||
if err != nil {
|
||||
break
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user