Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for expressions (0.21 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 Apr 21 19:28:08 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  3. docs/select/README.md

    Traditional retrieval of objects is always as whole entities, i.e GetObject for a 5 GiB object, will always return 5 GiB of data. S3 Select API allows us to retrieve a subset of data by using simple SQL expressions. By using Select API to retrieve only the data needed by the application, drastic performance improvements can be achieved.
    
    You can use the Select API to query objects with following features:
    
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Sep 29 04:28:45 GMT 2022
    - 6.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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  5. docs/bigdata/README.md

         / __/__  ___ _____/ /__
        _\ \/ _ \/ _ `/ __/  '_/
       /___/ .__/\_,_/_/ /_/\_\   version 2.1.0.2.6.0.0-598
          /_/
    
    Using Scala version 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_112)
    Type in expressions to have them evaluated.
    Type :help for more information.
    
    scala>
    ```
    
    - At the _scala>_ prompt, submit the job by typing the following commands, Replace node names, file name, and file location with your values:
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Sep 29 04:28:45 GMT 2022
    - 14.7K bytes
    - Viewed (0)
  6. internal/s3select/errors.go

    		cause:      err,
    	}
    }
    
    func errInvalidExpressionType(err error) *s3Error {
    	return &s3Error{
    		code:       "InvalidExpressionType",
    		message:    "The ExpressionType is invalid. Only SQL expressions are supported.",
    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errMissingRequiredParameter(err error) *s3Error {
    	return &s3Error{
    		code:       "MissingRequiredParameter",
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Mar 14 16:48:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  7. internal/s3select/sql/parser_test.go

    	if err != nil {
    		t.Fatalf("parse alias sql error: %v", err)
    	}
    	if exp.selectAST.Expression.Expressions[2].As != "mytest" {
    		t.Fatalf("parse alias sql error: %s not equal %s", exp.selectAST.Expression.Expressions[2].As, err)
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  8. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 12K bytes
    - Viewed (0)
  9. internal/s3select/sql/funceval.go

    	castInt       = "INT"
    	castInteger   = "INTEGER"
    	castString    = "STRING"
    	castFloat     = "FLOAT"
    	castDecimal   = "DECIMAL"
    	castNumeric   = "NUMERIC"
    	castTimestamp = "TIMESTAMP"
    )
    
    func (e *Expression) castTo(r Record, castType string, tableAlias string) (res *Value, err error) {
    	v, err := e.evalNode(r, tableAlias)
    	if err != nil {
    		return nil, err
    	}
    
    	switch castType {
    	case castInt, castInteger:
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 13.2K bytes
    - Viewed (0)
  10. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Feb 20 08:16:35 GMT 2024
    - 17.5K bytes
    - Viewed (0)
Back to top