Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for decimal (0.28 sec)

  1. internal/s3select/sql/parser_test.go

    	)
    
    	validCases := []string{
    		"count(*)",
    		"sum(2 + s.id)",
    		"sum(t)",
    		"avg(s.id[1])",
    		"coalesce(s.id[1], 2, 2 + 3)",
    
    		"cast(s as string)",
    		"cast(s AS INT)",
    		"cast(s as DECIMAL)",
    		"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)",
    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/parser.go

    // CastFunc represents CAST sql function
    type CastFunc struct {
    	Expr     *Expression `parser:" \"CAST\" \"(\" @@ "`
    	CastType string      `parser:" \"AS\" @(\"BOOL\" | \"INT\" | \"INTEGER\" | \"STRING\" | \"FLOAT\" | \"DECIMAL\" | \"NUMERIC\" | \"TIMESTAMP\") \")\" "`
    }
    
    // SubstringFunc represents SUBSTRING sql function
    type SubstringFunc struct {
    	Expr *PrimaryTerm `parser:" \"SUBSTRING\" \"(\" @@ "`
    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. cmd/streaming-signature-v4_test.go

    		err := readCRLF(tt.reader)
    		if err != tt.expectedErr {
    			t.Errorf("Test %d: Expected %s, got %s this", i+1, tt.expectedErr, err)
    		}
    	}
    }
    
    // Tests parsing hex number into its uint64 decimal equivalent.
    func TestParseHexUint(t *testing.T) {
    	type testCase struct {
    		in      string
    		want    uint64
    		wantErr string
    	}
    	tests := []testCase{
    		{"x", 0, "invalid byte in chunk length"},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 5.7K bytes
    - Viewed (0)
  4. internal/s3select/sql/funceval.go

    }
    
    // Allowed cast types
    const (
    	castBool      = "BOOL"
    	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)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 13.2K bytes
    - Viewed (0)
  5. cmd/bitrot.go

    	"golang.org/x/crypto/blake2b"
    
    	xioutil "github.com/minio/minio/internal/ioutil"
    	"github.com/minio/minio/internal/logger"
    )
    
    // magic HH-256 key as HH-256 hash of the first 100 decimals of π as utf-8 string with a zero key.
    var magicHighwayHash256Key = []byte("\x4b\xe7\x34\xfa\x8e\x23\x8a\xcd\x26\x3e\x83\xe6\xbb\x96\x85\x52\x04\x0f\x93\x5d\xa3\x9f\x44\x14\x97\xe0\x9d\x13\x22\xde\x36\xa0")
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  6. docs/metrics/prometheus/grafana/minio-dashboard.json

                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "decimals": 0,
              "links": [],
              "mappings": [],
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
    Json
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 10:03:01 GMT 2024
    - 93K bytes
    - Viewed (2)
  7. cmd/object-api-utils.go

    // Amazon's requirements (i.e. DNS naming conventions). It must be 3-63
    // characters long, and it must be a sequence of one or more labels
    // separated by periods. Each label can contain lowercase ascii
    // letters, decimal digits and hyphens, but must not begin or end with
    // a hyphen. See:
    // http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html
    func IsValidBucketName(bucket string) bool {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  8. internal/event/target/elasticsearch.go

    		return
    	}
    
    	switch {
    	case majorVersion <= 6:
    		res = ESSUnsupported
    	default:
    		res = ESSSupported
    	}
    	return
    }
    
    // magic HH-256 key as HH-256 hash of the first 100 decimals of π as utf-8 string with a zero key.
    var magicHighwayHash256Key = []byte("\x4b\xe7\x34\xfa\x8e\x23\x8a\xcd\x26\x3e\x83\xe6\xbb\x96\x85\x52\x04\x0f\x93\x5d\xa3\x9f\x44\x14\x97\xe0\x9d\x13\x22\xde\x36\xa0")
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 15K bytes
    - Viewed (0)
Back to top