Will a Pineapple Ripen on the Counter? Do Not Expect More Sweetness
Do not buy an under-ripe pineapple expecting it to become much sweeter on the counter. Pineapples should be harvested ready to eat. Their shell can change color after harvest without the flesh ripening like a banana.

Separate shell color from internal ripening
UC Davis explains that ethylene can remove green color from pineapple rind without causing the same internal ripening process. A yellower shell after several days is therefore not proof of a sweeter interior.
Buy for present quality
Look for a sound, firm fruit without decay, major bruising or cracks. The crown should look healthy. These are quality clues, not a guarantee of sweetness or a reason to keep damaged fruit waiting for improvement.
Do not borrow another fruit’s trick
A method intended to ripen an avocado or banana should not be assumed to work for pineapple. Choose a pineapple you expect to use, rather than treating counter storage as a required flavor-building step.
Plan the prepared portion
A whole pineapple includes a substantial crown, rind and core. If the recipe gives an amount of prepared pieces, measure those pieces after trimming. Comparing a whole fruit with a tub of cut pineapple by gross weight can mislead.
Sources
UC Davis Postharvest Research and Extension Center; UC Davis — Pineapple Rind Color.