Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getFunctionName (0.16 sec)

  1. internal/s3select/sql/funceval.go

    	errNonStringTrimArg  = errors.New("TRIM() received a non-string argument")
    	errNonTimestampArg   = errors.New("Expected a timestamp argument")
    )
    
    func (e *FuncExpr) getFunctionName() FuncName {
    	switch {
    	case e.SFunc != nil:
    		return FuncName(strings.ToUpper(e.SFunc.FunctionName))
    	case e.Count != nil:
    		return aggFnCount
    	case e.Cast != nil:
    		return sqlFnCast
    	case e.Substring != nil:
    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

    	case e.FuncCall != nil:
    		return e.FuncCall.evalNode(r, tableAlias)
    	}
    	return nil, errInvalidASTNode
    }
    
    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)
    	}
    }
    
    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