HyukjinKwon commented on code in PR #44305: URL: https://github.com/apache/spark/pull/44305#discussion_r1425865126
########## sql/core/src/test/scala/org/apache/spark/sql/execution/python/PythonDataSourceSuite.scala: ########## @@ -231,8 +212,9 @@ class PythonDataSourceSuite extends QueryTest with SharedSparkSession { val schema = StructType.fromDDL("id INT, partition INT") val dataSource = createUserDefinedPythonDataSource( name = dataSourceName, pythonScript = dataSourceScript) + spark.dataSource.registerPython(dataSourceName, dataSource) Review Comment: Previously `UserDefinedPythonDataSource` was able to create a `DataFrame` directly (from `LogicalRelation`) via `UserDefinedPythonDataSource.apply`. Now it is not possible anymore because we're using DSv2. So, now here we register and load via using `DataFrameReader` to create a `DataFrame` to test. -- 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