@clickzetta/cz-cli-darwin-x64 0.3.89 → 0.3.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/bin/cz-cli +0 -0
  2. package/bin/skills/clickzetta-dynamic-table/SKILL.md +169 -169
  3. package/bin/skills/clickzetta-dynamic-table/best-practices/dimension-table-join-guide.md +126 -126
  4. package/bin/skills/clickzetta-dynamic-table/best-practices/medallion-and-stream-patterns.md +25 -25
  5. package/bin/skills/clickzetta-dynamic-table/best-practices/non-partitioned-merge-into-warning.md +48 -48
  6. package/bin/skills/clickzetta-dynamic-table/best-practices/performance-optimization.md +51 -51
  7. package/bin/skills/clickzetta-dynamic-table/best-practices/scheduling-guide.md +59 -59
  8. package/bin/skills/clickzetta-dynamic-table/dt-creator/SKILL.md +8 -7
  9. package/bin/skills/clickzetta-dynamic-table/dt-creator/references/dt-declaration-strategy.md +99 -99
  10. package/bin/skills/clickzetta-dynamic-table/dt-creator/references/incremental-config-reference.md +188 -188
  11. package/bin/skills/clickzetta-dynamic-table/dt-creator/references/refresh-history-guide.md +117 -117
  12. package/bin/skills/clickzetta-dynamic-table/dt-creator/references/sql-limitations.md +29 -29
  13. package/bin/skills/clickzetta-dynamic-table/dynamic-table-alter/SKILL.md +80 -79
  14. package/bin/skills/clickzetta-dynamic-table/sql-to-dt/SKILL.md +15 -15
  15. package/bin/skills/clickzetta-dynamic-table/sql-to-dt/references/sql2dt-column-validation-rules.md +61 -61
  16. package/bin/skills/clickzetta-dynamic-table/sql-to-dt/references/sql2dt-conversion-rules.md +100 -100
  17. package/bin/skills/clickzetta-dynamic-table/sql-to-dt/references/sql2dt-placeholder-rules.md +64 -64
  18. package/bin/skills/clickzetta-dynamic-table/sql-to-dt/references/sql2dt-refresh-rules.md +32 -32
  19. package/bin/skills/clickzetta-dynamic-table/sql-to-dt/references/sql2dt-self-reference-rules.md +21 -21
  20. package/bin/skills/clickzetta-dynamic-table/sql-to-dt/references/sql2dt-workflow.md +71 -71
  21. package/bin/skills/clickzetta-sql-pipeline-manager/SKILL.md +203 -202
  22. package/bin/skills/clickzetta-sql-pipeline-manager/references/dynamic-table.md +62 -62
  23. package/bin/skills/clickzetta-sql-pipeline-manager/references/materialized-view.md +34 -34
  24. package/bin/skills/clickzetta-sql-pipeline-manager/references/pipe.md +61 -61
  25. package/bin/skills/clickzetta-sql-pipeline-manager/references/table-stream.md +41 -41
  26. package/bin/skills/clickzetta-table-stream-pipeline/SKILL.md +103 -101
  27. package/package.json +1 -1
package/bin/cz-cli CHANGED
Binary file
@@ -1,230 +1,230 @@
1
1
  ---
2
2
  name: clickzetta-dynamic-table
3
3
  description: |
4
- ClickZetta Dynamic Table(动态表)使用指南与路由中心。
5
-
6
- 【触发场景】
7
- - 通用咨询:动态表介绍、使用方式、最佳实践、性能优化、增量配置
8
- - 创建指导:DT 声明策略、SQL 支持矩阵、刷新历史查询
9
- - 修改操作:检测到后自动委托给 dynamic-table-alter 子技能
10
- - SQL 转换:检测到后自动委托给 sql-to-dt 子技能
11
-
12
- 【触发关键词】
13
- "动态表怎么用""DT 介绍""动态表最佳实践""动态表性能优化"
14
- "增量计算配置""维度表 JOIN""动态表刷新历史""静态分区 DT"
15
- "动态分区 DT""状态表管理""非分区表风险""创建动态表"
16
- "动态表调度""REFRESH INTERVAL""动态表告警"
17
-
18
- 【不触发场景】
19
- 修改操作("修改动态表""加列""改间隔"等)→ 使用 dynamic-table-alter
20
- SQL转换("转换DT""INSERT OVERWRITEDT"等)→ 使用 sql-to-dt
4
+ ClickZetta Dynamic Table usage guide and routing hub.
5
+
6
+ [Trigger scenarios]
7
+ - General consultation: Dynamic Table introduction, usage, best practices, performance optimization, incremental configuration
8
+ - Creation guidance: DT declaration strategy, SQL support matrix, refresh history queries
9
+ - Modification operations: detected and automatically delegated to the dynamic-table-alter sub-skill
10
+ - SQL conversion: detected and automatically delegated to the sql-to-dt sub-skill
11
+
12
+ [Trigger keywords]
13
+ "how to use dynamic table", "DT introduction", "dynamic table best practices", "dynamic table performance optimization",
14
+ "incremental computation configuration", "dimension table JOIN", "dynamic table refresh history", "static partition DT",
15
+ "dynamic partition DT", "state table management", "non-partitioned table risks", "create dynamic table",
16
+ "dynamic table scheduling", "REFRESH INTERVAL", "dynamic table alerts"
17
+
18
+ [Non-trigger scenarios]
19
+ Modification operations ("modify dynamic table", "add column", "change interval", etc.) → use dynamic-table-alter
20
+ SQL conversion ("convert to DT", "INSERT OVERWRITE to DT", etc.) → use sql-to-dt
21
21
  ---
22
22
 
23
- # Dynamic Table 使用指南路由与索引
23
+ # Dynamic Table Usage Guide Routing & Index
24
24
 
25
- 本技能是 ClickZetta 动态表的**知识中心和路由器**,根据用户意图提供参考文档或自动委托到专门的操作型子技能。
25
+ This skill is the **knowledge hub and router** for ClickZetta Dynamic Tables. It provides reference documentation based on user intent, or automatically delegates to specialized operation sub-skills.
26
26
 
27
27
  ---
28
28
 
29
- ## 使用场景分类
29
+ ## Use Case Categories
30
30
 
31
- ### 1. 通用咨询与学习(本技能处理)
31
+ ### 1. General Consultation & Learning (handled by this skill)
32
32
 
33
- **适用场景:**
34
- - 需要查询最佳实践和性能优化建议
35
- - 寻找特定配置项的说明文档
36
- - 学习如何创建动态表
33
+ **Applicable scenarios:**
34
+ - Looking up best practices and performance optimization recommendations
35
+ - Finding documentation for specific configuration options
36
+ - Learning how to create Dynamic Tables
37
37
 
38
- **触发关键词:**
39
- - "动态表怎么用""DT 介绍""Dynamic Table 是什么"
40
- - "动态表最佳实践""DT 性能优化""动态表性能调优"
41
- - "增量计算配置""刷新策略""状态表管理"
42
- - "维度表 JOIN 怎么配置""非分区表风险"
43
- - "动态表刷新历史怎么查""REFRESH HISTORY"
44
- - "静态分区 DT""动态分区 DT""DT 声明策略"
45
- - "动态表支持哪些 SQL""动态表 SQL 限制"
46
- - "创建动态表""新建动态表""CREATE DYNAMIC TABLE"
38
+ **Trigger keywords:**
39
+ - "how to use dynamic table", "DT introduction", "what is Dynamic Table"
40
+ - "dynamic table best practices", "DT performance optimization", "dynamic table performance tuning"
41
+ - "incremental computation configuration", "refresh strategy", "state table management"
42
+ - "how to configure dimension table JOIN", "non-partitioned table risks"
43
+ - "how to query dynamic table refresh history", "REFRESH HISTORY"
44
+ - "static partition DT", "dynamic partition DT", "DT declaration strategy"
45
+ - "what SQL does dynamic table support", "dynamic table SQL limitations"
46
+ - "create dynamic table", "new dynamic table", "CREATE DYNAMIC TABLE"
47
47
 
48
- **处理方式:** 提供相关参考文档的内容和指引。
48
+ **Handling:** Provide content and guidance from the relevant reference documents.
49
49
 
50
50
  ---
51
51
 
52
- ### 2. 修改现有动态表(自动委托给 dynamic-table-alter 子技能)
52
+ ### 2. Modify an Existing Dynamic Table (automatically delegated to dynamic-table-alter sub-skill)
53
53
 
54
- **适用场景:**
55
- - 需要修改已存在的动态表结构或属性
56
- - 暂停/恢复动态表刷新
57
- - 添加/删除列、修改刷新间隔、修改查询定义
54
+ **Applicable scenarios:**
55
+ - Modifying the structure or properties of an existing Dynamic Table
56
+ - Suspending/resuming Dynamic Table refresh
57
+ - Adding/dropping columns, changing refresh interval, modifying query definition
58
58
 
59
- **触发关键词:**
60
- - "修改动态表""动态表加列""动态表删列"
61
- - "改刷新间隔""修改 REFRESH_INTERVAL"
62
- - "暂停动态表""恢复动态表""SUSPEND""RESUME"
63
- - "重命名列""修改列注释""修改表注释"
64
- - "ALTER DYNAMIC TABLE""CREATE OR REPLACE DYNAMIC TABLE"
65
- - "修改 DT 查询定义""修改 AS SELECT"
59
+ **Trigger keywords:**
60
+ - "modify dynamic table", "add column to dynamic table", "drop column from dynamic table"
61
+ - "change refresh interval", "modify REFRESH_INTERVAL"
62
+ - "suspend dynamic table", "resume dynamic table", "SUSPEND", "RESUME"
63
+ - "rename column", "modify column comment", "modify table comment"
64
+ - "ALTER DYNAMIC TABLE", "CREATE OR REPLACE DYNAMIC TABLE"
65
+ - "modify DT query definition", "modify AS SELECT"
66
66
 
67
- **处理方式:**
68
- > ⚠️ 检测到修改操作意图,应立即加载 dynamic-table-alter 子技能。
69
- > 该子技能提供完整的 10 种修改操作工作流:
70
- > - 5种直接 ALTERsuspendresumeset_commentrename_columnset_column_comment
71
- > - 5 CREATE OR REPLACEadd_columndrop_columnalter_columnset_refresh_intervalset_select
67
+ **Handling:**
68
+ > ⚠️ Modification intent detected — immediately load the dynamic-table-alter sub-skill.
69
+ > That sub-skill provides a complete workflow for 10 types of modification operations:
70
+ > - 5 direct ALTER operations: suspend, resume, set_comment, rename_column, set_column_comment
71
+ > - 5 CREATE OR REPLACE operations: add_column, drop_column, alter_column, set_refresh_interval, set_select
72
72
 
73
73
  ---
74
74
 
75
- ### 3. SQL 转换为动态表(自动委托给 sql-to-dt 子技能)
76
-
77
- **适用场景:**
78
- - Hive/Spark 等任意批处理系统的 CREATE TABLE + INSERT OVERWRITE 转换为 DT
79
- - 批量迁移传统 ETL 到动态表
80
- - 自动生成 refreshbackfill 等配套文件
81
-
82
- **触发关键词:**
83
- - "转换 DT""sql to dt""convert to dynamic table"
84
- - "INSERT OVERWRITE DT""DDL 转换"
85
- - "Hive SQL ClickZetta""Spark SQL 转动态表"
86
- - "批量转换 ETL""迁移到动态表"
87
- - "创建动态表""新建动态表""CREATE DYNAMIC TABLE"
88
-
89
- **处理方式:**
90
- > ⚠️ 检测到 SQL 转换意图,应立即加载 sql-to-dt 子技能。
91
- > 如果用户说"创建动态表"但未提供 DDL INSERT OVERWRITE,应主动提示:
92
- > "请提供原始的 CREATE TABLE DDL INSERT OVERWRITE 语句,我可以全自动生成对应的 Dynamic Table DDL 及配套的 refreshbackfill 文件。"
93
- > 该子技能提供 6 步自动转换工作流:
94
- > 1. 预处理输入(移除 ALTERANALYZE、注释)
95
- > 2. 占位符替换(转换为 SESSION_CONFIGS
96
- > 3. 自引用检测
97
- > 4. 核心转换(合并 DDL + INSERT CREATE OR REPLACE
98
- > 5. 列校验
99
- > 6. 生成配套文件(refreshprev_refreshbackfill
75
+ ### 3. Convert SQL to Dynamic Table (automatically delegated to sql-to-dt sub-skill)
76
+
77
+ **Applicable scenarios:**
78
+ - Converting CREATE TABLE + INSERT OVERWRITE from Hive/Spark or any batch processing system to DT
79
+ - Bulk migration of traditional ETL to Dynamic Tables
80
+ - Auto-generating companion files for refresh, backfill, etc.
81
+
82
+ **Trigger keywords:**
83
+ - "convert to DT", "sql to dt", "convert to dynamic table"
84
+ - "INSERT OVERWRITE to DT", "DDL conversion"
85
+ - "Hive SQL to ClickZetta", "Spark SQL to dynamic table"
86
+ - "bulk convert ETL", "migrate to dynamic table"
87
+ - "create dynamic table", "new dynamic table", "CREATE DYNAMIC TABLE"
88
+
89
+ **Handling:**
90
+ > ⚠️ SQL conversion intent detected — immediately load the sql-to-dt sub-skill.
91
+ > If the user says "create dynamic table" but has not provided a DDL and INSERT OVERWRITE, proactively prompt:
92
+ > "Please provide the original CREATE TABLE DDL and INSERT OVERWRITE statement, and I can automatically generate the corresponding Dynamic Table DDL along with companion refresh and backfill files."
93
+ > That sub-skill provides a 6-step automatic conversion workflow:
94
+ > 1. Pre-process input (remove ALTER, ANALYZE, comments)
95
+ > 2. Placeholder replacement (convert to SESSION_CONFIGS)
96
+ > 3. Self-reference detection
97
+ > 4. Core conversion (merge DDL + INSERT into CREATE OR REPLACE)
98
+ > 5. Column validation
99
+ > 6. Generate companion files (refresh, prev_refresh, backfill)
100
100
 
101
101
  ---
102
102
 
103
- ## 知识库目录
103
+ ## Knowledge Base Directory
104
104
 
105
- ### dt-creator/ — 创建动态表参考资料
105
+ ### dt-creator/ — Dynamic Table Creation Reference
106
106
 
107
- **包含内容:**
108
- - **dt-declaration-strategy.md** — 静态分区 DT vs 动态分区 DT 的声明策略与选择
109
- - 静态分区 DT:使用 SESSION_CONFIGS() 传递分区参数,每个分区独立刷新
110
- - 动态分区 DT:不传递分区参数,一次性处理所有增量数据
111
- - 决策树:根据数据模式选择合适的分区策略
107
+ **Contents:**
108
+ - **dt-declaration-strategy.md** — Declaration strategy and selection between static partition DT and dynamic partition DT
109
+ - Static partition DT: uses SESSION_CONFIGS() to pass partition parameters; each partition refreshes independently
110
+ - Dynamic partition DT: no partition parameters; processes all incremental data in one pass
111
+ - Decision tree: choose the appropriate partition strategy based on data patterns
112
112
 
113
- - **sql-limitations.md** — 增量计算支持的 SQL 模式(JOIN、聚合、窗口函数等的支持情况,以及 VIEW/外部表不支持增量的限制)
113
+ - **sql-limitations.md** — SQL patterns supported by incremental computation (support status for JOIN, aggregation, window functions, etc., and limitations such as VIEW/external tables not supporting incremental)
114
114
 
115
- - **incremental-config-reference.md** — 增量刷新配置项完整参考
116
- - 刷新策略:强制全量、尝试增量并回退
117
- - 源表特征声明:维度表、仅追加表
118
- - 全量回退触发条件:基于表变更或变更量
119
- - 状态表管理:启用/禁用、生命周期、重建、schema 指定
120
- - DT 定义变更:CREATE OR REPLACE 的兼容性检查
121
- - Backfill:历史分区数据修正
122
- - 分区表写入行为:覆盖 vs 追加模式
115
+ - **incremental-config-reference.md** — Complete reference for incremental refresh configuration options
116
+ - Refresh strategy: force full refresh, try incremental with fallback
117
+ - Source table characteristic declarations: dimension tables, append-only tables
118
+ - Full refresh fallback triggers: based on table changes or change volume
119
+ - State table management: enable/disable, lifecycle, rebuild, schema specification
120
+ - DT definition changes: compatibility check for CREATE OR REPLACE
121
+ - Backfill: historical partition data correction
122
+ - Partitioned table write behavior: overwrite vs append mode
123
123
 
124
- - **refresh-history-guide.md** — 刷新历史查询的 3 种方式
125
- - SHOW DYNAMIC TABLE REFRESH HISTORY:作业级信息,含 refresh_modeINCREMENTAL/FULL/NO_DATA
126
- - DESC HISTORY:版本级历史,含行数、字节数、操作类型
127
- - information_schema.materialized_view_refresh_history:批量分析、监控、CRU 统计
124
+ - **refresh-history-guide.md** — 3 ways to query refresh history
125
+ - SHOW DYNAMIC TABLE REFRESH HISTORY: job-level info, includes refresh_mode (INCREMENTAL/FULL/NO_DATA)
126
+ - DESC HISTORY: version-level history, includes row count, bytes, operation type
127
+ - information_schema.materialized_view_refresh_history: batch analysis, monitoring, CRU statistics
128
128
 
129
- **适用问题:**
130
- - "静态分区 DT 和动态分区 DT 有什么区别? "
131
- - "动态表支持哪些 SQL 语法?"
132
- - "增量计算的配置项有哪些?"
133
- - "怎么查看动态表的刷新历史?"
134
- - "什么时候会触发全量刷新?"
129
+ **Applicable questions:**
130
+ - "What is the difference between static partition DT and dynamic partition DT?"
131
+ - "What SQL syntax does Dynamic Table support?"
132
+ - "What configuration options are available for incremental computation?"
133
+ - "How do I view the refresh history of a Dynamic Table?"
134
+ - "What triggers a full refresh?"
135
135
 
136
136
  ---
137
137
 
138
- ### dynamic-table-alter/ — 修改动态表操作指南
138
+ ### dynamic-table-alter/ — Dynamic Table Modification Guide
139
139
 
140
- **包含内容:**
141
- - 完整的动态表修改工作流(10 种操作)
142
- - 5 种直接 ALTER 操作:suspendresumeset_commentrename_columnset_column_comment
143
- - 5 CREATE OR REPLACE 操作:add_columndrop_columnalter_columnset_refresh_intervalset_select
144
- - 平台特有语法和限制说明(CHANGE COLUMNRENAME COLUMNDML 限制等)
145
- - 详细示例和故障排除
140
+ **Contents:**
141
+ - Complete Dynamic Table modification workflow (10 operation types)
142
+ - 5 direct ALTER operations: suspend, resume, set_comment, rename_column, set_column_comment
143
+ - 5 CREATE OR REPLACE operations: add_column, drop_column, alter_column, set_refresh_interval, set_select
144
+ - Platform-specific syntax and limitations (CHANGE COLUMN, RENAME COLUMN, DML restrictions, etc.)
145
+ - Detailed examples and troubleshooting
146
146
 
147
- > ⚠️ 此目录对应独立的 **dynamic-table-alter 子技能**。当用户有明确的修改操作意图时,应直接加载该子技能而非本指南。
147
+ > ⚠️ This directory corresponds to the independent **dynamic-table-alter sub-skill**. When the user has a clear modification intent, load that sub-skill directly rather than this guide.
148
148
 
149
149
  ---
150
150
 
151
- ### sql-to-dt/ — SQL DT 自动转换
151
+ ### sql-to-dt/ — SQL to DT Automatic Conversion
152
152
 
153
- Hive/Spark 等任意批处理系统的 CREATE TABLE DDL + INSERT OVERWRITE 全自动转换为 Dynamic Table DDL 及配套文件(refreshprev_refreshbackfill)。
153
+ Fully automatically converts CREATE TABLE DDL + INSERT OVERWRITE from Hive/Spark or any batch processing system into Dynamic Table DDL and companion files (refresh, prev_refresh, backfill).
154
154
 
155
- 详细转换规则参见 sql-to-dt 子技能。
155
+ See the sql-to-dt sub-skill for detailed conversion rules.
156
156
 
157
157
  ---
158
158
 
159
- ### best-practices/ — 最佳实践与避坑指南
160
-
161
- **包含内容:**
162
-
163
- - **performance-optimization.md** — 性能优化策略
164
- - 核心原则:变更量占比(< 5% 适合增量)、算子类型(INNER JOIN 快于 OUTER JOIN)、数据局部性
165
- - SQL 优化技巧:优先 INNER JOIN、减少 DISTINCT、窗口函数必须有 PARTITION BY、使用分区条件限制数据范围
166
- - 管道拆分:将复杂 DT 拆分为多个阶段
167
-
168
- - **dimension-table-join-guide.md** — 维度表 JOIN 场景详解
169
- - 核心机制:维度表变更被忽略,仅事实表变更触发增量计算
170
- - 配置方式:TBLPROPERTIES('mv_const_tables'='dim1,dim2') Session 配置
171
- - 推荐场景:码表/字典表、T+1 维度 + 实时事实表、大事实 JOIN 小维度
172
- - 不推荐场景:频繁更新的维度且需要实时一致性
173
- - 数据修正:维度表变更后必须使用全量刷新
174
-
175
- - **non-partitioned-merge-into-warning.md** — 非分区 DT + 连续写入风险告警
176
- - 触发条件:DT 是非分区表 + 源表连续写入 + SQL ROW_NUMBER() 去重
177
- - 三大风险:存储无限增长、归档引发性能灾难、无法过滤归档删除
178
- - 推荐替代方案:MERGE INTO + Table Stream(归档免疫、独立生命周期管理)
179
-
180
- - **scheduling-guide.md** — 调度方式选择指南
181
- - 两种方式对比:DDL 内置调度(REFRESH INTERVALvs Studio Task 调度
182
- - Studio 时始终推荐 Studio Task:支持上下游依赖、统一告警、可视化监控
183
- - DDL 内置调度的弊端:无告警、无依赖编排、只能手动 SQL 查询刷新状态
184
- - Studio Task 配置要点:必须开启自依赖、配置失败/超时告警、按需配置上游依赖
185
- - 多级 DT 管道的调度编排方式
186
-
187
- **适用问题:**
188
- - "动态表性能怎么优化?"
189
- - "维度表 JOIN 怎么配置?"
190
- - "非分区动态表有什么风险?"
191
- - "什么时候不应该用动态表?"
192
- - "动态表调度用 REFRESH INTERVAL 还是 Studio Task"
193
- - "动态表刷新失败怎么收到告警?"
159
+ ### best-practices/ — Best Practices & Pitfall Guide
160
+
161
+ **Contents:**
162
+
163
+ - **performance-optimization.md** — Performance optimization strategies
164
+ - Core principles: change ratio (< 5% is suitable for incremental), operator types (INNER JOIN faster than OUTER JOIN), data locality
165
+ - SQL optimization tips: prefer INNER JOIN, reduce DISTINCT, window functions must have PARTITION BY, use partition conditions to limit data range
166
+ - Pipeline splitting: break complex DTs into multiple stages
167
+
168
+ - **dimension-table-join-guide.md** — Dimension table JOIN scenarios in detail
169
+ - Core mechanism: dimension table changes are ignored; only fact table changes trigger incremental computation
170
+ - Configuration: TBLPROPERTIES('mv_const_tables'='dim1,dim2') or Session configuration
171
+ - Recommended scenarios: lookup/dictionary tables, T+1 dimension + real-time fact table, large fact JOIN small dimension
172
+ - Not recommended: frequently updated dimensions requiring real-time consistency
173
+ - Data correction: must use full refresh after dimension table changes
174
+
175
+ - **non-partitioned-merge-into-warning.md** — Non-partitioned DT + continuous write risk alert
176
+ - Trigger conditions: DT is non-partitioned + source table has continuous writes + SQL contains ROW_NUMBER() deduplication
177
+ - Three risks: unbounded storage growth, archiving causes performance disaster, cannot filter archive-generated deletes
178
+ - Recommended alternative: MERGE INTO + Table Stream (archive-immune, independent lifecycle management)
179
+
180
+ - **scheduling-guide.md** — Scheduling method selection guide
181
+ - Comparison of two methods: DDL built-in scheduling (REFRESH INTERVAL) vs Studio Task scheduling
182
+ - Always recommend Studio Task when Studio is available: supports upstream/downstream dependencies, unified alerts, visual monitoring
183
+ - Drawbacks of DDL built-in scheduling: no alerts, no dependency orchestration, refresh status can only be checked via manual SQL
184
+ - Studio Task configuration: must enable self-dependency, configure failure/timeout alerts, configure upstream dependencies as needed
185
+ - Scheduling orchestration for multi-level DT pipelines
186
+
187
+ **Applicable questions:**
188
+ - "How do I optimize Dynamic Table performance?"
189
+ - "How do I configure dimension table JOIN?"
190
+ - "What are the risks of non-partitioned Dynamic Tables?"
191
+ - "When should I not use Dynamic Tables?"
192
+ - "Should I use REFRESH INTERVAL or Studio Task for Dynamic Table scheduling?"
193
+ - "How do I receive alerts when a Dynamic Table refresh fails?"
194
194
 
195
195
  ---
196
196
 
197
- ## 路由决策树
197
+ ## Routing Decision Tree
198
198
 
199
199
  ```
200
- 用户提问
200
+ User question
201
201
 
202
- ├─ 包含修改操作关键词?
203
- "修改动态表""加列""改间隔""暂停""ALTER DYNAMIC TABLE"
204
- │ └─ 立即加载 dynamic-table-alter 子技能
202
+ ├─ Contains modification keywords?
203
+ ("modify dynamic table", "add column", "change interval", "suspend", "ALTER DYNAMIC TABLE")
204
+ │ └─ Yesimmediately load dynamic-table-alter sub-skill
205
205
 
206
- ├─ 包含 SQL 转换关键词?
207
- "转换DT""sql to dt""INSERT OVERWRITEDT""DDL转换""创建动态表"
208
- │ └─ 立即加载 sql-to-dt 子技能
206
+ ├─ Contains SQL conversion keywords?
207
+ ("convert to DT", "sql to dt", "INSERT OVERWRITE to DT", "DDL conversion", "create dynamic table")
208
+ │ └─ Yesimmediately load sql-to-dt sub-skill
209
209
 
210
- └─ 通用咨询/学习?
211
- "动态表怎么用""最佳实践""性能优化""增量配置"
212
- └─ 提供本指南的参考文档
210
+ └─ General consultation/learning?
211
+ ("how to use dynamic table", "best practices", "performance optimization", "incremental config")
212
+ └─ Yesprovide reference documents from this guide
213
213
  ```
214
214
 
215
215
  ---
216
216
 
217
- ## 使用建议
217
+ ## Usage Recommendations
218
218
 
219
- 1. **首次学习**:从 dt-creator/ 开始,了解 DT 的声明策略和配置项
220
- 2. **迁移场景**:使用 sql-to-dt 子技能批量转换现有 ETL
221
- 3. **日常运维**:使用 dynamic-table-alter 子技能修改 DT 结构
222
- 4. **性能调优**:参考 best-practices/ 中的优化建议和避坑指南
223
- 5. **调度配置**:有 Studio 时始终使用 Studio Task 调度,参考 best-practices/scheduling-guide.md
219
+ 1. **First-time learning**: start with dt-creator/ to understand DT declaration strategies and configuration options
220
+ 2. **Migration scenarios**: use the sql-to-dt sub-skill to bulk-convert existing ETL
221
+ 3. **Day-to-day operations**: use the dynamic-table-alter sub-skill to modify DT structure
222
+ 4. **Performance tuning**: refer to optimization recommendations and pitfall guides in best-practices/
223
+ 5. **Scheduling configuration**: always use Studio Task scheduling when Studio is available; refer to best-practices/scheduling-guide.md
224
224
 
225
225
  ---
226
226
 
227
- ## 相关技能
227
+ ## Related Skills
228
228
 
229
- - **dynamic-table-alter** — 修改动态表的操作型子技能(10 种修改操作)
230
- - **sql-to-dt** — SQL DT 的转换型子技能(6 步自动转换工作流)
229
+ - **dynamic-table-alter** — Operational sub-skill for modifying Dynamic Tables (10 modification operation types)
230
+ - **sql-to-dt** — Conversion sub-skill for SQL to DT (6-step automatic conversion workflow)