Skip to content

Commit

Permalink
fix: sniff should not use polars count
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Dec 14, 2024
1 parent 9e0a4ad commit 5043d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/sniff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ async fn sniff_main(mut args: Args) -> CliResult<()> {
.delimiter(args.flag_delimiter);
let n_rows = if sfile_info.downloaded_records == 0 {
//if we have the whole file and not just a sample, we can count the number of rows
match util::count_rows(&conf) {
match util::count_rows_regular(&conf) {
Ok(n) => n as usize,
Err(e) => {
cleanup_tempfile(sfile_info.tempfile_flag, tempfile_to_delete)?;
Expand Down

0 comments on commit 5043d0e

Please sign in to comment.