Skip to content

Commit d02e0ae

Browse files
committed
feat: update from_dataset method to accept any __arrow_c_stream__ source
1 parent df1d264 commit d02e0ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python/datafusion/catalog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ def __repr__(self) -> str:
150150
return self.table.__repr__()
151151

152152
@staticmethod
153-
def from_dataset(dataset: pa.dataset.Dataset) -> Table:
154-
"""Turn a pyarrow Dataset into a Table."""
153+
def from_dataset(dataset: object) -> Table:
154+
"""Turn any ``__arrow_c_stream__`` source into a Table."""
155155
return Table(df_internal.catalog.RawTable.from_dataset(dataset))
156156

157157
@property

0 commit comments

Comments
 (0)