Warriors get a better shooter to fill the Klay gap.
Pelicans get a young raw hot/cold player.
Both are expiring deals. J.J will likely leave in the off-season and Pelicans might try to re-sign Oubre to a cheaper deal as a second unit back-up for Ingram.
You could make a case for the second round pick to go either way