[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ACT50Y6PR7PTZ0XPKVFAZC":3,"skill-same:01M6ACT50Y6PR7PTZ0XPKVFAZC":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":25,"linkOnly":26,"markdownContent":27,"markdownBody":28,"frontMatter":29,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":38,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":6,"updatedAt":41,"install":42,"resources":55},"01M6ACT50Y6PR7PTZ0XPKVFAZC","doris-debug-materialized-view",null,"Use for Doris sync MV (rollup) miss or async MTMV refresh\u002Frewrite issues. Commands: SHOW ALTER TABLE MATERIALIZED VIEW, mv_infos(), EXPLAIN, REFRESH MATERIALIZED VIEW.","apache\u002Fdoris-skills","apache","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47359?v=4","01M6AC83E6K4FDKK7HZ8WNMQKE","The Apache Software Foundation","01M6ACSCMG5B9TTB7694HY14D0",50,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fapache\u002Fdoris-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdoris-debug\u002Fmaterialized-view\u002FSKILL.md",[],[19,20,21,22,23,24],"debug","doris","doris debug","doris debug materialized view","sync","issues","2026-11-10 10:12:30",false,"---\nname: doris-debug-materialized-view\ndescription: >\n  Use for Doris sync MV (rollup) miss or async MTMV refresh\u002Frewrite issues.\n  Commands: SHOW ALTER TABLE MATERIALIZED VIEW, mv_infos(), EXPLAIN, REFRESH MATERIALIZED VIEW.\nversion: 0.2.0\ncategory: materialized-view\n---\n\n# Materialized View\n\n## Kind comparison\n\n| Kind | Code area | Check | Rewrite mechanism |\n|------|-----------|-------|-------------------|\n| Sync | `MaterializedViewHandler` \u002F rollup | `SHOW ALTER TABLE MATERIALIZED VIEW` | Transparent — planner auto-selects |\n| Async MTMV | `fe\u002F...\u002Fmtmv\u002F` | `mv_infos()` RefreshState | CBO-based — EXPLAIN shows if matched |\n\n## Causes\n\n| ID | Cause | Evidence | Kind |\n|----|-------|----------|------|\n| A | Sync MV build pending\u002Fstuck | `SHOW ALTER TABLE MATERIALIZED VIEW` State≠FINISHED | Sync |\n| B | MTMV refresh failed | `mv_infos()` RefreshState=FAIL | Async |\n| C | MTMV rewrite miss | EXPLAIN shows no MATERIALIZED_REWRITE | Async |\n| D | MTMV data stale | `mv_infos()` LastRefreshTime old | Async |\n| E | MV not selected by planner | EXPLAIN shows TABLE SCAN not MATERIALIZED | Either |\n\n## 10 min triage\n\n```sql\n-- Sync MV status\nSHOW ALTER TABLE MATERIALIZED VIEW FROM db;\n\n-- Async MTMV status\nSELECT * FROM mv_infos('database'='db') WHERE Name='mv'\\G\n\n-- Check rewrite eligibility\nEXPLAIN VERBOSE SELECT ...;\n\n-- Force refresh\nREFRESH MATERIALIZED VIEW mv;\n\n-- Enable external MV rewrite (for catalog queries)\nSET materialized_view_rewrite_enable_contain_external_table = true;\n```\n\n## Cause C — MTMV rewrite miss\n\nCommon reasons (see `fe\u002F...\u002Fmtmv\u002FMTMVService.java` rewrite matcher):\n\n1. **Partition misalignment**: MV has `partition_sync=false` and query partition doesn't match → `ALTER MATERIALIZED VIEW mv SET (\"partition_sync\" = \"true\")`\n2. **Aggregation granularity**: MV groups by `(a, b)` but query groups by `(a)` only → MV is not a valid rewrite target\n3. **Filter mismatch**: MV WHERE clause doesn't cover query WHERE clause → check MV definition\n4. **Session var off**: `SET enable_materialized_view_rewrite = true`\n\n```sql\n-- Debug: force the optimizer to log MV matching\nSET enable_materialized_view_rewrite_debug_log = true;\nEXPLAIN VERBOSE SELECT ...;  -- check fe\u002Flog\u002Ffe.audit.log for MV match details\n```\n\n## Cause A — Sync MV stuck\n\n```sql\n-- Cancel stuck build\nCANCEL ALTER TABLE MATERIALIZED VIEW FROM db ON table;\n\n-- Check BE compaction queue (MV build competes with compaction)\n.\u002Fscripts\u002Fdoris-debug be-metrics --be http:\u002F\u002F$BE:8040 --grep compaction\n```\n\n## Source\n\n- `fe\u002F...\u002Fmtmv\u002FMTMVService.java` — MTMV lifecycle\n- `fe\u002F...\u002Falter\u002FMaterializedViewHandler.java` — sync MV alter\n- `fe\u002F...\u002Fmaterializedview\u002FMaterializedViewRewriter.java` — rewrite logic\n- `SessionVariable.java` — `enable_materialized_view_rewrite`, `materialized_view_rewrite_enable_contain_external_table`\n","# Materialized View\n\n## Kind comparison\n\n| Kind | Code area | Check | Rewrite mechanism |\n|------|-----------|-------|-------------------|\n| Sync | `MaterializedViewHandler` \u002F rollup | `SHOW ALTER TABLE MATERIALIZED VIEW` | Transparent — planner auto-selects |\n| Async MTMV | `fe\u002F...\u002Fmtmv\u002F` | `mv_infos()` RefreshState | CBO-based — EXPLAIN shows if matched |\n\n## Causes\n\n| ID | Cause | Evidence | Kind |\n|----|-------|----------|------|\n| A | Sync MV build pending\u002Fstuck | `SHOW ALTER TABLE MATERIALIZED VIEW` State≠FINISHED | Sync |\n| B | MTMV refresh failed | `mv_infos()` RefreshState=FAIL | Async |\n| C | MTMV rewrite miss | EXPLAIN shows no MATERIALIZED_REWRITE | Async |\n| D | MTMV data stale | `mv_infos()` LastRefreshTime old | Async |\n| E | MV not selected by planner | EXPLAIN shows TABLE SCAN not MATERIALIZED | Either |\n\n## 10 min triage\n\n```sql\n-- Sync MV status\nSHOW ALTER TABLE MATERIALIZED VIEW FROM db;\n\n-- Async MTMV status\nSELECT * FROM mv_infos('database'='db') WHERE Name='mv'\\G\n\n-- Check rewrite eligibility\nEXPLAIN VERBOSE SELECT ...;\n\n-- Force refresh\nREFRESH MATERIALIZED VIEW mv;\n\n-- Enable external MV rewrite (for catalog queries)\nSET materialized_view_rewrite_enable_contain_external_table = true;\n```\n\n## Cause C — MTMV rewrite miss\n\nCommon reasons (see `fe\u002F...\u002Fmtmv\u002FMTMVService.java` rewrite matcher):\n\n1. **Partition misalignment**: MV has `partition_sync=false` and query partition doesn't match → `ALTER MATERIALIZED VIEW mv SET (\"partition_sync\" = \"true\")`\n2. **Aggregation granularity**: MV groups by `(a, b)` but query groups by `(a)` only → MV is not a valid rewrite target\n3. **Filter mismatch**: MV WHERE clause doesn't cover query WHERE clause → check MV definition\n4. **Session var off**: `SET enable_materialized_view_rewrite = true`\n\n```sql\n-- Debug: force the optimizer to log MV matching\nSET enable_materialized_view_rewrite_debug_log = true;\nEXPLAIN VERBOSE SELECT ...;  -- check fe\u002Flog\u002Ffe.audit.log for MV match details\n```\n\n## Cause A — Sync MV stuck\n\n```sql\n-- Cancel stuck build\nCANCEL ALTER TABLE MATERIALIZED VIEW FROM db ON table;\n\n-- Check BE compaction queue (MV build competes with compaction)\n.\u002Fscripts\u002Fdoris-debug be-metrics --be http:\u002F\u002F$BE:8040 --grep compaction\n```\n\n## Source\n\n- `fe\u002F...\u002Fmtmv\u002FMTMVService.java` — MTMV lifecycle\n- `fe\u002F...\u002Falter\u002FMaterializedViewHandler.java` — sync MV alter\n- `fe\u002F...\u002Fmaterializedview\u002FMaterializedViewRewriter.java` — rewrite logic\n- `SessionVariable.java` — `enable_materialized_view_rewrite`, `materialized_view_rewrite_enable_contain_external_table`\n",{"name":5,"version":30,"category":31,"description":32},"0.2.0","materialized-view","Use for Doris sync MV (rollup) miss or async MTMV refresh\u002Frewrite issues. Commands: SHOW ALTER TABLE MATERIALIZED VIEW, mv_infos(), EXPLAIN, REFRESH MATERIALIZED VIEW.\n","main","3f49b0021e7900d691790da5feec34034826b970","skills\u002Fdoris-debug\u002Fmaterialized-view",15,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fdoris-skills","https:\u002F\u002Fdoris.apache.org","https:\u002F\u002Fgithub.com\u002Fapache","https:\u002F\u002Fwww.apache.org\u002F","2026-11-14 10:33:10",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add apache\u002Fdoris-skills --skill doris-debug-materialized-view",{"tool":48,"command":49},"bunx","bunx skills add apache\u002Fdoris-skills --skill doris-debug-materialized-view",{"tool":51,"command":52},"pnpm","pnpm dlx skills add apache\u002Fdoris-skills --skill doris-debug-materialized-view","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fapache\u002Fdoris-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdoris-debug\u002Fmaterialized-view\u002FSKILL.md",true,[56],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fcase-001-mtmv-rewrite-miss.md","REFERENCE","参考文档",1403,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fdoris-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdoris-debug\u002Fmaterialized-view\u002Freferences\u002Fcase-001-mtmv-rewrite-miss.md",[63,93,104,125,137,146],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":74,"publishedAt":25},"01M6M1B6Y0NBNVC1WN8QEVGZ28","doris-pr-description","Write, rewrite, or check the title and description of an Apache Doris pull request against the Doris PR standard. Takes the facts from the handoff file that development left when there is one, and collects them from the diff, commits, linked issue, and existing tests otherwise; classifies the PR type, fills that type's required fields, drafts the issue a Feature needs, validates the draft with a bundled checker, and creates or updates the PR on GitHub only after the user confirms. Use whenever the user wants to open, create, submit, or update a Doris PR; write, fix, or improve a PR title or description; prepare a branch for review; rewrite an existing PR's description for comparison; or check whether a description meets the standard. Also use for short requests in any language, such as \"open a PR\", \"write the PR description\", or \"is this PR description good enough?\", even when the standard is not mentioned.","https:\u002F\u002Fgithub.com\u002Fapache\u002Fdoris-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdoris-pr-description\u002FSKILL.md",[69],{"categoryNo":70,"categoryName":71,"taxonomyType":72,"taxonomyTypeDesc":73},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[75,76,20,77,78,79,80,81,82,9,83,84,85,86,87,88,89,90,91,92],"pr","pr description","doris pr description","open","request","updates","create","update","checker","improve","branch","short","fix","good","only","pr title","submit","review",{"skillNo":94,"name":95,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":99,"publishedAt":25},"01M6M1B0334YPC8P5KQ11V0JX8","develop-with-evidence","https:\u002F\u002Fgithub.com\u002Fapache\u002Fdoris-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdevelop-with-evidence\u002FSKILL.md",[98],{"categoryNo":70,"categoryName":71,"taxonomyType":72,"taxonomyTypeDesc":73},[100,101,102,103],"develop with evidence","with","evidence","develop",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":114,"publishedAt":25},"01M6ACTH4YX29N7GXTT61H6WTK","doris-repo-review","Review an Apache Doris PR from a local clone with the same multi-agent, shared-ledger convergence workflow as the CI Code Review Runner. Use when the user supplies a PR to `\u002Fdoris-repo-review`, asks to review a Doris PR locally, or asks for the CI-style review flow. Safely align only the current worktree to the exact PR head, refuse to disturb tracked local changes, write equivalent English and Chinese review documents with verified path-line anchors, and never build, test, or edit source. Treat a review as pipeline-equivalent only when an explicitly selected qualified reviewer uses a supported effort (xhigh or max, plus ultra for Codex), preferring GPT-6 Astra on Codex and Fable 5.1 on Claude Code. After a converged APPROVE result, automatically post one machine-readable PASS comment bound to the reviewed commit.","https:\u002F\u002Fgithub.com\u002Fapache\u002Fdoris-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdoris-repo-review\u002FSKILL.md",[110,113],{"categoryNo":111,"categoryName":112,"taxonomyType":72,"taxonomyTypeDesc":73},"01JBSEEDCAT000000000000007","代码审查",{"categoryNo":70,"categoryName":71,"taxonomyType":72,"taxonomyTypeDesc":73},[115,20,92,9,116,117,118,119,120,121,75,122,123,124],"doris repo review","codex","code review","workflow","test","commit","documents","code","gpt","worktree",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":132,"publishedAt":25},"01M6ACTEQZ2S4PDZ2MW3C12HJ4","doris-profile-reader","Interpret Apache Doris query runtime profiles, especially profile bottleneck triage, misleading wait counters, per-operator metric priority, scan, join-order\u002Fruntime-filter analysis, and evidence-bounded performance explanations. Use when given a Doris profile, query id, profile URL\u002Ftext, or a request to explain Doris query performance.","https:\u002F\u002Fgithub.com\u002Fapache\u002Fdoris-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdoris-profile-reader\u002FSKILL.md",[131],{"categoryNo":70,"categoryName":71,"taxonomyType":72,"taxonomyTypeDesc":73},[133,20,134,135,9,136],"doris profile reader","performance","triage","operator",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":25},"01M6ACTCZC9VCV91Q0RVNZC2R5","doris-debug-tablet","Use for Doris tablet\u002Freplica health, version skew, clone backlog, disk balance, and tablet repair. Commands: SHOW PROC tablet_health, SHOW TABLET, ADMIN REPAIR.","https:\u002F\u002Fgithub.com\u002Fapache\u002Fdoris-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdoris-debug\u002Ftablet\u002FSKILL.md",[],[21,20,144,19,145],"doris debug tablet","admin",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":25},"01M6ACTAVGGVYTAWTPMMZYS71J","doris-debug-resource-isolation","Use for Doris Workload Group \u002F resource tag queue starvation, CPU\u002Fmemory isolation leaks, and workload policy debugging. Commands: SHOW WORKLOAD GROUPS, EXPLAIN resource.","https:\u002F\u002Fgithub.com\u002Fapache\u002Fdoris-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdoris-debug\u002Fresource-isolation\u002FSKILL.md",[],[19,20,21,153,154,155,156,157],"doris debug resource isolation","memory","workload","debugging","policy"]