~/talk

SQL Test Kit, or how to unit test any SQL query

Talkat Voxxed Days Zürich 2024 · on Thursday, 2024-03-07· [data-engineering, testing]
links:none on file
slides:none on file

SQL Test Kit (https://pypi.org/project/sql-test-kit/) is a Python library that unit tests real BigQuery SQL by query interpolation — it injects small test tables directly into SELECTs so no temp tables are created and queries run unchanged on BigQuery. Works for any SELECT and any data warehouse dialect, uses pandas for fixtures, and runs against live cloud services. Tradeoffs: requires internet, tests are noticeably slower than pure in‑memory tests but catch real dialect bugs.

AI-written summary · about

  1. 0:00SQL Test Kit intro
  2. 3:00Testing SQL in production risks
  3. 6:34SQL Test Kit for unit tests
  4. 8:44Interpolating test data
  5. 10:30Advantages and limitations
  6. 12:21Q&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.