After installing a new bathroom sink, the drain tailpiece doesn't line up with the trap coming out of the wall. I've seen flexible accordion hoses for this, but I think that violates code (P3002.3.1). I live in California. My tailpiece is 1.25" (OD) without threads. The trap is 1.5" (ID) with male threads. What's the best way to do this?
By the way, I have a flexible accordion piece from the old sink, which fits on the trap, but it has male threads on top, so it connect to the tailpiece. So I don't understand how those flexible pieces are supposed to work anyway.