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


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/pythonLogicalOperators.scala:
##########
@@ -78,6 +80,42 @@ case class PythonMapInArrow(
     copy(child = newChild)
 }
 
+/**
+ * Represents a Python data source.
+ */
+case class PythonDataSource(
+    dataSource: PythonFunction,
+    outputSchema: StructType,
+    override val output: Seq[Attribute]) extends LeafNode {
+  require(output.forall(_.resolved),
+    "Unresolved attributes found when constructing PythonDataSource.")
+  override protected def stringArgs: Iterator[Any] = {
+    Iterator(output)
+  }
+  final override val nodePatterns: Seq[TreePattern] = Seq(PYTHON_DATA_SOURCE)
+}
+
+/**
+ * Represents a list of Python data source partitions.
+ */
+case class PythonDataSourcePartition(

Review Comment:
   ```suggestion
   case class PythonDataSourcePartitions(
   ```



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