Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for Expression (0.34 sec)

  1. internal/s3select/sql/statement.go

    	if !selectAST.Expression.All &&
    		len(selectAST.Expression.Expressions) == 1 &&
    		len(selectAST.Expression.Expressions[0].Expression.And) == 1 &&
    		len(selectAST.Expression.Expressions[0].Expression.And[0].Condition) == 1 &&
    		selectAST.Expression.Expressions[0].Expression.And[0].Condition[0].Operand != nil &&
    		selectAST.Expression.Expressions[0].Expression.And[0].Condition[0].Operand.Operand.Left != nil &&
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 09 17:19:11 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  2. internal/s3select/sql/parser.go

    	strippedTableAlias string
    	strippedPathExpr   []*JSONPathElement
    }
    
    // AliasedExpression is an expression that can be optionally named
    type AliasedExpression struct {
    	Expression *Expression `parser:"@@"`
    	As         string      `parser:"[ \"AS\" @Ident | \"AS\" @LitString ]"`
    }
    
    // Grammar for Expression
    //
    // ExpressionAndCondition ("OR" AndCondition)*
    // AndCondition        → Condition ("AND" Condition)*
    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)
  3. internal/s3select/unused-errors.go

    		message:    "Did not find the expected identifier for AT name in the SQL expression.",
    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errParseCannotMixSqbAndWildcardInSelectList(err error) *s3Error {
    	return &s3Error{
    		code:       "ParseCannotMixSqbAndWildcardInSelectList",
    		message:    "Cannot mix [] and * in the same expression in a SELECT list in SQL expression.",
    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 20 08:16:35 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  4. internal/s3select/sql/analysis.go

    	if e.All {
    		return qProp{isRowFunc: true}
    	}
    
    	for _, ex := range e.Expressions {
    		result.combine(ex.analyze(s))
    	}
    	return
    }
    
    func (e *AliasedExpression) analyze(s *Select) qProp {
    	return e.Expression.analyze(s)
    }
    
    func (e *Expression) analyze(s *Select) (result qProp) {
    	for _, ac := range e.And {
    		result.combine(ac.analyze(s))
    	}
    	return
    }
    
    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)
  5. internal/s3select/sql/errors.go

    }
    
    func (err *s3Error) Error() string {
    	return err.message
    }
    
    func errInvalidDataType(err error) *s3Error {
    	return &s3Error{
    		code:       "InvalidDataType",
    		message:    "The SQL expression contains an invalid data type.",
    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errIncorrectSQLFunctionArgumentType(err error) *s3Error {
    	return &s3Error{
    		code:       "IncorrectSqlFunctionArgumentType",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 2.6K bytes
    - Viewed (0)
  6. cmd/batch-expire_test.go

      rules:
        - type: object  # regular objects with zero or more older versions
          name: NAME # match object names that satisfy the wildcard expression.
          olderThan: 70h # match objects older than this value
          createdBefore: "2006-01-02T15:04:05.00Z" # match objects created before "date"
          tags:
            - key: name
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 3K bytes
    - Viewed (0)
  7. internal/s3select/select_benchmark_test.go

    func (w *nullResponseWriter) Flush() {
    }
    
    func benchmarkSelect(b *testing.B, count int, query string) {
    	requestXML := []byte(`
    <?xml version="1.0" encoding="UTF-8"?>
    <SelectObjectContentRequest>
        <Expression>` + query + `</Expression>
        <ExpressionType>SQL</ExpressionType>
        <InputSerialization>
            <CompressionType>NONE</CompressionType>
            <CSV>
                <FileHeaderInfo>USE</FileHeaderInfo>
            </CSV>
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 14 13:54:47 GMT 2022
    - 5K bytes
    - Viewed (0)
  8. docs/select/README.md

    ### 3. Example
    
    As an example, let us take a gzip compressed CSV file. Without S3 Select, we would need to download, decompress and process the entire CSV to get the data you needed. With Select API, can use a simple SQL expression to return only the data from the CSV you’re interested in, instead of retrieving the entire object. Following Python example shows how to retrieve the first column `Location` from an object containing data in CSV format.
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Sep 29 04:28:45 GMT 2022
    - 6.5K bytes
    - Viewed (0)
  9. internal/s3select/sql/aggregation.go

    	default:
    		err = errInvalidAggregation
    	}
    
    	return err
    }
    
    func (e *AliasedExpression) aggregateRow(r Record, tableAlias string) error {
    	return e.Expression.aggregateRow(r, tableAlias)
    }
    
    func (e *Expression) aggregateRow(r Record, tableAlias string) error {
    	for _, ex := range e.And {
    		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)
  10. internal/s3select/sql/evaluate.go

    // processed, and the `getAggregate` function is called.
    
    func (e *AliasedExpression) evalNode(r Record, tableAlias string) (*Value, error) {
    	return e.Expression.evalNode(r, tableAlias)
    }
    
    func (e *Expression) evalNode(r Record, tableAlias string) (*Value, error) {
    	if len(e.And) == 1 {
    		// In this case, result is not required to be boolean
    		// type.
    		return e.And[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)
Back to top