“You can’t expect pears out of an elm tree” or “No le pidas peras al olmo”
German for “like father, like son” is “the apple doesn’t fall far off the tree trunk”. But many people nowadays use “the apple doesn’t fall far off the pear tree”, which is a variant that I think originally was supposed to suggest illegitimate fatherhood.
That’s interesting, because “the apple doesn’t/didn’t fall far from the tree” is a known Anglophonic saying that basically means that a child turned out a lot like a parent (gender not necessarily specified). I wonder if one is a calque of the other.
The above poster isnt really correct. We have an actual saying that is the literal translation: "Der Apfel fällt nicht weit vom Stamm ". And it means exactly what you suggest, a child being very much like one of their parents in one way or another.
Like father, like son exists as well, “Wie der Vater so der Sohn”.