You can dissolve glass with sodium hydroxide. No, I'm not making that up, and yes, eventually it would be an issue.
Also sodium hydroxide doesn't really do much of anything to pipes besides acting like a salt. Its not chemically attacking the cast iron, which is actually a pretty good material combo with NaOH.
But to answer your question yeah those kinds of pipes exist but they're used for chemistry or industrial use. You would probably need to custom order them, and have everything perfectly planned out. It also will certainly add at least 3 zeros onto your plumbing bill for materials, tools, and consumables.