Skip to content

Commit 086eff2

Browse files
rustyconoverclaude
andcommitted
codegen: emit catalog_table_create through the generator
Removes ``catalog_table_create`` from ``COMPLEX_METHODS`` (now empty), because its outer ``params`` shape is just ``{request: binary}`` — the list<list<int32>> / list<binary> complexity lives inside the inner ``TableCreateRequest`` dataclass that the caller IPC-serialises into the binary field, not at the wire-params layer the generator is responsible for. The earlier exclusion misread which schema layer was Complex. The hand-coded ``BuildTableCreateRequest`` in vgi_rpc_types.cpp stays — the inner request body is still complex enough that generating it would need new helpers. Generator now emits 64 builders (was 63). vgi side regen in a follow-up commit removes the now-redundant hand-coded ``BuildTableCreateParams`` wrapper. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent da60c22 commit 086eff2

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

‎vgi/codegen/cpp_request_builders.py‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,14 @@ class — both sides regenerate together or the build breaks.
5858
# the generator can't (yet) emit list-of-list / list-of-struct / cross-field
5959
# invariants. The generator emits a comment for these so the file documents
6060
# what's still hand-coded; the hand-coded definition lives in vgi_rpc_types.cpp.
61-
COMPLEX_METHODS: frozenset[str] = frozenset({
62-
# list<list<int32>> for unique/PK constraints, list<binary> for FK constraints,
63-
# plus an embedded IPC-serialized inner-request wrapper.
64-
"catalog_table_create",
65-
})
61+
#
62+
# Currently empty — earlier the set held ``catalog_table_create``, but its
63+
# outer params schema is just ``{request: binary}`` (the inner
64+
# TableCreateRequest with list<list<int32>> / list<binary> shapes is
65+
# IPC-serialized into the binary field by the caller), so there's nothing
66+
# Complex about the outer wrapper. The inner request body remains hand-coded
67+
# in BuildTableCreateRequest.
68+
COMPLEX_METHODS: frozenset[str] = frozenset()
6669

6770

6871
# --------------------------------------------------------------------------- #

0 commit comments

Comments
 (0)