~/talk

Introduction to Spark Datasets

Talkat Scala Days Copenhagen 2017 · 2017-05-30..06-02· [data-visualization]
slides:none on file

Datasets claim to combine relational and functional APIs and deliver measurable wins: benchmarks show Dataset/DataFrame runs far faster than RDDs and a sample representation drops from 33 MB to 7 MB in memory, mostly because the optimizer can operate on schema and serialized data and do partial aggregations. Caveats include GroupByKey is the devil for RDDs, iterative ML loops sometimes explode because the optimizer lacks common‑subexpression recognition, and structured streaming via readStream / structured streaming works but lacks some trigger and watermark features.

AI-written summary · about

  1. 0:00Intro
  2. 3:53What is Spark?
  3. 5:54The different pieces of Spark
  4. 6:50Why should we consider Spark SQL?
  5. 10:37What is the performance like?
  6. 11:52How is it so fast?
  7. 12:51How much more space efficient?
  8. 13:44Getting started
  9. 16:42Loading some simple JSON data
  10. 18:28Sample case class for schema
  11. 18:44Then apply some type magic
  12. 19:38What do relational transforms look like?
  13. 20:18Writing a relational transformation
  14. 23:45What can the optimizer do now?
  15. 25:44Using Datasets to mix functional & relational style
  16. 27:40And functional style maps
  17. 29:49What is DS functional perf like?
  18. 33:07Build the recipe for each query
  19. 35:20Windowed operations
  20. 36:13Window specs
  21. 36:52Summary: Why to use Datasets
  22. 38:10The next book.....
~/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.