Hello, I just wanted to point out an error in the book's code.

Please see the screen capture from the e-book. Lines 23-24 are missing the collect_list aggregation method.
The same code in Github, however, is correct (excerpted below):
resDf = resDf .groupBy(leftColumns) .agg( collect_list(col(TEMP_COL)).as(nestedCol));
Thanks.