Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for dateAdd (0.04 sec)

  1. internal/s3select/sql/analysis.go

    	switch funcName {
    	case sqlFnCast:
    		return e.Cast.Expr.analyze(s)
    
    	case sqlFnExtract:
    		return e.Extract.From.analyze(s)
    
    	case sqlFnDateAdd:
    		result.combine(e.DateAdd.Quantity.analyze(s))
    		result.combine(e.DateAdd.Timestamp.analyze(s))
    		return result
    
    	case sqlFnDateDiff:
    		result.combine(e.DateDiff.Timestamp1.analyze(s))
    		result.combine(e.DateDiff.Timestamp2.analyze(s))
    		return result
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  2. internal/s3select/sql/parser.go

    	TrimChars *PrimaryTerm `parser:"             @@?  "`
    	TrimFrom  *PrimaryTerm `parser:"             \"FROM\" )? @@ \")\" "`
    }
    
    // DateAddFunc represents the DATE_ADD function
    type DateAddFunc struct {
    	DatePart  string       `parser:" \"DATE_ADD\" \"(\" @( \"YEAR\":Timeword | \"MONTH\":Timeword | \"DAY\":Timeword | \"HOUR\":Timeword | \"MINUTE\":Timeword | \"SECOND\":Timeword ) \",\""`
    	Quantity  *Operand     `parser:" @@ \",\""`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  3. internal/s3select/select_test.go

    {"shipdate":"1996-01-29T"}
    {"shipdate":"1996-04-21T"}
    {"shipdate":"1996-03-30T"}`,
    		},
    		{
    			requestXML: []byte(`
    <?xml version="1.0" encoding="UTF-8"?>
    <SelectObjectContentRequest>
        <Expression>SELECT DATE_ADD(day, 2, shipdate) as shipdate FROM S3Object LIMIT 5</Expression>
        <ExpressionType>SQL</ExpressionType>
        <InputSerialization>
            <CompressionType>NONE</CompressionType>
            <Parquet>
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 76.2K bytes
    - Viewed (0)
Back to top