In Taiwan, both 波羅 and 波羅蜜 is this - otherwise known as "jack fruit" in English:
I wonder if the 波羅蜜 for pineapple is because it kind of looks like a 波羅, but is sweet like 蜜? Just guessing here...
Otherwise, in Taiwan, a pineapple is 鳳梨 or 菠蘿 (with the grass on top).
Or, sounding as it does in Taiwanese, 翁來！ Used as a well wishing for wealth.