Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for EvalFrom (0.1 sec)

  1. internal/s3select/sql/statement.go

    	default:
    		r := int64(*v.Int)
    		if r < 0 {
    			return -1, errBadLimitSpecified
    		}
    		return r, nil
    	}
    }
    
    // EvalFrom evaluates the From clause on the input record. It only
    // applies to JSON input data format (currently).
    func (e *SelectStatement) EvalFrom(format string, input Record) ([]*Record, error) {
    	if !e.selectAST.From.HasKeypath() {
    		return []*Record{&input}, nil
    	}
    	_, rawVal := input.Raw()
    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 err = writer.Finish(s3Select.getProgress()); err != nil {
    				// FIXME: log this error.
    				err = nil
    			}
    			break
    		}
    
    		var inputRecords []*sql.Record
    		if inputRecords, err = s3Select.statement.EvalFrom(s3Select.Input.format, rec); err != nil {
    			break
    		}
    
    		for _, inputRecord := range inputRecords {
    			if s3Select.statement.IsAggregated() {
    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