Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for LimitReached (0.05 sec)

  1. internal/s3select/sql/statement.go

    			return nil, err
    		}
    	}
    
    	// Update count of records output.
    	e.outputCount++
    
    	return output, nil
    }
    
    // LimitReached - returns true if the number of records output has
    // reached the value of the `LIMIT` clause.
    func (e *SelectStatement) LimitReached() bool {
    	if e.limitValue == -1 {
    		return false
    	}
    	return e.outputCount >= e.limitValue
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. internal/s3select/select.go

    			err = nil
    			bufPool.Put(buf)
    			return false
    		}
    		outputQueue = outputQueue[:0]
    		return true
    	}
    
    	var rec sql.Record
    OuterLoop:
    	for {
    		if s3Select.statement.LimitReached() {
    			if !sendRecord() {
    				break
    			}
    			if err = writer.Finish(s3Select.getProgress()); err != nil {
    				// FIXME: log this error.
    				err = nil
    			}
    			break
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top