Skip to content

Commit

Permalink
feat: don't rechunk by default in lazy scans (#13518)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored Jan 8, 2024
1 parent 5e94252 commit 1b818f0
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/polars-lazy/src/scan/csv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl<'a> LazyCsvReader<'a> {
null_values: None,
missing_is_null: true,
infer_schema_length: Some(100),
rechunk: true,
rechunk: false,
skip_rows_after_header: 0,
encoding: CsvEncoding::Utf8,
row_count: None,
Expand Down
2 changes: 1 addition & 1 deletion crates/polars-lazy/src/scan/ipc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl Default for ScanArgsIpc {
Self {
n_rows: None,
cache: true,
rechunk: true,
rechunk: false,
row_count: None,
memmap: true,
}
Expand Down
2 changes: 1 addition & 1 deletion crates/polars-lazy/src/scan/ndjson.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl LazyJsonLineReader {
paths: Arc::new([]),
batch_size: None,
low_memory: false,
rechunk: true,
rechunk: false,
schema: None,
row_count: None,
infer_schema_length: Some(100),
Expand Down
2 changes: 1 addition & 1 deletion crates/polars-lazy/src/scan/parquet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl Default for ScanArgsParquet {
n_rows: None,
cache: true,
parallel: Default::default(),
rechunk: true,
rechunk: false,
row_count: None,
low_memory: false,
cloud_options: None,
Expand Down
2 changes: 1 addition & 1 deletion py-polars/polars/io/csv/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def read_csv(
n_rows: int | None = None,
encoding: CsvEncoding | str = "utf8",
low_memory: bool = False,
rechunk: bool = True,
rechunk: bool = False,
use_pyarrow: bool = False,
storage_options: dict[str, Any] | None = None,
skip_rows_after_header: int = 0,
Expand Down
2 changes: 1 addition & 1 deletion py-polars/polars/io/ipc/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def scan_ipc(
*,
n_rows: int | None = None,
cache: bool = True,
rechunk: bool = True,
rechunk: bool = False,
row_count_name: str | None = None,
row_count_offset: int = 0,
storage_options: dict[str, Any] | None = None,
Expand Down
2 changes: 1 addition & 1 deletion py-polars/polars/io/parquet/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def scan_parquet(
parallel: ParallelStrategy = "auto",
use_statistics: bool = True,
hive_partitioning: bool = True,
rechunk: bool = True,
rechunk: bool = False,
low_memory: bool = False,
cache: bool = True,
storage_options: dict[str, Any] | None = None,
Expand Down

0 comments on commit 1b818f0

Please sign in to comment.