This is an automated email from the ASF dual-hosted git repository.
uros-b pushed a commit to branch branch-4.x
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-4.x by this push:
new e15dfeaf789c [SPARK-58029][ML] Backtick the `*` selector in
breeze.linalg import for Scala 3 compatibility
e15dfeaf789c is described below
commit e15dfeaf789c77f2edb63017d649b98943daaa26
Author: Fangchen Li <[email protected]>
AuthorDate: Wed Jul 22 15:51:47 2026 +0000
[SPARK-58029][ML] Backtick the `*` selector in breeze.linalg import for
Scala 3 compatibility
### What changes were proposed in this pull request?
Backtick the breeze * import selector in org.apache.spark.ml.ann.Layer
### Why are the changes needed?
For Scala 3 compatibility.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Tested locally with ` -Xsource:3` flag.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 4.8)
Closes #57112 from fangchenli/scala3-breeze-wildcard-import.
Authored-by: Fangchen Li <[email protected]>
Signed-off-by: Uros Bojanic <[email protected]>
(cherry picked from commit b49a485dc7d0c34933adc49c190cc892c48f58de)
Signed-off-by: Uros Bojanic <[email protected]>
---
mllib/src/main/scala/org/apache/spark/ml/ann/Layer.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mllib/src/main/scala/org/apache/spark/ml/ann/Layer.scala
b/mllib/src/main/scala/org/apache/spark/ml/ann/Layer.scala
index c31a99dd4fd3..889f6febbe40 100644
--- a/mllib/src/main/scala/org/apache/spark/ml/ann/Layer.scala
+++ b/mllib/src/main/scala/org/apache/spark/ml/ann/Layer.scala
@@ -19,7 +19,7 @@ package org.apache.spark.ml.ann
import java.util.Random
-import breeze.linalg.{*, axpy => Baxpy, DenseMatrix => BDM, DenseVector =>
BDV, Vector => BV}
+import breeze.linalg.{`*`, axpy => Baxpy, DenseMatrix => BDM, DenseVector =>
BDV, Vector => BV}
import org.apache.spark.ml.linalg.{Vector, Vectors}
import org.apache.spark.mllib.linalg.{Vector => OldVector, Vectors =>
OldVectors}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]