-
Notifications
You must be signed in to change notification settings - Fork 146
/
00_agenda-2-days-Spark-SQL-for-PySpark-Developers.html
213 lines (187 loc) · 10 KB
/
00_agenda-2-days-Spark-SQL-for-PySpark-Developers.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Apache Spark™ Advanced for PySpark Developers Workshop (2 Days Online)</title>
<meta name="description" content="Apache Spark™ Advanced for PySpark Developers Workshop (2 Days Online)">
<meta name="author" content="Jacek Laskowski">
<link rel="stylesheet" href="reveal.js/css/reveal.css">
<link rel="stylesheet" href="reveal.js/css/theme/beige.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="reveal.js/lib/css/zenburn.css">
<!-- Jacek: custom formatting -->
<link rel="stylesheet" href="revealjs-css/jacek.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match(/print-pdf/gi) ? 'reveal.js/css/print/pdf.css' : 'reveal.js/css/print/paper.css';
document.getElementsByTagName('head')[0].appendChild(link);
</script>
</head>
<body>
<div class="reveal">
<div class="footer">
<footer style="font-size: small;">
© <a href="https://medium.com/@jaceklaskowski">Jacek Laskowski</a> 2022 / <a href="https://twitter.com/jaceklaskowski">@JacekLaskowski</a>
/ jacek@japila.pl
</footer>
</div>
<div class="slides">
<section class="intro" data-transition="zoom" id="home">
<p>
<img width="17%" style="background:none; border:none; box-shadow:none;" data-src="images/spark-logo.png">
<img width="10%" src="images/jacek_laskowski_20201229_200x200.png" style="border: 0">
</p>
<h1 style="font-size: 2.55em;">Apache Spark™<br>Advanced for PySpark Developers Workshop <small>2 Days Online</small></h1>
<h4 style="font-size: smaller;">
<a href="https://twitter.com/jaceklaskowski">@jaceklaskowski</a> / <a href="https://stackoverflow.com/users/1305344/jacek-laskowski">StackOverflow</a> / <a href="https://github.com/jaceklaskowski">GitHub</a> / <a href="https://www.linkedin.com/in/jaceklaskowski/">LinkedIn</a>
<br>
The "Internals" Books: <a href="https://books.japila.pl/apache-spark-internals">Apache Spark</a> / <a href="https://books.japila.pl/spark-sql-internals/">Spark SQL</a> / <a href="https://books.japila.pl/delta-lake-internals">Delta Lake</a>
</h4>
</section>
<section>
<section id="speaker" style="font-size: 85%" data-markdown>
<textarea data-template>
<p><img width="12%" src="images/jacek_laskowski_20201229_200x200.png" style="border: 0"></p>
* **Jacek Laskowski** is an IT Freelancer
* Specializing in [Apache Spark](https://spark.apache.org), [Delta Lake](https://delta.io/), [Apache Kafka](https://kafka.apache.org), [Kafka Streams](https://kafka.apache.org)
* Development | Consulting | Training | Speaking
* Best known by "The Internals Of" online books
* Among contributors to [Apache Spark](https://github.com/apache/spark/graphs/contributors)
* Among [Confluent Community Catalyst](https://www.confluent.io/nominate/) (Class of 2019 - 2020)
* Contact me at **jacek@japila.pl**
* Follow [@JacekLaskowski](https://twitter.com/jaceklaskowski) on twitter <br>for more #ApacheSpark, #DeltaLake, #ApacheKafka, #KafkaStreams
</textarea>
</section>
<section id="gitbooks">
<p><img width="12%" src="images/jacek_laskowski_20201229_200x200.png" style="border: 0"></p>
<div style="text-align: left">
<p>"The Internals Of" Online Books:</p>
<p>
<ol>
<li><a href="https://books.japila.pl/apache-spark-internals/">The Internals of Apache Spark</a></li>
<li><a href="https://books.japila.pl/spark-sql-internals/">The Internals of Spark SQL</a></li>
<li><a href="https://books.japila.pl/delta-lake-internals/">The Internals of Delta Lake</a></li>
<li><a href="https://books.japila.pl/">more...</a></li>
</ol>
</p>
</div>
</section>
<section id="stackoverflow">
<div style="text-align: center">
<p>
Jacek is active on <a href="http://stackoverflow.com/users/1305344/jacek-laskowski">StackOverflow</a>
</p>
<p>
<img width="70%" src="images/jaceklaskowski-stackoverflow-stats.png" style="border: 0">
</p>
</div>
</section>
</section>
<section id="goal" data-markdown>
<textarea data-template>
# Goal
<p>
Advance in understanding the internals of<br />
<b><span style="font-size: 140%">Spark SQL</span></b><br />
for Intermediate and Advanced PySpark Developers
</p>
</textarea>
</section>
<section id="agenda" data-markdown style="font-size: 75%;">
<textarea data-template>
## Agenda
1. [The Internals of Structured Query Execution](spark-sql-internals-of-structured-query-execution.html)
* [Exercise: How to add days (as values of a column) to date?](https://jaceklaskowski.github.io/spark-workshop/exercises/sql/How-to-add-days-as-values-of-a-column-to-date.html)
1. [Joins](spark-sql-joins.html)
* [Exercise: Finding Most Populated Cities Per Country](https://jaceklaskowski.github.io/spark-workshop/exercises/sql/Finding-Most-Populated-Cities-Per-Country.html)
1. [Caching and Persistence](spark-sql-dataset-caching-and-persistence.html)
* [Exercise: Finding 1st and 2nd Bestsellers Per Genre](https://jaceklaskowski.github.io/spark-workshop/exercises/sql/Finding-1st-and-2nd-Bestsellers-Per-Genre.html)
1. Web UI
* [Exercise: Calculating Gap Between Current And Highest Salaries Per Department](https://jaceklaskowski.github.io/spark-workshop/exercises/sql/Calculating-Gap-Between-Current-And-Highest-Salaries-Per-Department.html)
* [Exercise: Using pivot for Cost Average and Collecting Values](https://jaceklaskowski.github.io/spark-workshop/exercises/sql/Using-pivot-for-Cost-Average-and-Collecting-Values.html)
1. Logical and Physical Query Optimizations
* [Exercise: split function with variable delimiter per row](https://jaceklaskowski.github.io/spark-workshop/exercises/sql/split-function-with-variable-delimiter-per-row.html)
* [Exercise: Adding count to the source DataFrame](https://jaceklaskowski.github.io/spark-workshop/exercises/sql/adding-count-to-the-source-dataframe.html)
1. [Adaptive Query Execution](https://books.japila.pl/spark-sql-internals/adaptive-query-execution/)
</textarea>
</section>
<section>
<section id="in-da-clazz">
<h1>In-Class Preparations</h1>
<h4>Make Instructor's Life Slightly Easier. Thanks!</h4>
</section>
<section id="introduce-yourself">
<h2>Introduce Yourself</h2>
<ol>
<li>Say <b>"Hi!"</b> in the chat window</li>
</ol>
</section>
<section id="schedule">
<h2>Schedule</h2>
<ol>
<li>2 days</li>
<li>6 x 50-minute blocks / day</li>
<li>breaks every 1-2 blocks</li>
</ol>
</section>
<section id="addendum">
<h2>Addendum</h2>
<ol>
<li>Ask questions in the chat window</li>
</ol>
</section>
</section>
<section style="text-align: left" data-markdown id="questions">
<textarea data-template>
# Questions?
* Follow [@jaceklaskowski](https://twitter.com/jaceklaskowski) on twitter (DMs open)
* Upvote my questions and answers on [StackOverflow](http://stackoverflow.com/users/1305344/jacek-laskowski)
* Contact me at **jacek@japila.pl**
* Connect with me at [LinkedIn](https://www.linkedin.com/in/jaceklaskowski/)
</textarea>
</section>
</div>
</div>
<script src="reveal.js/lib/js/head.min.js"></script>
<script src="reveal.js/js/reveal.js"></script>
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
slideNumber: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
menu: {
markers: true,
openSlideNumber: true
},
dependencies: [
{ src: 'reveal.js/lib/js/classList.js', condition: function () { return !document.body.classList; } },
{ src: 'reveal.js/plugin/markdown/marked.js' },
{ src: 'reveal.js/plugin/markdown/markdown.js' },
{ src: 'reveal.js/plugin/zoom-js/zoom.js', async: true },
{ src: 'reveal.js/plugin/notes/notes.js', async: true },
{ src: 'reveal.js/plugin/highlight/highlight.js', async: true, callback: function () { hljs.initHighlightingOnLoad(); } }
]
});
</script>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-45999426-3', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>