Just watched it - that's not getting "attacked," that's more like getting mugged by a fish with a built-in weapon!
That swordfish basically said "your boat looks expensive" and decided to redecorate it with some impromptu ventilation. Though honestly, if I had a giant sword for a face, I'd probably test it out on random objects too.
But yeah, swordfish attacks on boats are real. They mistake hulls for prey or rivals. Imagine explaining that insurance claim though.