Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for columnValue (0.16 sec)

  1. internal/s3select/json/record.go

    	var csvRecord []string
    	for _, kv := range r.KVS {
    		var columnValue string
    		switch val := kv.Value.(type) {
    		case float64:
    			columnValue = jsonFloat(val)
    		case string:
    			columnValue = val
    		case bool, int64:
    			columnValue = fmt.Sprintf("%v", val)
    		case nil:
    			columnValue = ""
    		case RawJSON:
    			columnValue = string([]byte(val))
    		case []interface{}:
    			b, err := json.Marshal(val)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. internal/s3select/simdj/record.go

    		_, typ, err := obj.NextElement(&tmp)
    		if err != nil {
    			return err
    		}
    		var columnValue string
    		switch typ {
    		case simdjson.TypeNull, simdjson.TypeFloat, simdjson.TypeUint, simdjson.TypeInt, simdjson.TypeBool, simdjson.TypeString:
    			val, err := tmp.StringCvt()
    			if err != nil {
    				return err
    			}
    			columnValue = val
    		case simdjson.TypeObject, simdjson.TypeArray:
    			b, err := tmp.MarshalJSON()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top