Ok, question: why is Sam (and Gilly, to some extent) alive?
He would have been a great “Aww, dang” death, but there he was, endangering his friends who had to rescue him while groveling on the ground.
The only thing that he brings to the final showdown is his brains and knowledge. Other than him pointing out the diary passage about the annulment, which anyone could do, what special role does he play?
Something is going to happen in E5 that will require maester knowledge. More supernatural critters? The Mountain plus perhaps a yet-unseen mountain range of additional Cersei zombies?
There were too many shots of him writhing under wights with good guys saving him to be just a background character for the rest of the season.
It’s quiet... Too quiet...