Hollywood legends Brad Pitt and Adam Sandler are to team up for a new Netflix film, which will be directed by Noah Baumbach.