jackylee-ch opened a new pull request, #6435:
URL: https://github.com/apache/paimon/pull/6435

   ### Purpose
   
   While executing `mvn test -Pspark4 -pl 
"org.apache.paimon:paimon-spark-4.0_2.13"`, I encountered a failure in the unit 
tests because `paimon-spark3-common` was being loaded. 
   <img width="2464" height="1158" alt="image" 
src="https://github.com/user-attachments/assets/a4ac23b4-9e09-4eb5-a81a-7eb3d9dae73b";
 />
   Further investigation revealed that when running `mvn dependency:tree -pl 
"org.apache.paimon:paimon-spark-4.0_2.13"`, I could see the 
`paimon-spark3-common` dependency brought in via `paimon-spark-ut_2.13`. The 
root cause is that the profile defined in 
`paimon-spark-ut_2.13-1.4.0-SNAPSHOT.jar` was not being propagated, which 
caused the default `paimon-sparkx-common` configuration to be applied.
   <img width="706" height="72" alt="image" 
src="https://github.com/user-attachments/assets/62cea389-1d7c-4efa-a6a2-4857097151cf";
 />
   
   
   This PR resolves the issue by explicitly specifying the profile, ensuring 
that the profile metadata is passed along, and thus enabling `mvn test -Pspark4 
-pl "org.apache.paimon:paimon-spark-4.0_2.13"` to run successfully.
   
   ### Tests
   
   GA
   
   ### API and Format
   
   No.
   
   ### Documentation
   
   No.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to