You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/integrations/engines/starrocks.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -424,7 +424,7 @@ MODEL (
424
424
425
425
### Views
426
426
427
-
StarRocks supports view `SECURITY` via `physical_properties.security`.
427
+
StarRocks supports view `SECURITY` via **`virtual_properties`**.`security`.
428
428
429
429
**Syntax:**
430
430
@@ -434,7 +434,7 @@ StarRocks supports view `SECURITY` via `physical_properties.security`.
434
434
MODEL (
435
435
name user_summary_view,
436
436
kind VIEW,
437
-
physical_properties (
437
+
virtual_properties (
438
438
security = INVOKER
439
439
)
440
440
);
@@ -451,12 +451,15 @@ GROUP BY user_id;
451
451
452
452
SQLMesh uses `kind VIEW (materialized true)` to create materialized views.
453
453
454
-
You can specify StarRocks MV refresh settings using the same `physical_properties` block.
454
+
For ASYNC MVs, StarRocks requires a `REFRESH` clause, so you must specify **at least one** of `refresh_moment` or `refresh_scheme`.
455
+
456
+
MV properties (including `refresh_moment` / `refresh_scheme` and other table-like properties such as partitioning, distribution, ordering, and generic properties) must be specified in **`physical_properties`**.
455
457
456
458
**Refresh properties:**
457
459
458
460
*`refresh_moment`: `IMMEDIATE` or `DEFERRED` (optional)
459
461
*`refresh_scheme`: `MANUAL` or `ASYNC ...` (optional)
462
+
* If you specify it with the `START/EVERY`, you must specify it as a whole string, quoted by a pair of quotes.
* The syntax of `ASYNC ...` clause is the same as the clause in StarRocks.
462
465
@@ -502,7 +505,7 @@ target_columns_to_types = {
502
505
503
506
## Limitations
504
507
505
-
***No sync MV support (currently)**: synchronous materialized views are not supported yet.
508
+
***No SYNC MV support**: synchronous materialized views are not supported yet.
506
509
***No tuple IN**: StarRocks does not support `(c1, c2) IN ((v1, v2), ...)`.
507
510
***No `SELECT ... FOR UPDATE`**: StarRocks is an OLAP database and does not support row locks; SQLMesh removes `FOR UPDATE` when executing SQLGlot expressions.
508
511
***RENAME caveat**: `ALTER TABLE db.old RENAME db.new` is not supported; the `RENAME` target cannot be qualified with a database name.
0 commit comments