when you ask someone a question and they answer something completely different than what you asked

I asked my dentist if the filling would hurt. He launched into a fifteen-minute explanation of his son's college major. When he finally finished, I said, "So... will it hurt?" He looked at me like I'd invented a new language and said, "I already told you—he's doing engineering."