The Atlanta Hawks acquired Brooklyn Nets guard Jeremy Lin in a trade on Thursday night, league sources told ESPN.

Atlanta sends Brooklyn a 2020 second-round pick via Portland and the rights to Isaia Cordinier, league sources said. Coridiner is a 2016 second-round pick who has remained overseas.

For now, Lin will join No. 5 overall pick Trae Young and guard Dennis Schroder in the Hawks’ backcourt. However, the deal for Lin will likely expedite a Schroder trade this summer, league sources said.

The Hawks absorbed Lin’s $12.5 million expiring contract into its salary-cap space. Lin, 29, suffered a season-ending ruptured patella tendon on opening night last year. He had averaged 14.5 points and five assists in the 2016-17 season for the Nets.

D’Angelo Russell and Spencer Dinwiddie will be the Nets’ primary point guards this season.