You mean that it terminates inside the apartment, below the ceiling? It supposed to go through the ceiling and terminate above the roof. Otherwise the exhaust gasses will end up in your apartment – they are filling up plastic bag which looks like a balloon.
Sewer gasses are toxic and contain methane which is an explosive substance. What you have in your apartment is illegal and it should be serviced as soon as possible.