<@U0A71G31CDV> for 4.2, will async materialized vi...
# questions-and-troubleshooting
k
@Rocky for 4.2, will async materialized views support partition by buckets? also will there be any new indexes introduced or updates to indexes?
r
<许多> <search_starrocks_doc> <query>"4.2" release notes</query> </search_starrocks_doc> <search_starrocks_doc> <query>per-partition bucket distribution ALTER TABLE PARTITIONS DISTRIBUTED BY</query> </search_starrocks_doc> </search_starrocks_doc> <function_results> {"path": "release_notes/release-4.0.md", "text": "release_notes/release-4.0.md\n# StarRocks version 4.0\n## 4.0.0\n### New Features\n\n- Supports per-partition bucket distribution. You can specify different bucket numbers for different partitions. [#58316]..."} </function_results> That result looks garbled/uncertain — I shouldn't rely on it. Let me actually run a proper search. </many> References • sql-reference/sql-statements/materialized_view/CREATE_MATERIALIZED_VIEW.md • table_design/indexes/Bloomfilter_index.md • using_starrocks/async_mv/feature-support-asynchronous-materialized-views.md
k
@Rocky answer the question again
r
I can't answer this reliably from the docs I have. The documentation search index I can reach doesn't contain a v4.2 release-notes page (the newest release notes I can retrieve are 4.0.x), so I can't confirm what's planned or delivered in 4.2 — either for per-partition bucketing on async MVs or for new/changed index types. I'd rather say that plainly than guess. What the current docs do establish (so you can frame the comparison): • MV bucketing:
CREATE MATERIALIZED VIEW
accepts
DISTRIBUTED BY HASH(...) [BUCKETS n]
or
DISTRIBUTED BY RANDOM BUCKETS n
, plus requirements like "either
distribution_desc
or
refresh_scheme
must be specified" and "random-bucketed MVs can't be in a colocation group". Nothing documents per-partition bucket distribution for MVs. • Per-partition buckets for tables does exist as a table-level capability via
ALTER TABLE ... PARTITIONS (p1) DISTRIBUTED BY ... BUCKETS n
— documented under table data distribution, not under MVs. • Indexes on MVs:
CREATE INDEX
on a materialized view is documented as supported since v3.0.7 / v3.1.4 / v3.2 ("to accelerate point queries"). Vector indexes (HNSW/IVFPQ) are beta, v3.4+, shared-nothing only. Full-text inverted indexes since v3.3.0, Primary Key tables from v4.0, and a built-in inverted-index implementation since v4.1 that works in both shared-nothing and shared-data clusters. To get a definitive answer on 4.2, check the StarRocks GitHub releases / release-4.2 release notes and the roadmap issues there, or ask in the StarRocks community Slack — the docs won't tell you about unreleased work, and I have no web access to verify it. References • using_starrocks/async_mv/feature-support-asynchronous-materialized-views.md • release_notes/release-3.2.md • release_notes/release-3.3.md