cloud-fan commented on code in PR #44305: URL: https://github.com/apache/spark/pull/44305#discussion_r1428350647
########## sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala: ########## @@ -780,7 +780,7 @@ class SparkSession private( DataSource.lookupDataSource(runner, sessionState.conf) match { case source if classOf[ExternalCommandRunner].isAssignableFrom(source) => Dataset.ofRows(self, ExternalCommandExecutor( - source.getDeclaredConstructor().newInstance() + DataSource.newDataSourceInstance(runner, source) Review Comment: It may be arguable that if this is a breaking change. Now people need to worry about python data source in the code that is to deal with DS v1 only. -- 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