You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need a function to cast a Value into the specific data type just like:
let n= Value::Int64(1694589525);// cast int64 into TimestampSecondTypelet ts = ConcreteDataType::Timestamp(TimestampType::TimestampSecondType).cast(n).unwrap();
The signature of cast may be:
fn cast(value: Value) -> Option<Value>;
If the value can't be cast into the datatype, return None.
Implementation challenges
No response
The text was updated successfully, but these errors were encountered:
What type of enhancement is this?
API improvement
What does the enhancement do?
We need a function to cast a
Value
into the specific data type just like:The signature of
cast
may be:If the value can't be cast into the datatype, return
None
.Implementation challenges
No response
The text was updated successfully, but these errors were encountered: