Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: TiSpark如何在一个包里同时支持spark3.1和spark3.2?

Hi, our data synchronization task uses TiSpark + Deltastreamer to import into Hudi. The company is upgrading from Spark 3.1 to Spark 3.2, but this upgrade is done in a phased manner by queue (controlled by Livy), which means TiSpark needs to support two versions of Spark simultaneously.
We tried to package using TiSpark v3.1.1, but:
- Selecting both profiles simultaneously,
- Setting activeByDefault to true in the pom.xml,
- Or adding both versions in the compile option -P,
None of these methods worked.
Error when running TiSpark profile for Spark 3.2 on Spark 3.1:
Error when running TiSpark profile for Spark 3.1 on Spark 3.2:
So, I want to confirm if the compatibility mentioned in the official documentation refers to separate compatibility (separately in different jars) rather than simultaneous compatibility?