- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for AndCondition (0.25 sec)
-
clause/where.go
func (where Where) Name() string { return "WHERE" } // Build build where clause func (where Where) Build(builder Builder) { if len(where.Exprs) == 1 { if andCondition, ok := where.Exprs[0].(AndConditions); ok { where.Exprs = andCondition.Exprs } } // Switch position if the first query expression is a single Or condition for idx, expr := range where.Exprs {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Apr 25 12:22:53 UTC 2024 - 5.1K bytes - Viewed (0) -
internal/s3select/sql/parser.go
Expression *Expression `parser:"@@"` As string `parser:"[ \"AS\" @Ident | \"AS\" @LitString ]"` } // Grammar for Expression // // Expression → AndCondition ("OR" AndCondition)* // AndCondition → Condition ("AND" Condition)* // Condition → "NOT" Condition | ConditionExpression // ConditionExpression → ValueExpression ("=" | "<>" | "<=" | ">=" | "<" | ">") ValueExpression
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 12.9K bytes - Viewed (0) -
internal/s3select/sql/analysis.go
return e.Expression.analyze(s) } func (e *Expression) analyze(s *Select) (result qProp) { for _, ac := range e.And { result.combine(ac.analyze(s)) } return } func (e *AndCondition) analyze(s *Select) (result qProp) { for _, ac := range e.Condition { result.combine(ac.analyze(s)) } return } func (e *Condition) analyze(s *Select) (result qProp) { if e.Operand != nil {
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/aggregation.go
for _, ex := range e.Elements { err := ex.aggregateRow(r, tableAlias) if err != nil { return err } } return nil } func (e *AndCondition) aggregateRow(r Record, tableAlias string) error { for _, ex := range e.Condition { err := ex.aggregateRow(r, tableAlias) if err != nil { return err } } return nil }
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/evaluate.go
} b, ok := res.ToBool() if !ok { return nil, errExpectedBool } if b { return FromBool(true), nil } result = result || b } return FromBool(result), nil } func (e *AndCondition) evalNode(r Record, tableAlias string) (*Value, error) { if len(e.Condition) == 1 { // In this case, result does not have to be boolean return e.Condition[0].evalNode(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)