~/talk

The middle way for static typing in Spark DataFrames

Talkat ScalaCon 2022 · 2022-10-04..10-07· [scala, data-engineering]
links:none on file
slides:none on file

A new library Doric provides typed column expressions for Spark DataFrames, implemented with cats and shapeless and using sourcecode for error locations. It narrows runtime failures to reduces runtime errors to two kinds (missing column or type mismatch), validates column types at compile/run time, reports multiple column errors in one run, and links errors to code locations. Tested on Spark 2.4+ in a production filtering/modeling project, it is built, used, and shown to improve error diagnosis and readability while remaining compatible with standard DataFrame APIs.

AI-written summary · about

  1. 0:00Intro
  2. 2:10Scala type system
  3. 3:11Spark DataFrame vs datasets
  4. 11:06Possible "errors" working in spark
  5. 17:47Benefits? Compile time errors
  6. 19:58Next? Runtime validation similar to Dataset
  7. 26:25Modularization FTW!!!
  8. 29:54What is doric??
  9. 31:56Doric is super easy to use
  10. 34:43Doric splits castings in two types of castings
  11. 39:09Doric syntax sugar level
  12. 43:11What about structs?
  13. 48:15Doric highlights
  14. 48:40Doric current state
~/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.