Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Arithmetic (0.15 sec)

  1. internal/s3select/sql/value.go

    	default:
    		// Does not happen
    		return nil
    	}
    }
    
    // Value arithmetic functions: we do not expose them outside the
    // module. All arithmetic works only on numeric values with automatic
    // promotion to the "larger" type that can represent the value. TODO:
    // Add support for large number arithmetic.
    
    // Supported arithmetic operators
    const (
    	opPlus     = "+"
    	opMinus    = "-"
    	opDivide   = "/"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  2. internal/s3select/select_test.go

    			wantResult: `{"_1":1}`,
    		},
    		{
    			name:       "arithmetic_integer_operand",
    			query:      `SELECT 1 / 2 FROM S3Object LIMIT 1`,
    			wantResult: `{"_1":0}`,
    		},
    		{
    			name:       "arithmetic_float_operand",
    			query:      `SELECT 1.0 / 2.0 * .3 FROM S3Object LIMIT 1`,
    			wantResult: `{"_1":0.15}`,
    		},
    		{
    			name:       "arithmetic_integer_float_operand",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
Back to top