Skip to content

Book code listing contains error in nestedJoin function #7

@stan-t

Description

@stan-t

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

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions