I agree that must be a threaded connection, but pretty odd they did not use the exterior threads to not restrict the flow some much at the joint.
There might be just enough pipe left there to cut off the fitting that goes into the filter, and add a new fitting and coupler ... better yet, use a union instead of a coupler to make it easier to get into the top of the filter if needed.