HiuKwok commented on code in PR #45154:
URL: https://github.com/apache/spark/pull/45154#discussion_r1495324356


##########
project/SparkBuild.scala:
##########
@@ -249,7 +249,9 @@ object SparkBuild extends PomBuild {
         // SPARK-45627 `enum`, `export` and `given` will become keywords in 
Scala 3,
         // so they are prohibited from being used as variable names in Scala 
2.13 to
         // reduce the cost of migration in subsequent versions.
-        "-Wconf:cat=deprecation&msg=it will become a keyword in Scala 3:e"
+        "-Wconf:cat=deprecation&msg=it will become a keyword in Scala 3:e",
+        // SPARK-46938 to prevent enum scan on pmml-model, under spark-mllib 
module.
+        "-Wconf:cat=other&site=org.dmg.pmml.*:w"

Review Comment:
   **1. jaxb-api**
   I will need to double-check whatever is caused by the jaxb-api or not and I 
will get back to you.
   FYI, this is the error I faced earlier if that helps.
   ```
   [error] While parsing annotations in 
/home/runner/.cache/coursier/v1/https/maven-central.storage-download.googleapis.com/maven2/org/jpmml/pmml-model/1.4.8/pmml-model-1.4.8.jar(org/dmg/pmml/regression/RegressionModel.class),
 could not find FIELD in enum <none>.
   [error] This is likely due to an implementation restriction: an annotation 
argument cannot refer to a member of the annotated class (scala/bug#7014).
   [error] Applicable -Wconf / @nowarn filters for this fatal warning: 
msg=<part of the message>, cat=other, 
site=org.dmg.pmml.regression.RegressionModel
   [error] While parsing annotations in 
/home/runner/.cache/coursier/v1/https/maven-central.storage-download.googleapis.com/maven2/org/jpmml/pmml-model/1.4.8/pmml-model-1.4.8.jar(org/dmg/pmml/DataField.class),
 could not find FIELD in enum <none>.
   [error] This is likely due to an implementation restriction: an annotation 
argument cannot refer to a member of the annotated class (scala/bug#7014).
   [error] Applicable -Wconf / @nowarn filters for this fatal warning: 
msg=<part of the message>, cat=other, site=org.dmg.pmml.DataField
   [error] While parsing annotations in 
/home/runner/.cache/coursier/v1/https/maven-central.storage-download.googleapis.com/maven2/org/jpmml/pmml-model/1.4.8/pmml-model-1.4.8.jar(org/dmg/pmml/regression/RegressionTable.class),
 could not find FIELD in enum <none>.
   [error] This is likely due to an implementation restriction: an annotation 
argument cannot refer to a member of the annotated class (scala/bug#7014).
   [error] Applicable -Wconf / @nowarn filters for this fatal warning: 
msg=<part of the message>, cat=other, 
site=org.dmg.pmml.regression.RegressionTable
   [error] While parsing annotations in 
/home/runner/.cache/coursier/v1/https/maven-central.storage-download.googleapis.com/maven2/org/jpmml/pmml-model/1.4.8/pmml-model-1.4.8.jar(org/dmg/pmml/regression/NumericPredictor.class),
 could not find FIELD in enum <none>.
   ```
   and reference from one of my historical build.
   https://github.com/HiuKwok/spark/actions/runs/7932736253/job/21659910112
   
   **2. ExclusionRule**
   Yes, I Will create a separate PR for it.
   
   



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to