Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for addCondition (0.24 sec)

  1. internal/s3select/sql/parser.go

    	Expression *Expression `parser:"@@"`
    	As         string      `parser:"[ \"AS\" @Ident | \"AS\" @LitString ]"`
    }
    
    // Grammar for Expression
    //
    // Expression          → AndCondition ("OR" AndCondition)*
    // AndConditionCondition ("AND" Condition)*
    // Condition           → "NOT" Condition | ConditionExpression
    // ConditionExpression → ValueExpression ("=" | "<>" | "<=" | ">=" | "<" | ">") ValueExpression
    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)
  2. 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)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 12K bytes
    - Viewed (0)
  3. 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
    }
    
    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/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 {
    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)
Back to top