Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for evalSQLFnNode (0.11 sec)

  1. internal/s3select/sql/funceval.go

    		return sqlFnTrim
    	case e.DateAdd != nil:
    		return sqlFnDateAdd
    	case e.DateDiff != nil:
    		return sqlFnDateDiff
    	default:
    		return ""
    	}
    }
    
    // evalSQLFnNode assumes that the FuncExpr is not an aggregation
    // function.
    func (e *FuncExpr) evalSQLFnNode(r Record, tableAlias string) (res *Value, err error) {
    	// Handle functions that have phrase arguments
    	switch e.getFunctionName() {
    	case sqlFnCast:
    		expr := e.Cast.Expr
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 13.2K bytes
    - Viewed (0)
  2. internal/s3select/sql/evaluate.go

    func (e *FuncExpr) evalNode(r Record, tableAlias string) (res *Value, err error) {
    	switch e.getFunctionName() {
    	case aggFnCount, aggFnAvg, aggFnMax, aggFnMin, aggFnSum:
    		return e.getAggregate()
    	default:
    		return e.evalSQLFnNode(r, tableAlias)
    	}
    }
    
    // evalNode on a literal value is independent of the node being an
    // aggregation or a row function - it always returns a value.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top