一键导入
schema-swapping
Transaction model using __odd/__even schema slots. Use when working on init_stage, commit_stage, Schema, Stage, or transaction handling.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Transaction model using __odd/__even schema slots. Use when working on init_stage, commit_stage, Schema, Stage, or transaction handling.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Rules for working on ParquetTableStore and its metadata synchronization layer. Use when touching duckdb_parquet.py, sync_views, metadata_store, schema_prefix, or S3/GCS/MinIO integration.
Table hook registration and materialization/retrieval for different data frameworks. Use when working on register_table, PandasTableHook, PolarsTableHook, SQLAlchemyTableHook, PyArrow, or View resolution.
Test instance configuration and pytest flag conventions. Use when running tests, adding new test instances, or debugging CI failures involving with_instances, skip_instances, conftest, or INSTANCE_MARKS.
| name | schema-swapping |
| description | Transaction model using __odd/__even schema slots. Use when working on init_stage, commit_stage, Schema, Stage, or transaction handling. |
Transaction model: each stage has two transaction slots (__odd/__even). During init_stage, the inactive slot is prepared. On commit_stage, views in the main schema are redirected.
Schema (in container/) — wraps name + prefix + suffix, .get() returns the full nameStage — has .name (bare), .current_name (set during execution), .transaction_name_commit_stage_read_views() calls on_clear_schema() and on_read_view_alias() callbacksinit_stage(): determines old/new transaction names, syncs metadata, creates the new transaction schemacommit_stage(): swaps the main schema views to point at the new transaction schema_committed_unchanged(): if stage is fully cache-valid, discards the transaction schema instead