Skip to content

Add serialize/deserialize methods to catalog dataclasses#24

Merged
rustyconover merged 1 commit into
mainfrom
feature/catalog-serialization
Jan 6, 2026
Merged

Add serialize/deserialize methods to catalog dataclasses#24
rustyconover merged 1 commit into
mainfrom
feature/catalog-serialization

Conversation

@rustyconover

Copy link
Copy Markdown
Contributor

Summary

  • Add Arrow IPC serialization support to all catalog dataclasses (CatalogAttachResult, SchemaInfo, TableInfo, ViewInfo, FunctionInfo, ScanFunctionResult)
  • Each dataclass now has ARROW_SCHEMA class variable, serialize() method, and deserialize() classmethod
  • Create vgi/catalog/__init__.py with public exports

Test plan

  • All existing tests pass (661 tests)
  • mypy type checks pass
  • ruff linting passes

🤖 Generated with Claude Code

Add Arrow IPC serialization support to all catalog dataclasses:
- CatalogAttachResult
- SchemaInfo
- TableInfo
- ViewInfo
- FunctionInfo
- ScanFunctionResult

Each dataclass now has:
- ARROW_SCHEMA class variable defining the Arrow schema
- serialize() method returning bytes
- deserialize() classmethod reconstructing from RecordBatch

Also creates vgi/catalog/__init__.py with public exports.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@rustyconover rustyconover merged commit 42c6695 into main Jan 6, 2026
0 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant