~/talk

The Polars vs SQL differences nobody is talking about

Talkat PyData London 2026 · on Sunday, 2026-06-07· at 14:45· Doddington Forum· [databases]
slides:none on file

Polars treats data as named, same-length columns so row order preserved unless explicitly changed, allows column-wise operations that can produce length-mismatches, and treats lit(1) as a scalar; SQL treats tables as unordered bags of rows, repeats literals per row, and keeps rows atomic causing different filter/aggregate outcomes. Empty aggregations yield 0 in Polars but NULL in SQL. A compatibility layer called Narwhals enforces rules (no length-changing expressions without aggregation, require ORDER BY for orderable aggs) to make ports safe.

AI-written summary · about

  1. 0:00Polars vs SQL differences
  2. 1:51Why Polars and SQL matter
  3. 3:55Mental models for Polars and SQL
  4. 6:26Row order differences
  5. 8:55Column independence pitfalls
  6. 11:01Literal values in aggregations
  7. 12:44Bonus differences
  8. 16:36Narwhals abstraction
  9. 18:45Migration rules
  10. 19:49Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.