hvanhovell commented on code in PR #40931:
URL: https://github.com/apache/spark/pull/40931#discussion_r1176662886


##########
common/utils/src/main/scala/org/apache/spark/SparkException.scala:
##########
@@ -18,14 +18,13 @@
 package org.apache.spark
 
 import java.io.FileNotFoundException
+import java.nio.file.FileAlreadyExistsException
 import java.sql.{SQLException, SQLFeatureNotSupportedException}
 import java.time.DateTimeException
 import java.util.ConcurrentModificationException
 
 import scala.collection.JavaConverters._
 
-import org.apache.hadoop.fs.FileAlreadyExistsException

Review Comment:
   Sort of. IMO it is better to rely on Java's exceptions than on Hadoop's.



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