Skip to content

Commit

Permalink
joinp: tolerance should be u64, not i64
Browse files Browse the repository at this point in the history
jqnatividad committed Nov 29, 2023
1 parent 998803c commit 12f3aa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/joinp.rs
Original file line number Diff line number Diff line change
@@ -294,9 +294,9 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
if let Some(ref tolerance) = args.flag_tolerance {
// If the tolerance is a positive integer, it is tolerance number of rows.
// Otherwise, it is a tolerance date language spec.
if let Ok(numeric_tolerance) = atoi_simd::parse_pos::<i64>(tolerance.as_bytes())
if let Ok(numeric_tolerance) = atoi_simd::parse_pos::<u64>(tolerance.as_bytes())
{
asof_options.tolerance = Some(AnyValue::Int64(numeric_tolerance));
asof_options.tolerance = Some(AnyValue::UInt64(numeric_tolerance));
} else {
asof_options.tolerance_str = Some(tolerance.into());
}

0 comments on commit 12f3aa3

Please sign in to comment.