- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for evalInNode (0.08 sec)
-
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) -
internal/s3select/sql/funceval.go
q, err := d.Quantity.evalNode(r, tableAlias) if err != nil { return nil, err } inferTypeForArithOp(q) qty, ok := q.ToFloat() if !ok { return nil, fmt.Errorf("QUANTITY must be a numeric argument to %s()", sqlFnDateAdd) } ts, err := d.Timestamp.evalNode(r, tableAlias) if err != nil { return nil, err }
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/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) -
internal/s3select/sql/aggregation.go
if e.Count.StarArg { // Handle COUNT(*) 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
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Dec 23 07:19:11 UTC 2023 - 7.9K bytes - Viewed (0)