dw-sr · git:20260523.e3316fc · 2026-05-23 · sha256 066bc9729bd2e525
dw-sr git:20260523.e3316fcA
Immutable. This exact content never changes and is served at /api/v1/blob/066bc9729bd2e525.
No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_ust4dpukvvgb5oh7/066bc9729bd2e525e8eb4c3f2684ce0e0960af3069ed1e35e135523c403053d6.json
Then /plugin install dw-sr@markdownregistry-ust4dpukvvgb5oh7 in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.
--- name: dw-sr description: StarRocks/SR 导入设计流程,适用于根据 ODPS 表结构生成 SR 建表语句、同步任务配置和风险分析。直接调用命令:/dw-sr。 --- # Step 6: SR 数据库导入 ## 执行流程 1. 基于目标数据库特性生成建表参数 2. 分析配置风险,按风险高低排序输出建议 3. 生成同步任务配置 ## 风险分析项 | 风险项 | 检查内容 | 风险等级 | |--------|---------|---------| | 字段类型精度 | DECIMAL/DOUBLE → DECIMAL(38,18) | 高 | | Key 选择 | 主键合理性 | 高 | | 分区数量 | 与源表是否匹配 | 中 | | 分桶数 | DISTRIBUTED BY HASH 分桶数 | 中 | | DATETIME 字段 | 存储方式(避免全表扫描) | 中 | | 字符集 | 编码兼容性 | 低 | ## 推荐提示词 ``` 为 [表名] 生成 SR 数据库建表语句,基于 ODPS 表结构。 分析配置风险,按风险高低排序输出建议(不超过 20 行)。 ``` ## 输出格式 ```markdown ## SR 建表语句 [SQL 语句] ## 风险分析 | # | 风险项 | 等级 | 说明 | 建议 | |---|--------|------|------|------| | 1 | ... | 高 | ... | ... | ## 同步任务配置 [配置 JSON/YAML] ``` ## 规则 - 风险分析不超过 20 行 - 按风险等级排序(高 → 中 → 低) - 建表语句输出到 `ddl_sr_[表名].sql`