Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ast (0.18 sec)

  1. internal/s3select/sql/evaluate.go

    )
    
    var (
    	errInvalidASTNode    = errors.New("invalid AST Node")
    	errExpectedBool      = errors.New("expected bool")
    	errLikeNonStrArg     = errors.New("LIKE clause requires string arguments")
    	errLikeInvalidEscape = errors.New("LIKE clause has invalid ESCAPE character")
    	errNotImplemented    = errors.New("not implemented")
    )
    
    // AST Node Evaluation functions
    //
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 12K bytes
    - Viewed (0)
  2. internal/s3select/sql/parser.go

    	n := len(values[0])
    	r := values[0][1 : n-1]
    
    	// Translate doubled quotes
    	*qi = QuotedIdentifier(strings.ReplaceAll(r, `""`, `"`))
    	return nil
    }
    
    // Types representing AST of SQL statement. Only SELECT is supported.
    
    // Select is the top level AST node type
    type Select struct {
    	Expression *SelectExpression `parser:"\"SELECT\" @@"`
    	From       *TableExpression  `parser:"\"FROM\" @@"`
    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)
  3. internal/s3select/sql/aggregation.go

    	default:
    		// TODO: traverse arguments and call aggregateRow on
    		// them if they could be an ancestor of an
    		// aggregation.
    	}
    	return nil
    }
    
    // getAggregate() implementation for each AST node follows. This is
    // called after calling aggregateRow() on each input row, to calculate
    // the final aggregate result.
    
    func (e *FuncExpr) getAggregate() (*Value, error) {
    	switch e.getFunctionName() {
    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)
Back to top