I have been in the same boat, I was with the partner from hell several months. First know your stuff, study, study, study.
Then every time he says something to you, just agree-do what it takes to get through probation. I have worked over the years with lots of know it alls. Sooner or later he will make a mistake-then he will be the one at the receiving end of
criticism.