Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ArgsList (0.2 sec)

  1. internal/s3select/sql/analysis.go

    			result.combine(arg.analyze(s))
    		}
    		return result
    
    	case sqlFnCharLength, sqlFnCharacterLength:
    		if len(e.SFunc.ArgsList) != 1 {
    			return qProp{err: fmt.Errorf("%s needs exactly 2 arguments", string(funcName))}
    		}
    		for _, arg := range e.SFunc.ArgsList {
    			result.combine(arg.analyze(s))
    		}
    		return result
    
    	case sqlFnLower, sqlFnUpper:
    		if len(e.SFunc.ArgsList) != 1 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  2. internal/s3select/sql/funceval.go

    	case sqlFnDateDiff:
    		return handleDateDiff(r, e.DateDiff, tableAlias)
    
    	}
    
    	// For all simple argument functions, we evaluate the arguments here
    	argVals := make([]*Value, len(e.SFunc.ArgsList))
    	for i, arg := range e.SFunc.ArgsList {
    		argVals[i], err = arg.evalNode(r, tableAlias)
    		if err != nil {
    			return nil, err
    		}
    	}
    
    	switch e.getFunctionName() {
    	case sqlFnCoalesce:
    		return coalesce(argVals)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 13.2K bytes
    - Viewed (0)
  3. internal/s3select/sql/aggregation.go

    			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
    		// record - in all such cases the aggregation is not
    		// updated.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  4. internal/s3select/sql/parser.go

    	FunctionName string `parser:" @(\"AVG\" | \"MAX\" | \"MIN\" | \"SUM\" |  \"COALESCE\" | \"NULLIF\" | \"TO_STRING\" | \"TO_TIMESTAMP\" | \"UTCNOW\" | \"CHAR_LENGTH\" | \"CHARACTER_LENGTH\" | \"LOWER\" | \"UPPER\") "`
    
    	ArgsList []*Expression `parser:"\"(\" (@@ (\",\" @@)*)?\")\""`
    }
    
    // CountFunc represents the COUNT sql function
    type CountFunc struct {
    	StarArg bool        `parser:" \"COUNT\" \"(\" ( @\"*\"?"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.9K bytes
    - Viewed (0)
Back to top