Yes such conditions are very rare in which esophageal tear occurs due to vegetable foreign body.
They have removed apple piece parts or parts of esophagus
As removing the pieces of foreign body is usual.
But if they had to have remove parts of esophagus it is rare ,as the foreign body may cause tear in the wall of esophagus but why removal of parts of esophagus done .
It will be good if you talk to your doctor they will be able to explain it better.