updated round to support i64 (#3451)

This commit is contained in:
Darren Schroeder 2021-05-20 13:59:19 -05:00 committed by GitHub
parent 20f6114617
commit 722f191e82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,7 @@ fn operate(args: CommandArgs) -> Result<OutputStream, ShellError> {
UntaggedValue::Primitive(Primitive::Decimal(val)) => {
round_big_decimal(val, precision.into())
}
UntaggedValue::Primitive(Primitive::Int(val)) => UntaggedValue::int(val).into(),
other => round_default(other),
});
Ok(mapped.to_output_stream())