Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. internal/s3select/sql/evaluate.go

    }
    
    func (e *PrimaryTerm) evalNode(r Record, tableAlias string) (res *Value, err error) {
    	switch {
    	case e.Value != nil:
    		return e.Value.evalNode(r)
    	case e.JPathExpr != nil:
    		return e.JPathExpr.evalNode(r, tableAlias)
    	case e.ListExpr != nil:
    		return e.ListExpr.evalNode(r, tableAlias)
    	case e.SubExpression != nil:
    		return e.SubExpression.evalNode(r, tableAlias)
    	case e.FuncCall != nil:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. 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)
Back to top