They are trained to eliminate on command, though, and a handler would make use of the pet relief areas before the flight and during connections. Service handlers care a lot about their dogs, so they might take two shorter flights rather than a direct to offer the dog a chance to relieve itself.