CertLumen

Databricks Data Engineer Associate · Section 3 · 22% of the exam

Combine DataFrames with operations such as Inner join, left join, broadcast join, multiple keys, cross join, union, and union all.

One of the objectives of the Databricks Certified Data Engineer Associate exam, in the section “Data Transformation and Modeling”. Here is what it covers, the points to remember and a question to try.

What it covers

Joins combine DataFrames side by side by matching keys, and set operations stack them vertically. This lesson covers every join type and the rows it returns, multi-key and NULL-safe conditions, ambiguous columns, broadcast and cross joins, and the union family, including the trap between DataFrame union and SQL UNION.

Points to remember

  • join(other, on, how): on as a name or list keeps one key column; an expression keeps both and can cause AMBIGUOUS_REFERENCE.
  • Duplicate keys multiply rows; semi and anti joins return only left columns and never duplicate a left row.
  • left_semi = left rows with a match (like EXISTS); left_anti = left rows without a match (like NOT EXISTS).
  • Multi-key expressions use & with each comparison in parentheses; Python and raises an error.
  • NULL keys never match with =; use eqNullSafe or <=>.

In the course

The lesson Joins & Set Operations teaches this objective (about 45 minutes), and 9 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.

More in this section

← Previous objective · All 29 objectives · Next objective →