Skip to content

Commit 354c715

Browse files
authored
Merge pull request #328 from isangwanrahul/main
corrected code mistakes
2 parents 14baed7 + 6c020d8 commit 354c715

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bootcamp/materials/1-dimensional-data-modeling/sql/load_players_table_day2.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ SELECT
6565
ELSE 'bad'
6666
END::scoring_class AS scoring_class,
6767
w.season - (seasons[CARDINALITY(seasons)]::season_stats).season as years_since_last_active,
68-
w.season,
69-
(seasons[CARDINALITY(seasons)]::season_stats).season = season AS is_active
68+
(seasons[CARDINALITY(seasons)]::season_stats).season = season AS is_active,
69+
w.season
7070
FROM windowed w
7171
JOIN static s
72-
ON w.player_name = s.player_name;
72+
ON w.player_name = s.player_name;

bootcamp/materials/3-spark-fundamentals/src/jobs/team_vertex_job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ def main():
3333
.appName("players_scd") \
3434
.getOrCreate()
3535
output_df = do_team_vertex_transformation(spark, spark.table("players"))
36-
output_df.write.mode("overwrite").insertInto("players_scd")
36+
output_df.write.mode("overwrite").insertInto("team_vertex")

0 commit comments

Comments
 (0)