Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions python/hatch_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ class BuildHook(BuildHookInterface):
# C++ source files in ArrowIterator directory
CPP_SOURCES = [
"ArrayConverter.cpp",
"ArrowTableConverter.cpp",
"BinaryConverter.cpp",
"BooleanConverter.cpp",
"CArrowIterator.cpp",
"CArrowStreamIterator.cpp",
"CArrowStreamTableIterator.cpp",
"ConverterUtil.cpp",
"DateConverter.cpp",
"DecFloatConverter.cpp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,17 @@ class ArrowStreamIterator(Iterator[Any]):
) -> None: ...
def __iter__(self) -> ArrowStreamIterator: ...
def __next__(self) -> Any: ...

class ArrowStreamTableIterator(Iterator[Any]):
"""Iterator that yields one pyarrow RecordBatch per batch with Snowflake type conversions applied."""

def __init__(
self,
stream_ptr: int,
arrow_context: Any,
number_to_decimal: bool = False,
force_microsecond_precision: bool = False,
) -> None: ...
def __iter__(self) -> ArrowStreamTableIterator: ...
def __next__(self) -> Any: ...
def get_converted_schema(self) -> Any: ...
Loading
Loading