Spoilers from here. The ending is discussed in full.
Fletcher lures Andrew onto the stage at a festival and gives him the wrong music, intending to humiliate him publicly in revenge for the testimony that cost him his job. Andrew walks off, comes back, cuts across Fletcher's introduction and starts playing. He takes control of the band, plays an extended solo, and the film ends on the two of them looking at each other.
What the final look is not
It is not reconciliation, and it is not Fletcher being proved right. Fletcher spends the film insisting that abuse produces greatness and telling a story about a cymbal thrown at Charlie Parker's head to justify it.
That story, as the film presents it, is a distortion of what actually happened, and Fletcher's version is the one he needs rather than the one that is true. Nothing in the ending confirms his method; what it confirms is that Andrew has become the kind of person who can beat him at it.
What Andrew wins
The scene is genuinely triumphant and the triumph is narrow. He seizes an ensemble, plays superbly and forces Fletcher to follow him rather than the reverse. For the first time the older man is reacting.
What he has given up is established across the whole film: the relationship he ended because it would be a distraction, his relationship with his father, whose face is shown watching from the wings and then shut out, and any conception of himself that is not about the drums.
The father in the doorway
The detail that decides how the ending reads. Andrew's father watches the beginning of the solo from the wings, and as the performance builds the door effectively closes on him.
The last thing the film shows outside the two men is the person who came to collect his son after a humiliation, being left behind. Whatever Andrew has entered, he has entered it alone.
Fletcher’s nod
He smiles and cues the ending, and the most defensible reading is that he has got what he wanted, which was never a great musician in particular. Fletcher wanted to be the man who produced one, and he now believes he is.
Whether Andrew is actually great is left unanswered. He plays one extraordinary solo under extreme conditions, which is not the same as a career.
What the director has said
Damien Chazelle has been consistent in interviews that this is not a happy ending, and has described Andrew's likely future in bleak terms, suggesting a young man who burns out rather than a great artist being born.
The film is constructed to make you feel otherwise in the moment, which is the more interesting achievement. It gives you a rush of exhilaration and then leaves you to notice that you have just been persuaded by exactly the argument the film has spent two hours dismantling.
Is Fletcher a villain?
The film is careful not to make that easy. His speech in the bar about the death of the phrase that means good enough is coherent and partly persuasive, and he is not wrong that comfort produces very little.
What he is wrong about is the causal claim. His method demonstrably drove a former student to suicide, a fact he lies about, and the film gives him no argument for why the one outcome he wants justifies the ones he produces.
Does Andrew play well?
Within the film, yes, and the drumming is genuinely impressive. It is also worth noting that the solo is not how the situation would resolve in a real performance, where a drummer seizing a set from the bandleader would end a career rather than start one.
The film is not aiming at accuracy about jazz, and musicians have said so at length. What it is aiming at is the experience of the pursuit, and on that it is precise.