There are a few things that can cause your car battery to spark when you connect it to the charger.  One possibility is that there is something blocking the flow of electricity from the charger to the battery. Another possibility is that the battery is not fully charged and is causing sparks as it tries to start. If you're concerned that your battery is sparking, try unplugging it and plugging it back in again to see if that resolves the issue.