Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for evalInNode (0.04 sec)

  1. internal/s3select/sql/statement.go

    // records have been processed. Applies only to aggregation queries.
    func (e *SelectStatement) AggregateResult(output Record) error {
    	for i, expr := range e.selectAST.Expression.Expressions {
    		v, err := expr.evalNode(nil, e.tableAlias)
    		if err != nil {
    			return err
    		}
    		if expr.As != "" {
    			output, err = output.Set(expr.As, v)
    		} else {
    			output, err = output.Set(fmt.Sprintf("_%d", i+1), v)
    		}
    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/sql/aggregation.go

    		if e.Count.StarArg {
    			// Handle COUNT(*)
    			e.aggregate.runningCount++
    			return nil
    		}
    
    		val, err = e.Count.ExprArg.evalNode(r, tableAlias)
    		if err != nil {
    			return err
    		}
    	} else {
    		// Evaluate the (only) argument
    		val, err = e.SFunc.ArgsList[0].evalNode(r, tableAlias)
    		if err != nil {
    			return err
    		}
    	}
    
    	if val.IsNull() {
    		// E.g. the column or field does not exist in the
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 7.9K bytes
    - Viewed (0)
Back to top