allisonwang-db commented on code in PR #45557:
URL: https://github.com/apache/spark/pull/45557#discussion_r1534833854
##########
python/pyspark/sql/datasource.py:
##########
@@ -282,7 +282,7 @@ def partitions(self) -> Sequence[InputPartition]:
)
@abstractmethod
- def read(self, partition: InputPartition) -> Iterator[Union[Tuple, Row]]:
+ def read(self, partition: InputPartition) -> Union[Iterator[Tuple],
Iterator[Row]]:
Review Comment:
Good catch. We should not suggest mixing tuple and row return types.
--
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]