Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for substring (0.16 sec)

  1. internal/s3select/sql/parser_test.go

    		"extract(YEAR from '2018-01-09')",
    		"extract(month from '2018-01-09')",
    
    		"extract(hour from '2018-01-09')",
    		"extract(day from '2018-01-09')",
    		"substring('abcd' from 2 for 2)",
    		"substring('abcd' from 2)",
    		"substring('abcd' , 2 , 2)",
    
    		"substring('abcd' , 22 )",
    		"trim('  aab  ')",
    		"trim(leading from '  aab  ')",
    		"trim(trailing from '  aab  ')",
    		"trim(both from '  aab  ')",
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  2. internal/s3select/sql/analysis.go

    		result.combine(e.Substring.Expr.analyze(s))
    		switch {
    		case e.Substring.From != nil:
    			result.combine(e.Substring.From.analyze(s))
    			if e.Substring.For != nil {
    				result.combine(e.Substring.Expr.analyze(s))
    			}
    		case e.Substring.Arg2 != nil:
    			result.combine(e.Substring.Arg2.analyze(s))
    			if e.Substring.Arg3 != nil {
    				result.combine(e.Substring.Arg3.analyze(s))
    			}
    		default:
    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)
  3. internal/s3select/sql/parser.go

    	CastType string      `parser:" \"AS\" @(\"BOOL\" | \"INT\" | \"INTEGER\" | \"STRING\" | \"FLOAT\" | \"DECIMAL\" | \"NUMERIC\" | \"TIMESTAMP\") \")\" "`
    }
    
    // SubstringFunc represents SUBSTRING sql function
    type SubstringFunc struct {
    	Expr *PrimaryTerm `parser:" \"SUBSTRING\" \"(\" @@ "`
    	From *Operand     `parser:" ( \"FROM\" @@ "`
    	For  *Operand     `parser:"   (\"FOR\" @@)? \")\" "`
    	Arg2 *Operand     `parser:" | \",\" @@ "`
    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)
  4. cmd/signature-v4-utils_test.go

    		expected string // expected SHA256
    	}{
    		{"shastring", "", "shastring"},
    		{emptySHA256, "", emptySHA256},
    		{"", "", emptySHA256},
    		{"", "X-Amz-Credential=random", unsignedPayload},
    		{"", "X-Amz-Credential=random&X-Amz-Content-Sha256=" + unsignedPayload, unsignedPayload},
    		{"", "X-Amz-Credential=random&X-Amz-Content-Sha256=shastring", "shastring"},
    	}
    
    	for i, testCase := range testCases {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
Back to top