What the code requires
Between two kinds of plastic pipe, the IPC calls for an approved adapter or transition fitting and the IRC for an approved adapter fitting, both installed to the maker’s instructions. Local code decides which fittings are approved where you live.