Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed May 21, 2024
1 parent 68348a7 commit 0094c13
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/polars-io/src/csv/read/schema_inference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl SchemaInferenceResult {
impl CsvReadOptions {
/// Note: This does not update the schema from the inference result.
pub fn update_with_inference_result(&mut self, si_result: &SchemaInferenceResult) {
self.skip_rows += si_result.skip_rows;
self.skip_rows = si_result.skip_rows;
self.n_threads = si_result.n_threads;
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/polars-lazy/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ use crate::prelude::*;
#[cfg(feature = "parquet")]
static GLOB_PARQUET: &str = "../../examples/datasets/*.parquet";
#[cfg(feature = "csv")]
static GLOB_CSV: &str = "../../examples/datasets/*.csv";
static GLOB_CSV: &str = "../../examples/datasets/foods*.csv";
#[cfg(feature = "ipc")]
static GLOB_IPC: &str = "../../examples/datasets/*.ipc";
#[cfg(feature = "parquet")]
Expand Down
3 changes: 3 additions & 0 deletions crates/polars-plan/src/logical_plan/conversion/scans.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ pub(super) fn csv_file_info(
let schema_a = a.get_inferred_schema();
let schema_b = b.get_inferred_schema();

dbg!(schema_a.clone());
dbg!(schema_b.clone());

match (schema_a.is_empty(), schema_b.is_empty()) {
(true, _) => schema_b,
(_, true) => schema_a,
Expand Down

0 comments on commit 0094c13

Please sign in to comment.