HyukjinKwon commented on code in PR #43784:
URL: https://github.com/apache/spark/pull/43784#discussion_r1391997572
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSource.scala:
##########
@@ -640,6 +640,9 @@ object DataSource extends Logging {
// Found the data source using fully qualified path
dataSource
case Failure(error) =>
+ // TODO(SPARK-45600): should be session-based.
+ val isUserDefinedDataSource = SparkSession.active()
Review Comment:
```suggestion
val isUserDefinedDataSource = SparkSession.active
```
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSource.scala:
##########
@@ -663,6 +672,14 @@ object DataSource extends Logging {
}
}
case head :: Nil =>
+ // TODO(SPARK-45600): should be session-based.
+ val isUserDefinedDataSource = SparkSession.active()
Review Comment:
```suggestion
val isUserDefinedDataSource = SparkSession.active
```
--
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]