~/talk

Fast and furiously safe: type safe programming with Spark DataFrames

Talkat Scala Love 2022 · on Friday, 2022-02-18· [scala, data-engineering]
links:none on file
slides:none on file

doric is an open-source Scala DSL that makes Spark DataFrame column expressions type-safe at compile time, turning missing-column and wrong-type runtime failures into two explicit checks that can prevent DataFrame creation. It implements a thin layer over Spark, uses cats Validated error accumulation to report all errors in one run, and uses the sourcecode library to attach source locations to bad column definitions. Tested against Spark 3.1, current release 0.0.2, it preserves DataFrame performance while requiring minimal syntax changes.

AI-written summary · about

  1. 0:00Intro
  2. 1:03Spark DataFrame vs datasets
  3. 1:47Possible "errors" working in spark
  4. 3:59Column party
  5. 5:04Let's crank it up
  6. 5:54Benefits? Compile time errors
  7. 7:26What we need to check the type of a column?
  8. 8:15Type check verification benefits
  9. 9:51Spark is fail fast
  10. 11:35Validate benefits
  11. 12:27Not only for a single operation
  12. 14:23Fast location of error source
  13. 16:56Modularization FTW!!!
  14. 19:19Doric vs other flavors
  15. 21:11Doric highlights
  16. 22:05Doric is super easy to use
  17. 23:44Use directly in your previous spark code
  18. 24:23Doric splits castings in two types of castings
  19. 27:51Doric syntax sugar level
  20. 28:06Easy to work with types
  21. 29:01Spark string interpolators
  22. 29:56Doric current state
  23. 30:46Doric near future work
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.