mirror of
https://github.com/deepseek-ai/smallpond
synced 2025-06-26 18:27:45 +00:00
@@ -19,6 +19,7 @@ authors = [
|
|||||||
{ name = "Minghua Zhang" },
|
{ name = "Minghua Zhang" },
|
||||||
{ name = "Zhewen Hao" },
|
{ name = "Zhewen Hao" },
|
||||||
]
|
]
|
||||||
|
readme = "README.md"
|
||||||
urls = { Homepage = "https://github.com/deepseek-ai/smallpond" }
|
urls = { Homepage = "https://github.com/deepseek-ai/smallpond" }
|
||||||
keywords = ["distributed query processing", "SQL", "parquet"]
|
keywords = ["distributed query processing", "SQL", "parquet"]
|
||||||
requires-python = ">=3.8"
|
requires-python = ">=3.8"
|
||||||
|
|||||||
@@ -598,8 +598,13 @@ class DataFrame:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if streaming:
|
if streaming:
|
||||||
def process_func(_runtime_ctx, readers: List[arrow.RecordBatchReader]) -> Iterator[arrow.Table]:
|
|
||||||
tables = map(lambda batch: arrow.Table.from_batches([batch]), readers[0])
|
def process_func(
|
||||||
|
_runtime_ctx, readers: List[arrow.RecordBatchReader]
|
||||||
|
) -> Iterator[arrow.Table]:
|
||||||
|
tables = map(
|
||||||
|
lambda batch: arrow.Table.from_batches([batch]), readers[0]
|
||||||
|
)
|
||||||
return func(tables)
|
return func(tables)
|
||||||
|
|
||||||
plan = ArrowStreamNode(
|
plan = ArrowStreamNode(
|
||||||
@@ -610,6 +615,7 @@ class DataFrame:
|
|||||||
**kwargs,
|
**kwargs,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|
||||||
def process_func(_runtime_ctx, tables: List[arrow.Table]) -> arrow.Table:
|
def process_func(_runtime_ctx, tables: List[arrow.Table]) -> arrow.Table:
|
||||||
return func(tables[0])
|
return func(tables[0])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user