Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. internal/s3select/sql/statement.go

    				return nil, err
    			}
    		}
    		return []*Record{&input}, nil
    	}
    	return nil, errDataSource(errors.New("unexpected non JSON input"))
    }
    
    // IsAggregated returns if the statement involves SQL aggregation
    func (e *SelectStatement) IsAggregated() bool {
    	return e.selectQProp.isAggregation
    }
    
    // AggregateResult - returns the aggregated result after all input
    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

    	if !s3Select.Progress.Enabled {
    		getProgressFunc = nil
    	}
    	writer := newMessageWriter(w, getProgressFunc)
    
    	var outputQueue []sql.Record
    
    	// Create queue based on the type.
    	if s3Select.statement.IsAggregated() {
    		outputQueue = make([]sql.Record, 0, 1)
    	} else {
    		outputQueue = make([]sql.Record, 0, 100)
    	}
    	var err error
    	sendRecord := func() bool {
    		buf := bufPool.Get().(*bytes.Buffer)
    		buf.Reset()
    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