Skip to content

Commit

Permalink
fix: use right integer type
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Jan 8, 2025
1 parent 9321bf1 commit d8c1524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/count.rs
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,10 @@ pub fn polars_count_input(conf: &Config, low_memory: bool) -> CliResult<u64> {
},
};

let mut count = match sqlresult_lf.collect()?["len"].u64() {
let mut count = match sqlresult_lf.collect()?["len"].u32() {
Ok(cnt) => {
if let Some(count) = cnt.get(0) {
count
count as u64
} else {
// Empty result, fall back to regular CSV reader
log::warn!("empty polars result, falling back to regular reader");
Expand Down

0 comments on commit d8c1524

Please sign in to comment.