What changed in Polars from 1 to 2
2 releases numbered after 1.44.2 up to and including 2.1.0, stable releases only. 1.44.2 and 2.1.0 are the newest stable releases of 1 and 2 we track; this page follows them as new ones ship.
- 2 mention breaking changes
- 1 removes or deprecates something
42 changes across 2 releases
- Disallow mixed string <=> numeric arithmetic in eager mode
- Limit the memory of buckets sorted ahead in the sort flush
- Make file readers wait for spills while over the memory budget
- Count unspilled frames in the memory estimate right away
- Simplify more boolean expressions and drop redundant null checks
- Wait for spills while over the out-of-core memory budget
- Lower the default out-of-core prefetch fraction to 0.5
- Aggregate unique and n_unique in the streaming group-by itself
- Return freed memory to the OS right away while out-of-core data is spilled
- Gather List(Array) and Array columns without per-row slices
- Evaluate the streaming window node out of core
- Avoid deep copies when building a DataFrame from flat dataclasses
- Sort the window partitions by each order key instead of their row encoding
- Scan the haystack for a single needle in is_in
- Prefer fixed-width columns when only the row count is needed
- Use native gather for List arrays
- Evaluate windows in filter predicates in the streaming window node
- Avoid busy-waiting in RAYON.block_on
- Encode nested Parquet levels directly from the level buffers
- Reduce memory of CSV scans on wide rows
- Avoid quadratic JSON serialization of nested lists and maps
- Run SQL window functions over grouped rows on the aggregated rows, and evaluate QUALIFY before the projection
- Type exact SQL numeric literals as Decimal and truncate SQL `%`/DIV
- Allow deterministic expression plugins to opt into CSE/CSPE
- Read Parquet ENUM type as pl.String
- More map operations
- Add streaming (out-of-core) sort
- Compute decimal addition, subtraction and multiplication in i64 when values fit
- Spread decimal sums and means over lanes and check the sum's 38 digits once
- Compute decimal addition, subtraction and multiplication without per-row validity
- Dynamic hot table size in streaming GroupBy
- Execute fixed-size rolling windows on streaming engine
- Use the finite rule of equi joins to determine build side of semi/anti
- Push down `is_nan`/`is_not_nan` filters to Iceberg
- Push down `str.starts_with` filters to Iceberg
- Trace join runtime filters through unions
- Fuse drops into all filters on streaming engine
- Join probe on Arrays directly
- Push down `!=` filters to Iceberg
- Lower SQL LIKE '%x%' to a literal substring match
- Optimize `is_in` expression
- Deprecate cut/qcut
Original release notes, newest first
The list above is our reading of these notes; the originals from Polars are here, one fold per release.
2.1.0Python Polars 2.1.0
💥 Breaking changes
- Disallow mixed string <=> numeric arithmetic in eager (#30071)
🚀 Performance improvements
- Limit the memory of buckets sorted ahead in the sort flush (#30297)
- Make file readers wait for spills while over the memory budget (#30296)
- Count unspilled frames in the memory estimate right away (#30295)
- Simplify more boolean expressions and drop redundant null checks (#30293)
- Wait for spills while over the out-of-core memory budget (#30294)
- Lower the default out-of-core prefetch fraction to 0.5 (#30292)
- Aggregate unique and n_unique in the streaming group-by itself (#30281)
- Return freed memory to the OS right away while out-of-core data is spilled (#30280)
- Gather
List(Array)andArraycolumns without per-row slices (#30278) - Evaluate the streaming window node out of core (#30282)
- Avoid deep copies when building a DataFrame from flat dataclasses (#30275)
- Sort the window partitions by each order key instead of their row encoding (#30277)
- Scan the haystack for a single needle in
is_in(#30276) - Prefer fixed-width columns when only the row count is needed (#30274)
- Native gather for List arrays (#30019)
- Evaluate windows in filter predicates in the streaming window node (#30272)
- Don't busy-wait in RAYON.block_on (#30259)
- Encode nested Parquet levels directly from the level buffers (#30251)
- Reduce memory of CSV scans on wide rows (#30165)
- Avoid quadratic JSON serialization of nested lists and maps (#30203)
- Skip the gather when exploding lists without nulls (#30234)
- Speed up writing nested Parquet columns (#30245)
- Don't keep whole parquet string dictionaries alive for a few selected rows (#30248)
- Set default spill compression level to 1 (#30237)
- Reuse zstd contexts in compression and avoid memcpys (#30233)
- Remove repeated and scalar ordering keys before the sort rewrites (#30231)
- Remove repeated keys from by's (#30095)
- Keep only one guessed unique key per join order leaf (#30191)
- Don't let extra join keys shrink an estimate once one key is unique (#30190)
- Reduce binary size of asof join with
bykeys (#30192) - Reduce binary size of SQL visitors and parallel group-by collect (#30171)
- Push as-of join key filters to the right input (#30123)
- Drop null as-of right keys with a parallel filter before the join node (#30125)
- Keep as-of nearest join state small (#30126)
- Explode lists in group_by aggregations without a per-group apply (#30020)
- Streaming OOC group-by with shuffles (#29911)
- Drop scalar ordering keys in the optimizer (#30063)
- Merge union inputs that scan files of the same kind into one multi-file scan (#30056)
- Use the streaming scalar window for std, var and combined reductions in
over(#30066) - Limit the bytes of local CSV and NDJSON files read at once in multi-file scans (#30055)
- Check the matched flag of join keys in the table entry before the bitset (#30067)
- Track matched build rows of all join tables in a bitset (#30050)
- Add dedicated list gather kernels (#30049)
- Emit unmatched build rows of single-key joins in row order (#30037)
- Use
TopKfor sorts sliced at a nonzero offset (#29989) - Add constant folding for more datetime ops (#30016)
- Rewrite the sum of a column plus a literal to a sum and a count of the column (#30011)
- Push predicates through order-keeping columns (#30007)
- Fix dead early exit in
coalesce(#30013) - Count distinct non-null values in SQL with one group-by in the streaming engine (#30009)
- Skip parquet row groups with the running top-k threshold (#30006)
- Keep decompressed plain string pages as the string data buffer (#29984)
- Fix some in-memory filter regressions (#29988)
- Decompress snappy and zstd parquet pages without zeroing the buffer (#29980)
- Speed up
str.len_chars(#29972) - Speed up
str.replacefor patterns that end in.*$(#29971) - Use the Parquet string prefilter for literal
str.containsand SQLLIKE(#29953) - Keep single-chunk output when filtering wide frames in parallel (#29847)
- Add dedicated list slice kernels (#29938)
- Principled execution order of accumulating streaming nodes (#29933)
- Huge speedup creating wide
Structdata (#29813) - Speed up
arg_minandarg_max(especially on data with nulls) (#29849) - Huge reduction in
from_rowsandfrom_dictsmemory usage during nested value conversion (#29739) - Safely push down nested struct field filters to Iceberg (#29665)
- Compare Parquet dictionaries of Categorical and Enum columns as strings for
==andis_in(#29885) - Filter Categorical and Enum Parquet columns while decoding (#29882)
- Rewrite
sort().first()tomin()and single-keysort_by().first()tomin_by()(#29860) - Decode fixed-length binary Parquet decimals directly into i128 (#29866)
- Look up each dictionary value once when importing Arrow dictionaries as Categorical (#29865)
- Reduce requests and raise concurrency for cloud CSV scans (#29863)
- Reduce requests and raise concurrency for cloud NDJSON scans (#29857)
- Track sortedness through joins (#29852)
- Keep sortedness through widening numeric casts (#29851)
- Rewrite
sort_by().first()tomin_byand limit sorts read withhead()(#29831) - Cache parsed Iceberg metadata for metadata-path scans (#29791)
- Drop memory when Done in streaming asof_join/is_first_distinct (#29783)
- Drop scalar
sort_bykeys in the optimizer (#29812) - Parallel CSV chunk analysis and pread default (#29818)
- Hash inline binview values directly from their view (#29820)
- Use iceberg statistics (#29798)
- Reuse Iceberg catalog and cache REST catalog scans (#29790)
- Preserve sortedness of computed join keys (#29782)
- TopK was holding onto too much data (#29784)
- Write CSV temporal values straight into the buffer (#29778)
- Parse strftime format once and reuse buffer in regex replace (#29777)
- Reduce needless allocations in various kernels (#29775)
- Cache http object store (#29757)
- Fetch each record batch group in its own task (#29755)
✨ Enhancements
- Support SQL
CREATE TABLEwith column definitions in attached Iceberg catalogs (#30260) - Support SQL
CREATE [OR REPLACE] TEMP TABLE(#30256) - Support recursive SQL CTEs (#30188)
- Writing encrypted Parquet files (#29905)
- Support SQL
DROP TABLE [PURGE]on tables of attached catalogs (#30247) - Add conversion to/from masked numpy arrays (#30232)
- Add
overwrite_filterand dynamic partition overwrite tosink_iceberg(#29909) - Support SQL
JOIN ... ONsubqueries that read only one input (#30206) - Support full joins in join_where (#30169)
- Expose fused and nested loop join predicates in the IR visitor (#30176)
- Support LIMIT 1 in correlated SQL scalar subqueries (#30168)
- Support SQL
WITH RECURSIVEwhen no CTE reads itself (#30166) - Support correlated IN and EXISTS that read both inputs of a SQL join in ON (#30159)
- Support
CURRENT_DATE,CURRENT_TIMEandCURRENT_TIMESTAMPin SQL (#30144) - Allow
reinterpretbetweenInt128andDecimal(#30133) - Add
Expr.truncdivfor division rounding toward zero (#30138) - Support uncorrelated subqueries in SQL JOIN ... ON (#30141)
- Support correlated subqueries in SQL
JOIN ... ONand correlated scalar subqueries without an aggregate (#30131) - Support sinking to Iceberg table with bucket partitioned field (#30091)
- Add
create_namespace_if_not_existstosink_iceberg(#30087) - Attach Iceberg catalogs to
SQLContextviaregister_catalog(#30113) - Support OOC kill fraction (#30104)
- Support qualified table names in SQL (#29963)
- Reverse node for streaming engine (#29259)
- Add
pl.delete_iceberg(#30032) - Support named options in SQL
read_ipctable function (#30054) - Support named options in SQL
read_parquettable function (#29998) - Add experimental geoparquet read/write (#29987)
- Accept a list of paths in SQL read_* table functions (#30047)
- Add SQL
read_ndjsontable function with named options (#29954) - Support STRUCT and MAP type names in SQL (#29951)
- Support unstable column/schema options in SQL
read_csv(#29975) - Add sampling to KLL approx-quantile sketch (#29424)
- Rust resolver for scan_iceberg (#29753)
- Add
REGEXP_REPLACEandDATE_TRUNCto SQL (#29967) - Add
generate_seriesandrangeto SQL (#29912) - Add
create_if_not_existstosink_iceberg(#29908) - Support named options in SQL
read_csvtable function (#29917) - Add query-level IO active time and thread count metrics (#29792)
- Support time-zone-aware timestamps in SQL (#29899)
- Add support for reading encrypted Parquet files (#29606)
- Add SQL ASOF join (#29834)
🐞 Bug fixes
- Compare
Array(Struct)rows field by field (#30290) - Don't revive a dropped out-of-core spill context through a weak reference (#30291)
- Do not read the values stored under null
Arrayrows (#30286) - Return freed memory to the OS right away while out-of-core data is spilled (#30280)
- Propagate nulls through all nesting levels before row encoding (#30269)
- Add a method to merge finalized
approx_quantilesketches deterministically (#30263) - Use the supertype of both inputs for the
cov/corroutput dtype (#30262) - Keep buffered frames spillable while a streaming sort partitions (#30268)
- Respect memory limits of nested cgroups (#30266)
- Correct schema for integer literal divided by
Float16/Float32(#30158) - Correct
str.replacefor nested repetitions before.*$(#30258) - Allow
write_iceberginto Iceberg tables with required columns (#30253) - Correct operator overloading for reflect ops (#29946)
- Raise on unsupported Avro codecs in
read_avro(#30240) - Support several inputs to anonymous aggregations in the in-memory engine (#30152)
- Stop SQL
FROMitem aliases from acting as tables (#30207) - Correct unsigned parquet stats merging (#30199)
- Read Parquet schema in lockstep with arrow metadata hints (#30202)
- Raise on Delta tables with column mapping (#30204)
- Correct comparison with numpy array (#30241)
- Don't keep whole parquet string dictionaries alive for a few selected rows (#30248)
- Raise on SQL
CREATE TABLEof a name in the default catalog (#30235) - Widen truncated timestamp max statistics in
scan_deltafile skipping (#30194) - Fix wrong JSON output for
StructandArrayinside list (#30200) - Correct schema for
Float16/Float32divided byDecimal(#30093) - Pass every input of an anonymous aggregation to its streaming reduction (#30151)
- Support Array, nested List and Null in
is_first_distinctandis_last_distinct(#30162) - Refine
register_catalogforIF EXISTS, re-registration and scopes (#30160) - Support duckdb 2.0 in CI (#30161)
- Fix reading uncompressed buffers in compressed IPC files (#30084)
- Track SQL column names of every relation in a joined FROM item (#30153)
- Evaluate uncorrelated SQL EXISTS once and don't push len() into sliced unions (#30150)
- Treat a qualifier as the outer relation unless the subquery has a struct column of that name (#30149)
- Revert dropped offset check for bitmap into_mut (#30132)
- SQL EXISTS over aggregates and scope after semi/anti joins (#30146)
- Resolve SQL RIGHT SEMI and RIGHT ANTI join conditions against the right tables (#30135)
- Assign SQL join keys to the input holding the relation they name (#30137)
- Give correlated SQL aggregate expressions their value over no rows (#30130)
- Clear sorted flag on temporal expression inserting nulls (#30110)
- Ignore null right keys in asof join (#30122)
- Preserve order of sliced maintain-order group_by (#30096)
- Make ternary schema agree with type coercion (#29940)
- Raise error instead of panic when a sink is used as input of another operation (#29945)
- Reject
Stringoperands before float arms in true division type resolution (#30018) - Ensure we don't allow scan+sink on same file (#30065)
- Correct rolling window when offset is not negation of period (#30060)
- Disallow mixed string <=> numeric arithmetic in eager (#30071)
- Preserve temporal sorted flag only when allowed (#30058)
- Decimal cast to int should truncate (#30069)
- Casting far future dates shouldn't silently wrap (#30068)
- Correctly parse timestamps with offsets in JSON (#30064)
- Use the correct input schema for join expressions in the expression optimizer (#30053)
- Sliced list writes in Avro (#30061)
- Raise on String operands in eager Series true division (#30021)
- Only infer CSV/NDJSON schema from complete rows on progressive download (#29961)
- Check SQL casts to STRUCT[]/MAP[] and specify cast failure (#30026)
- Allow empty groups in multi key sort_by (#29825)
- Fix reading Parquet files with empty row groups (#30001)
- Check the last 4 bytes of inlined strings for invalid UTF-8 in parquet (#29981)
- Fix
shiftwithfill_valuereporting the wrong lazy schema (#29978) - Correct schema supertype for mixed bool <> unknown float ops (#29947)
- Sane output for full-key rows_by_key (#29943)
- More numerically stable ewm_std/var (#29942)
- Expand
$references instr.replacefor patterns without punctuation (#29966) - Fix wrong results and name clashes for computed SQL
GROUP BYkeys (#29965) - Clear null propagated flag when setting outer validity on struct (#29949)
- Accept Mapping types not just dicts where advertised (#29952)
- Check moment agg dtype support during planning (#29955)
- Fix panic in when/then that masks a multi-chunk struct column (#29804)
- Don't extract scalar common subexpressions in group-by aggregations (#29941)
- Keep key dtypes when moving predicates across join keys (#29936)
- Use upcast key dtype in schema of coalescing full join (#29931)
- Return null instead of raising for a null scalar offset in
list.slice(#29932) - Raise error instead of panicking on out-of-range datetimes in
to_list(#29918) - Don't drop filter bounds whose literal has another dtype than the column (#29916)
- Handle CSPE in in-mem projection (#29914)
- Don't wait for ooc cleanup in forked child (#29900)
- Resolve WITH clauses inside SQL derived tables and nested queries (#29897)
- Fix incorrect filter expression rewrites (#29887)
- Lost wakeup in async executor when waking an already-scheduled task (#29824)
- Resolve SQL subquery columns in their own scope first (#29889)
- Don't push filters below a select of only scalars (#29837)
- Write valid Parquet statistics and column index for NaN and nested values (#29868)
- Clamp the mask in
shift_and_fillfor inputs shorter thann(#29840) - Cast the inner values by their type in Array and List casts (#29864)
- Support empty NDJSON files read through
file://paths (#29862) - Support SQL
INwith a date against datetimes and with nested values of other types (#29861) - Support a string literal on the left of SQL
BETWEENand minus with a temporal value (#29856) - Track sortedness through joins (#29852)
- Apply SQL
SELECT *options to the wildcard columns only (#29854) - Fix row-estimation panic for aggregations over empty scan (#29850)
- Give Iceberg scans statistics before the cache and SQL subquery decisions (#29836)
- Infer Float16 from Parquet FLOAT16 logical type without Arrow schema (#29832)
- Support SQL
HAVINGwithoutGROUP BYand check columns outside aggregates (#29833) - Raise on oob gather indices (#29827)
- Call
statxvia raw syscall so wheels load on glibc < 2.28 (#29828) - Broadcast scalar inputs in
min_by/max_byandsort_by(#29808) - Fix wrong results in SQL REPLACE and ARRAY_AGG, join_where on decimals and sorted group-by keys (#29823)
- Support a string literal on the left of a SQL comparison with a temporal column (#29814)
- Livelock in TaskParker on very low thread counts (#29819)
- Compare floats with integers and decimals in SQL
IN(#29810) - Fix SQL ANY/ALL comparisons with a subquery (#29802)
- Fix SQL FILTER clauses that contain a subquery (#29794)
- Don't push filters into a cache past a projection (#29793)
- Phase logic error in merge_sorted (#29781)
- Incorrect length error in streaming group-by item() (#29787)
- NegativeSlice could hold onto more data than necessary (#29779)
- Fix small bugs in SQL aggregates and in group contexts (#29754)
- Fix
clipnot broadcasting length-1 input against full-length bounds (#29666) - Fix scan_lance CancelledError (#29774)
- Fix cross join filters on Decimals of different scales (#29776)
- Use correct bucket for CSV and NDJSON cloud scans (#29772)
- Re-entrance in PyO3 PolarsAllocator (#29763)
📖 Documentation
- List extra required deps for make pre-commit (#30145)
- Target the stub with
loc.stubin the styling example (#29996) - Migrate to Zensical (#29426)
📦 Build system
- Allow choosing the Python interpreter for the dev venv with
PYTHON(#30142) - Reduce binary size of SQL visitors and parallel group-by collect (#30171)
- Drop support for Python 3.10 and test on Python 3.15 (#29888)
🛠️ Other improvements
- Fix allocator-dependent failure in masked zero-copy
to_numpytest (#30298) - Simplify the out-of-core decay state and tests (#30283)
- Bump the clipboard-win dependency (#30264)
- Rename polars_cloud package (#30099)
- Fix Excel pyrefly lint (#30201)
- Reduce binary size of SQL visitors and parallel group-by collect (#30171)
- Sort unordered QUALIFY test query (#30167)
- Support duckdb 2.0 in CI (#30161)
- Mark large multi-column key streaming tests as slow (#30143)
- Bump
webpki-rootsandwebpki-root-certsto 1.0.10 (RUSTSEC-2026-0383) (#30129) - Don't make your private keys XKCD-221 compliant (#30115)
- Mark test as slow (#30086)
- Remove xdist_group "streaming" to speed up test suite by 50s (#30057)
- Replace the
homecrate withstd::env::home_dir(#30039) - Add polars-iceberg to Cargo.lock in Rust lint CI (#30033)
- Remove stale
polars-io-extentry from Cargo.lock (#30025) - Move SQL
read_csvoption tests from Rust to Python (#29983) - Run polars-stream unit tests in the Rust test workflow (#29703)
- Fail fast on dead cloud endpoints and re-enable Windows (#29621)
- Make
ExprIR::is_order_insensitivepublic (#29994) - Update rustls to 0.23.46 (#29944)
- A few additions to
.gitignore(#29633) - Fix flaky HTTP store cache tests (#29929)
- bump simd-json (#29838)
- Improve OOC out-of-disk error (#29761)
Thank you to all our contributors for making this release possible! @Aidavdw, @EndPositive, @FalkWoldmann, @Hoeze, @JasonLi314, @Jesse-Bakker, @Kevin-Patyk, @TiansuYu, @adamreeve, @alexander-beedie, @borchero, @carnarez, @dancsi, @dominikandreasseitz, @dsprenkels, @fsimkovic, @jqnatividad, @jvdd, @kdn36, @lun3x, @mroeschke, @nameexhaustion, @orlp, @ritchie46, @tahakotil and @useredsa
2.0.0Python Polars 2.0.0
💥 Breaking changes
- Run SQL window functions over grouped rows on the aggregated rows, and evaluate QUALIFY before the projection (#29746)
- Type exact SQL numeric literals as Decimal and truncate SQL
%/DIV (#29536) - Allow deterministic expression plugins to opt into CSE/CSPE (#29428)
- Read Parquet ENUM type as pl.String (#29331)
- More map operations (#29296)
- Deprecate cut/qcut (#29329)
🚀 Performance improvements
- Fix phases ending too soon due to join sampling (#29752)
- Group record batch fetches of remote IPC scans (#29750)
- Mark group-by node as memory intensive pipeline blocker (#29749)
- Don't inline slow OOC memory drift path (#29745)
- Only prefetch on unspill when there is memory headroom (#29701)
- Pushdown filters to scan_lance (#29538)
- Do not materialize equal
ScalarColumns inColumn::append/extend(#28989) - Evaluate scalar windows in the streaming window node (#29698)
- Don't materialize scalar columns in
DataFrame::estimated_size(#29711) - Defer cached pread from prefetch to decode for Parquet (#29702)
- Decode IPC scans out of order when order is not observed (#29675)
- IPC metadata suffix fetch (#29692)
- Speed up null tracking in streaming group-by sum, min and max (#29691)
- Cache Iceberg manifest files across scans (#29623)
- Improve pushdown support for fallible Hive predicates (#29594)
- Streamline
BytecodeParsermethod rewriting (#29632) - Stream
from_dictsrecords straight into column buffers (#29656) - Read correlated SQL aggregates from the outer join when the subquery repeats it (#29685)
- Emit files unordered for remote IPC files when order not observed (#29678)
- Don't keep input order for order-insensitive windows in all engines (#29680)
- Fix parallelization in top-k reducer (#29684)
- Share one bloom filter between the build threads of a runtime filter (#29677)
- Add streaming (out-of-core) sort (#29657)
- Insert keys that start a run of equal keys into the hot group-by table right away (#29673)
- Prefetch key-row hash table lookups in blocks (#29663)
- Lower count-guarded sums to a sum that is null on empty input (#29668)
- Use single PUT for small cloud uploads (#29603)
- Don't cache plain scans in the streaming engine (#29654)
- Change single-key group-by hash table layout and add prefetching (#29661)
- Use the integer ranges of sampled parquet row groups in filter estimates (#29655)
- Raise HTTP rate-limiter read init default (#29584)
- Change join hash table layout and add prefetching (#29653)
- Add a fast-path for
as_listwith only a single input (#29592) - Use one runtime filter builder per thread for a finished sample (#29646)
- Compute decimal addition, subtraction and multiplication in i64 when values fit (#29638)
- Spread decimal sums and means over lanes and check the sum's 38 digits once (#29637)
- Compute decimal addition, subtraction and multiplication without per-row validity (#29634)
- Skip or reuse UDF disassembly in
BytecodeParser(#29625) - Rescale a single decimal operand once in addition and subtraction (#29631)
- Dynamic hot table size in streaming GroupBy (#29629)
- Lower gathering from literal as elementwise (#29605)
- Execute fixed-size rolling windows on streaming engine (#29602)
- Use the finite rule of equi joins to determine build side of semi/anti (#29617)
- Drop the byte limit on runtime filter build sides (#29618)
- Add eviction-free path to GroupedReduction, with lanes (#29613)
- Improve window functions (#29591)
- Push down
is_nan/is_not_nanfilters to Iceberg (#29579) - Compute shared group-by agg input subexpressions once (#29574)
- Emit files unordered for remote Parquet files when order not observed (#29581)
- Filter rows by the runtime join key range (#29576)
- Update few-group sums, means and counts in lanes (#29573)
- Loop over 4k arrays in group-by update (#29572)
- Decode parquet scans out of order when order is not observed (#29546)
- Don't always row-encode multi-column group-by (#29570)
- Push down
str.starts_withfilters to Iceberg (#29545) - Trace join runtime filters through unions (#29565)
- Fold SQL temporal literals into plain values (#29562)
- Don't rehash stored key on every TotalIndexMap probe (#29561)
- Fuse drops into all filters on streaming engine (#29550)
- Join probe on Arrays directly (#29558)
- Better build side selection in equi-join sampler (#29524)
- Large optimisation for
BytecodeParserrewrite/dispatch (#29548) - Parallelize expressions in in-memory map fallback (#29535)
- Push down
!=filters to Iceberg (#29455) - Improve predicate stats (#29495)
- Scale bloom filters from keys seen (#29477)
- Optimize simple like queries (#29459)
- Insert head slice below select(len() <cmp> n) to enable slice pushdown (#29209)
- Parallelize row encoding in the row_encode expression (#29434)
- Degrade outer join optimization (#29432)
- Optionally reorder semi join (#29443)
- Borrow the cached regex instead of cloning it per page (#29422)
- Lower SQL LIKE '%x%' to a literal substring match (#29431)
- Optimize
is_inexpression (#29425) - Pushdown bloom filters in probe side (#29423)
- Narrow the decimal rescale to 64 bits when the value fits (#29396)
- Use a thread-local copy of a pushed-down regex predicate (#29411)
- Sample anti-join build side (#29416)
- Improve performance importing from arrow (#29412)
- Sample table size to determine build side in semi joins (#29375)
- Optimize row-encoding (#29405)
- Order pushed parquet predicate columns by measured selectivity (#29397)
- Coerce float literals to decimal instead of casting the column (#29395)
- Fix OOM on TPCH SQL and fix fuzzing errors (#29389)
- Restrict correlated SQL aggregates to requested keys (#29383)
- Prepare Parquet scans for row-group splitting in Polars Cloud (#29295)
- Skip row groups by join runtime ranges without a statistics frame (#29370)
- Reduce copy in
scan_lines(#29310) - Increase HTTP read rate-limit default (#29363)
- Evaluate a pushed parquet predicate sequentially per conjuct (#29352)
- Disable system certificates for
CloudScheme::Httpsources (#29284) - Reduce rechunk in
sort_in_place(#29343) - Dynamic predicates for hash joins (#29312)
- Use HTTP suffix range for Parquet size and footer (#29308)
- Derive predicates from join conditions (#29304)
- Lower uncorrelated subqueries to semi joins and push semi/anti joins below inner joins (#29289)
- Make leaf name iterator unique (#29291)
- Don't clone the full frame per arm in when/then/otherwise (#29258)
- Push inner joins before outer joins and rewrite left-join-is-null to anti join (#29277)
- Use stats to decide cross join buffering side (#29270)
- Improve cache-removal and join-order cost estimates (#29263)
- Improve CSPE cost evaluation (#29250)
- Fuse group-by pre-select into node after partition (#29251)
- Inline hot small functions (#29244)
- Fix plan-time regressions in projection pushdown for wide frames (#28724)
- Rechunk before selecting in group-by pre-select (#29219)
- Reuse Iceberg data file sizes (#29063)
✨ Enhancements
- Python Polars 2.0 (#29723)
- Enable OOC by default with 80% of available RAM as threshold (#29741)
- Support window frames in SQL FIRST_VALUE and LAST_VALUE, and add NTH_VALUE and a LAG/LEAD default (#29740)
- Set default OOC disk budget to 64 GB (#29734)
- Add POLARS_OOMKILL_THRESHOLD_MB (#29735)
- Improve estimated DataFrame memory usage (#29712)
- Extend pipe_with_dtype for multiple expressions (#29676)
- Attribute physical nodes to IR nodes (#29522)
- Make approx_quantile sketch states mergeable across processes (#29660)
- Add unstable scan_lance (#29413)
- New Expression and function: pipe_with_dtype (#29547)
- Resolve
is_inand Map lookup coercion from dtypes alone (#29487) - Cast the needle of
is_inand Map lookups exactly or not at all (#29486) - Support
Mapin JSON and NDJSON reading and writing (#29478) - Add
scan_external_reader(#29232) - Add
struct.eval(#29454) - Improve
BytecodeParserUDF variable resolution (#29553) - Type exact SQL numeric literals as Decimal and truncate SQL
%/DIV (#29536) - Make Iceberg sink commits idempotent across re-executions (#29512)
- Allow deterministic expression plugins to opt into CSE/CSPE (#29428)
- Improve cloud object_store IO error types and messages (#29471)
- Add erf(c) function (#29501)
- Update
BytecodeParserfor Python 3.15 (#29491) - Expose the registered source as
scan_fn.io_source(#28897) - Support selectors in
joinkeys (#29233) - Honor Iceberg sort orders in native sinks (#29318)
- Add
APPROX_QUANTILEto the SQL frontend (#29288) - Add support for
approx_quantilein the streaming engine (#29237) - Read Parquet ENUM type as pl.String (#29331)
- Expose more
scan_iceberg/delta-related attributes in the visitor for cudf_polars (#29297) - More map operations (#29296)
- Binning functions (#28888)
- Support
collectandcollect_batchesusingRemoteEngine(#28914) - Support GROUP BY GROUPING SETS, ROLLUP, CUBE and GROUPING() (#29278)
- Fix tpch SQL issues (#29269)
- Fuse filters in (inner) join operation (#29218)
- Add in-memory support for approximate quantile (#29206)
- Disable casts from
StringtoTime(#29215)
🐞 Bug fixes
- Find SQL aggregates by their function name, and raise on nested aggregate calls (#29751)
- Run SQL window functions over grouped rows on the aggregated rows, and evaluate QUALIFY before the projection (#29746)
- Match categories added after
is_inprepares a string haystack (#29744) - Give tied rows the same running aggregate in SQL windows, and support more window frames (#29736)
- Fix scan_lance CI error (#29737)
- Rank NULLs and ties in SQL window functions, and add PERCENT_RANK, CUME_DIST and NTILE (#29729)
- Read from database without requiring SQLAlchemy
asyncioextra (#29713) - Don't slice the input of a select that has a window expression (#29725)
- Fix named SQL windows and raise for window shapes that gave wrong results (#29720)
- Preserve projections across nested caches (#29710)
- Allow the same equi-join key pair twice in a join condition (#29715)
- Defer fallible Hive pruning until after partition rewriting (#29700)
- Make dynamic window bounds data-independent (#29706)
- Panic on empty windows in dynamic group-by (#29704)
- Only reserve builder room for the rows a sort bucket receives (#29696)
- Fix handling of pruned input nodes during graph traversal (#29532)
- Minor fixes for
DataFrame"orient" behaviour (#29679) - Fix
list.containson multi-chunk sliced lists (#29635) - Make
is_sortedorder nested types assortdoes (#29683) - Fix compile errors after attributing physical nodes to IR nodes (#29687)
- Raise on ragged rows instead of silently dropping values (#29658)
- Exclude IPC dictionary batches from record batch stats row count (#29672)
- Handle reordered groups in sort_by (#29639)
- Don't recompile regex (#29597)
- Fix null and mixed-dtype edge cases in
is_in(#29593) - Errors in str.to_lowercase and str.to_titlecase (#29607)
- Make str.zfill consistent with pad for unicode (#29604)
- Empty group-by argmin/max on scalar (#29608)
- Support nested by in grouped
min_by/max_byin streaming engine (#29628) - Guard
is_nan/is_not_nanpushdown against Decimal columns in Iceberg (#29610) - Fix read_excel from_arrow error (#29492)
- Improve default S3 endpoint resolution (#29470)
- Don't let a SQL derived table alias replace a registered table (#29577)
- Write a single Avro header when a DataFrame has multiple chunks (#29569)
- Fix bug in
group_bypredicate pushdown (#29499) - Preserve literal state in list/arr eval under group_by (#29557)
- Don't evict when updating an existing
LRUCachekey (#29551) - Use SQL decimal result scales for
*and/(#29520) - Compute mixed-scale Decimal operations without a lossy common cast (#29519)
- Keep Decimal results within their declared precision and round Decimal to float casts correctly (#29539)
- Suggest
str.containsfor string containment inmap_elementsUDFs (#25472) - Keep a landed Iceberg snapshot's manifests when a commit response is lost (#29511)
- Allow deterministic expression plugins to opt into CSE/CSPE (#29428)
- Keep requested length in streaming negative slice (#29399)
- Match engine output dtype in planner for
Decimaland integer arithmetic (#29515) - Push down
!=filters to Iceberg (#29455) - Reject non-numeric input and preserve
Decimalscale inentropy(#29228) - Honor env var in Parquet/IPC pipeline budget (#29518)
- Stop casting data to a Decimal needle in
is_in, allowArray(Null)casts (#29485) - Clamp inflight budget from HTTP rate-limiter (#29497)
- Don't propagate RUSTFLAGS into dependencies in coverage (#29510)
- Read legacy Parquet LIST structures according to the spec (#29469)
- Address Python 3.15 compatibility issue with
_is_empty_method(#29489) - Insert head slice below select(len() <cmp> n) to enable slice pushdown (#29209)
- Fix loading negative decimals from iceberg statistics (#29452)
- Support
NaNcomparison pushdown to Iceberg (#29453) - Stop parse_version from splicing a pre-release suffix into the number (#29401)
- Produce correct parquet statistics for enum columns (#29364)
- Don't restart predicate pushdown if the predicate was not pushable (#29418)
- Add regression test for Decimal/integer arithmetic schema (#29120)
- Dynamic boundary schema mismatch (#29448)
- Avoid panic on Enum and Categorical literals in Parquet predicates (#29421)
- Fix SQL count star on CSV performance regression (#29427)
- Respect include_bounaries on in-mem empty dynamic (#29440)
- Fix over ordering for multiple cols (#29417)
- Enable dtype-i128 alongside dtype-decimal in polars-stream (#29410)
- Prevent bias in
'req_double'at the median by actually merging the sketches (#29326) - Fix OOM on TPCH SQL and fix fuzzing errors (#29389)
- Size row-index table statistics from the statistics frame (#29381)
- Preserve categories object in pyo3-polars (#29385)
- Strip the leading slash from Windows Delta table roots (#29386)
- Isolate expanded Python dataset scans (#29378)
- Make Iceberg bucket sort keys serializable (#29376)
- Apply "schema_overrides" in
read_databasefor Arrow-based drivers (#29273) - Remove duplicated word in rate-limit comment (#29372)
- Check whether Datetime is monotonically increasing dynamically (#29293)
- Keep input order of unmatched build rows in ordered streaming equi join (#29371)
- Unaliased constants in SQL SELECT with GROUP BY (#29367)
- Consistent
DateandDecimalmeans between the streaming and in-memory engines (#29359) - Respect string statistics for enum columns during parquet scanning (#29366)
- Support selectors properly in DataFrame n_unique (#29360)
- Decimal Parquet statistics for decimal/i128/f16 (#29350)
- Early check for converting integer map keys (#29348)
- Lowering for input-independent filter (#29340)
- Correlation of constant column returning non-NaN for larger inputs (#29319)
- Incorrect height in multi-input GroupBy (#29332)
- Fix panic in scan_iceberg for snapshot_id before a schema change (#28895)
- Resolve arithmetic
Structsupertypes per-field (#29261) - Fix comparison expression method comment (#29257)
- Don't panic on an empty or null quantile expression input (#29240)
- Detect list-valued quantile literals in approx_quantile
auto(#29236) - Various map issues (#29147)
- Rolling quantile should respect window trimming (#29200)
- Ensure ignored columns are excluded from dtype
Wildcardselector (#29220)
📖 Documentation
- Add engines and other missing items to API reference (#29493)
- Update migration guide with rc2 changes (#29415)
- Clarify that ambiguous parameter refers to DST transitions (#28873)
- Document gzip/zstd compression for read_csv and scan_csv (#29387)
- Add LazyFrameResolver to reference guide (#29379)
- Add user-guide for new enable_monitoring feature (#29358)
- Improve join_where engine tag (#29234)
🛠️ Other improvements
- Hold the category mapping in the categorical
is_inlookup (#29747) - Derive serde for moment states (#29742)
- Give each crate its own temporary column name counter (#29689)
- Apply
A-io-partitioninglabel for Hive-related issues and PRs (#29659) - Use explicit match arms in
LogSeriesoperations & improve error messages (#29575) - Improve reliability of a slightly flaky test (#29587)
- Split
has_joins_or_unionsintohas_joinsandhas_unions(#29338) - Remove scheduled cache cleaning (#29517)
- Add window placement to group by rolling (#29529)
- Add window placement to group by dynamic (#29527)
- Fix flaky test (#29530)
- Improve cloud object_store IO error types and messages (#29471)
- Fix iceberg-related test failures (#29533)
- Add IR structs for temporal group-by options (#29526)
- Workflow tweaks (#29502)
- Share the temporal group-by index space (#29498)
- Compute the first dynamic window start in one place (#29484)
- Fix anti/semi join test row with invalid result order expectation (#29467)
- Additional negative Decimal coverage for Iceberg (#29468)
- Add regression test for Decimal/integer arithmetic schema (#29120)
- Tidy the staged parquet predicate (#29408)
- Add dymanicpredicates to preferred build sides (#29335)
- Deprecate cut/qcut (#29329)
- Mark test as slow (#29336)
- Bump maturin (#29282)
- Bump object_store crate to 0.14.2 (#29317)
- Update rustls dependency to version
0.23.45(#29303) - Bump build deps used in ARM64 Windows release pipeline (#29280)
- Fix the stalling
test_fused_many_morsels_and_skewtest (#29290) - Use
SpillFrames inDataFrameSearchBuffers(#29207) - More obvious
MapChunkedstorage handling (#29248) - Centralize hoisted aggregate bookkeeping and clarify grouping predicates (#29287)
- Update analytics endpoint config (#29222)
- Add a blanket
lf.collect().schema == lf.collect_schema()check (#29224) - Add expand_paths parameter to toggle path expansion (#29210)
Thank you to all our contributors for making this release possible! @ATL2001, @Aidavdw, @AlessandroKuz, @JakubValtar, @Kevin-Patyk, @MarcoGorelli, @Punisheroot, @Rodrigo-Palma, @SatvikMishra08, @TNieuwdorp, @aarushkandukoori, @abokhalill, @alexander-beedie, @atharva7905k, @ayushh0110, @borchero, @c-peters, @cBournhonesque, @carnarez, @dancsi, @dominikandreasseitz, @dsprenkels, @fsimkovic, @gautamvarmadatla, @hadrian-reppas, @jonasdedden, @kafka1991, @kdn36, @krithikashreeL, @lun3x, @madsbk, @matthewbayer, @mikhail5555, @mroeschke, @nameexhaustion, @orlp, @r-brink, @ritchie46, @shaneraphel, @vgvr0 and @wtn