Skip to content

Commit 50823b4

Browse files
rustyconoverclaude
andcommitted
Support pa.RecordBatch and pa.Schema as dataclass field types (v0.6.11)
_infer_arrow_type now maps pa.RecordBatch and pa.Schema to pa.binary(), matching the existing serialization/deserialization handling. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 21e2d0e commit 50823b4

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "vgi-rpc"
3-
version = "0.6.10"
3+
version = "0.6.11"
44
description = "Vector Gateway Interface - RPC framework based on Apache Arrow"
55
readme = "README.md"
66
requires-python = ">=3.13"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vgi_rpc/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,10 @@ def _infer_arrow_type(python_type: object) -> pa.DataType:
504504
return pa.list_(element_type)
505505
return pa.list_(pa.string())
506506

507+
# Types serialized as binary (IPC bytes)
508+
if python_type is pa.RecordBatch or python_type is pa.Schema:
509+
return pa.binary()
510+
507511
# Simple type mappings
508512
type_map: dict[type, pa.DataType] = {
509513
str: pa.string(),

0 commit comments

Comments
 (0)