Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for inferTypesForCmp (0.06 seconds)

  1. internal/s3select/sql/value.go

    			return !v.IsMissing(), nil
    		}
    		// Forward to not equal.
    		op = opIneq
    	default:
    	}
    
    	// Check if type conversion/inference is needed - it is needed
    	// if the Value is a byte-slice.
    	err = inferTypesForCmp(v, a)
    	if err != nil {
    		return false, err
    	}
    
    	// Check if either is nil
    	if v.IsNull() || a.IsNull() {
    		// If one is, both must be.
    		return boolCompare(op, v.IsNull(), a.IsNull())
    	}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 20.4K bytes
    - Click Count (0)
  2. internal/s3select/sql/funceval.go

    		return arg, nil
    	}
    	return FromNull(), nil
    }
    
    func nullif(v1, v2 *Value) (res *Value, err error) {
    	// Handle Null cases
    	if v1.IsNull() || v2.IsNull() {
    		return v1, nil
    	}
    
    	err = inferTypesForCmp(v1, v2)
    	if err != nil {
    		return nil, err
    	}
    
    	atleastOneNumeric := v1.isNumeric() || v2.isNumeric()
    	bothNumeric := v1.isNumeric() && v2.isNumeric()
    	if atleastOneNumeric || !bothNumeric {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 13.2K bytes
    - Click Count (0)
Back to Top