Is Lightning Lure like a tractor beam?

Lightning Lure says (among other things):

The target must succeed on a Strength saving throw or be pulled up to 10 feet in a straight line toward you…

"In a straight line" here leads to an interesting question. If there’s a hole in the floor between you and the pulled creature, will the creature be pulled over it as though Lightning Lure had created a tiny Star Trek tractor beam? That is a straight line, after all. Or will the creature fall through?

One situation when this might be relevant is if you want to immediately pull an ally (who doesn’t mind a little friendly fire) over a small gap instead of waiting for them to jump on their turn.