You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3d56cf3
Browse filesBrowse the repository at this point in the historyBrowse files
Every Python caller of the legacy storage API families now uses the
unified state_* shape. The legacy method families themselves are NOT
removed yet — that's Turn 5, after Azure SQL + CfDo client + DO server
catch up in Turn 4.
Migrations in this turn:
worker.py — aggregate + window-aggregate + streaming-aggregate handlers:
- aggregate_bind / _load_aggregate_const_args: state_get/put under
namespace b"agg", synthetic group_id=-2 packed via pack_int_key.
- aggregate_update: state_get_many/state_put_many for batched group
state.
- aggregate_combine: same shape as aggregate_update.
- aggregate_finalize: state_get_many to load groups.
- aggregate_destructor: ONE call to storage.execution_clear() now
sweeps every namespace (b"agg", b"win", b"buf") for the execution.
Replaces the previous aggregate_clear + aggregate_window_partition_clear
pair.
- aggregate_window_partition_*: state_put/state_get/state_delete under
namespace b"win" with pack_int_key(partition_id).
- Streaming-aggregate session storage (_STREAMING_SESSION_STORAGE_KEY)
same b"win" namespace.
TransactionBoundStorage facade: now backed by state_* with
scope_id=transaction_opaque_data, ns=b"txn". Public API surface (get /
get_one / put / put_one / clear) unchanged so user code in
_test_fixtures/table/transaction_storage.py works without modification.
vgi/_test_fixtures/worker.py: catalog_transaction_commit / _rollback now
call execution_clear(transaction_opaque_data) instead of the legacy
transaction_state_clear.
vgi/_test_fixtures/table/profiling_example.py: ProfilingDemoFunction's
storage.put / storage.collect (which used worker_state per-pid keying)
now uses state_put / state_drain under namespace b"profile" with
pack_int_key(os.getpid()) — explicit about the per-pid model.
tests/test_table_function_dynamic_to_string.py: updated the
test_bind_params_carries_execution_scoped_storage test to match the
new fixture contract (state_scan(b"profile") instead of worker_scan).
Verification:
- 36 vgi-python unit tests pass (storage + dynamic_to_string)
- 152 vgi C++ subprocess integration tests pass
- 81 HTTP test cases pass (aggregate, window, buffered_table all green)
- All buffered_table semantics preserved
- All aggregate semantics preserved
Note: HTTP tests against the CfDo backend will continue to use the
legacy methods until Turn 4 lands the state_* methods on the cloud
backends + DO server. The current cohabitation lets every backend
serve every fixture during the migration window.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments