- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ArgsList (0.06 sec)
-
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 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Dec 23 07:19:11 UTC 2023 - 8.5K bytes - Viewed (0) -
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)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 13.2K bytes - Viewed (0) -
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.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Dec 23 07:19:11 UTC 2023 - 7.9K bytes - Viewed (0) -
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\" \"(\" ( @\"*\"?"`
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 12.9K bytes - Viewed (0)