cloud-fan commented on code in PR #50798:
URL: https://github.com/apache/spark/pull/50798#discussion_r2078177886


##########
sql/core/src/main/scala/org/apache/spark/sql/avro/AvroUtils.scala:
##########
@@ -52,7 +52,7 @@ private[sql] object AvroUtils extends Logging {
       spark: SparkSession,
       options: Map[String, String],
       files: Seq[FileStatus]): Option[StructType] = {
-    val conf = spark.sessionState.newHadoopConfWithOptions(options)
+    val conf = 
spark.sessionState.asInstanceOf[SessionState].newHadoopConfWithOptions(options)

Review Comment:
   Changes like this are not very reasonable. It's only needed to work around 
the current IntelliJ limitation of not recognizing the dependency exclusion.
   
   I'm a bit hesitant to merge this PR. If we need a temporary fix for IntelliJ 
support, shall we use maven profiles and the default profile does not include 
`connect-shim`?



-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to