mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
select: add MISSING operator support (#14406)
Probably not full support, but for regular checks it should work. Fixes #14358
This commit is contained in:
@@ -449,6 +449,8 @@ func jsonToValue(result interface{}) (*Value, error) {
|
||||
return FromArray(rval), nil
|
||||
case nil:
|
||||
return FromNull(), nil
|
||||
case Missing:
|
||||
return FromMissing(), nil
|
||||
}
|
||||
return nil, fmt.Errorf("Unhandled value type: %T", result)
|
||||
}
|
||||
@@ -493,6 +495,8 @@ func (e *LitValue) evalNode(_ Record) (res *Value, err error) {
|
||||
return FromString(string(*e.String)), nil
|
||||
case e.Boolean != nil:
|
||||
return FromBool(bool(*e.Boolean)), nil
|
||||
case e.Missing:
|
||||
return FromMissing(), nil
|
||||
}
|
||||
return FromNull(), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user