Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Copeland (0.18 sec)

  1. internal/s3select/sql/parser.go

    }
    
    // Condition represents a negation or a condition operand
    type Condition struct {
    	Operand *ConditionOperand `parser:"  @@"`
    	Not     *Condition        `parser:"| \"NOT\" @@"`
    }
    
    // ConditionOperand is a operand followed by an optional operation expression.
    type ConditionOperand struct {
    	Operand      *Operand      `parser:"@@"`
    	ConditionRHS *ConditionRHS `parser:"@@?"`
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  2. internal/s3select/sql/evaluate.go

    		}
    		result = result && b
    	}
    	return FromBool(result), nil
    }
    
    func (e *Condition) evalNode(r Record, tableAlias string) (*Value, error) {
    	if e.Operand != nil {
    		// In this case, result does not have to be boolean
    		return e.Operand.evalNode(r, tableAlias)
    	}
    
    	// Compute NOT of condition
    	res, err := e.Not.evalNode(r, tableAlias)
    	if err != nil {
    		return nil, err
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 12K bytes
    - Viewed (0)
  3. internal/s3select/sql/statement.go

    		selectAST.Expression.Expressions[0].Expression.And[0].Condition[0].Operand != nil &&
    		selectAST.Expression.Expressions[0].Expression.And[0].Condition[0].Operand.Operand.Left != nil &&
    		selectAST.Expression.Expressions[0].Expression.And[0].Condition[0].Operand.Operand.Left.Left != nil &&
    		selectAST.Expression.Expressions[0].Expression.And[0].Condition[0].Operand.Operand.Left.Left.Primary != nil &&
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jan 09 17:19:11 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  4. internal/s3select/sql/analysis.go

    	if e.ConditionRHS == nil {
    		result = e.Operand.analyze(s)
    	} else {
    		result.combine(e.Operand.analyze(s))
    		result.combine(e.ConditionRHS.analyze(s))
    	}
    	return
    }
    
    func (e *ConditionRHS) analyze(s *Select) (result qProp) {
    	switch {
    	case e.Compare != nil:
    		result = e.Compare.Operand.analyze(s)
    	case e.Between != nil:
    		result.combine(e.Between.Start.analyze(s))
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  5. internal/s3select/sql/aggregation.go

    		}
    	}
    	return nil
    }
    
    func (e *Condition) aggregateRow(r Record, tableAlias string) error {
    	if e.Operand != nil {
    		return e.Operand.aggregateRow(r, tableAlias)
    	}
    	return e.Not.aggregateRow(r, tableAlias)
    }
    
    func (e *ConditionOperand) aggregateRow(r Record, tableAlias string) error {
    	err := e.Operand.aggregateRow(r, tableAlias)
    	if err != nil {
    		return err
    	}
    
    	if e.ConditionRHS == nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  6. internal/s3select/sql/utils.go

    		e.And[0].Condition[0].Operand.ConditionRHS != nil {
    		return "", false
    	}
    
    	operand := e.And[0].Condition[0].Operand.Operand
    	if operand.Right != nil ||
    		operand.Left.Right != nil ||
    		operand.Left.Left.Negated != nil ||
    		operand.Left.Left.Primary.JPathExpr == nil {
    		return "", false
    	}
    
    	// Check if path expression ends in a key
    	jpath := operand.Left.Left.Primary.JPathExpr
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Nov 10 16:12:50 GMT 2021
    - 3.6K bytes
    - Viewed (0)
  7. internal/s3select/select_test.go

    		},
    		{
    			name:       "arithmetic_integer_operand",
    			query:      `SELECT 1 / 2 FROM S3Object LIMIT 1`,
    			wantResult: `{"_1":0}`,
    		},
    		{
    			name:       "arithmetic_float_operand",
    			query:      `SELECT 1.0 / 2.0 * .3 FROM S3Object LIMIT 1`,
    			wantResult: `{"_1":0.15}`,
    		},
    		{
    			name:       "arithmetic_integer_float_operand",
    			query:      `SELECT 3.0 / 2, 5 / 2.0 FROM S3Object LIMIT 1`,
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
Back to top