Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Klauser (0.29 sec)

  1. internal/s3select/sql/parser.go

    // Expression represents a logical disjunction of clauses
    type Expression struct {
    	And []*AndCondition `parser:"@@ ( \"OR\" @@ )*"`
    }
    
    // ListExpr represents a literal list with elements as expressions.
    type ListExpr struct {
    	Elements []*Expression `parser:"\"(\" @@ ( \",\" @@ )* \")\" | \"[\" @@ ( \",\" @@ )* \"]\""`
    }
    
    // AndCondition represents logical conjunction of clauses
    type AndCondition struct {
    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

    )
    
    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)
  3. internal/s3select/sql/statement.go

    		return
    	}
    
    	// Analyze where clause
    	if selectAST.Where != nil {
    		whereQProp := selectAST.Where.analyze(&selectAST)
    		if whereQProp.err != nil {
    			err = errQueryAnalysisFailure(fmt.Errorf("Where clause error: %w", whereQProp.err))
    			return
    		}
    
    		if whereQProp.isAggregation {
    			err = errQueryAnalysisFailure(errors.New("WHERE clause cannot have an aggregation"))
    			return
    		}
    	}
    
    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/errors.go

    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errLikeInvalidInputs(err error) *s3Error {
    	return &s3Error{
    		code:       "LikeInvalidInputs",
    		message:    "Invalid argument given to the LIKE clause in the SQL expression.",
    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errQueryParseFailure(err error) *s3Error {
    	return &s3Error{
    		code:       "ParseSelectFailure",
    		message:    err.Error(),
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 2.6K bytes
    - Viewed (0)
  5. go.sum

    github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI=
    github.com/tklauser/go-sysconf v0.3.13 h1:GBUpcahXSpR2xN01jhkNAbTLRk2Yzgggk8IM08lq3r4=
    github.com/tklauser/go-sysconf v0.3.13/go.mod h1:zwleP4Q4OehZHGn4CYZDipCgg9usW5IJePewFCGVEa0=
    github.com/tklauser/numcpus v0.6.1/go.mod h1:1XfjsgE2zo8GVw7POkMbHENHzVg3GzmoZ9fESEdAacY=
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:31:35 GMT 2024
    - 84.2K bytes
    - Viewed (0)
  6. internal/s3select/unused-errors.go

    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errParseExpectedWhenClause(err error) *s3Error {
    	return &s3Error{
    		code:       "ParseExpectedWhenClause",
    		message:    "Did not find the expected WHEN clause in the SQL expression. CASE is not supported.",
    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errParseUnsupportedToken(err error) *s3Error {
    	return &s3Error{
    		code:       "ParseUnsupportedToken",
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Feb 20 08:16:35 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  7. CREDITS

    ================================================================
    
    github.com/tklauser/go-sysconf
    https://github.com/tklauser/go-sysconf
    ----------------------------------------------------------------
    BSD 3-Clause License
    
    Copyright (c) 2018-2022, Tobias Klauser
    All rights reserved.
    
    Redistribution and use in source and binary forms, with or without
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:31:35 GMT 2024
    - 1.6M bytes
    - Viewed (0)
  8. internal/s3select/sql/utils.go

    	}
    	ps := jpath.String()
    	if idx := strings.LastIndex(ps, "."); idx >= 0 {
    		// Get last part of path string.
    		ps = ps[idx+1:]
    	}
    	return ps, true
    }
    
    // HasKeypath returns if the from clause has a key path -
    // e.g. S3object[*].id
    func (from *TableExpression) HasKeypath() bool {
    	return len(from.Table.PathExpr) > 1
    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)
  9. internal/s3select/sql/stringfuncs.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package sql
    
    import (
    	"errors"
    	"strings"
    )
    
    var (
    	errMalformedEscapeSequence  = errors.New("Malformed escape sequence in LIKE clause")
    	errInvalidTrimArg           = errors.New("Trim argument is invalid - this should not happen")
    	errInvalidSubstringIndexLen = errors.New("Substring start index or length falls outside the string")
    )
    
    const (
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 4.2K bytes
    - Viewed (0)
  10. cmd/api-errors.go

    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrParseExpectedWhenClause: {
    		Code:           "ParseExpectedWhenClause",
    		Description:    "Did not find the expected WHEN clause in the SQL expression. CASE is not supported.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrParseUnsupportedToken: {
    		Code:           "ParseUnsupportedToken",
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 90.6K bytes
    - Viewed (6)
Back to top