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
{{ message }}
Repository navigation
Commit a97d710
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/integrations/engines/starrocks.md
+6-9Lines changed: 6 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -517,9 +517,9 @@ SELECT user_id, COUNT(*) AS event_count FROM user_events GROUP BY user_id;
517
517
*`excluded_trigger_tables`: base tables whose data changes should **not** automatically trigger a refresh of this MV.
518
518
*`excluded_refresh_tables`: base tables that should **not** be scanned when the MV refreshes.
519
519
520
-
Both properties accept a single table reference, a comma-separated string of table references, or a tuple or array of table references.
520
+
Both properties accept a single reference, a comma-separated string, a tuple, or an array. References can be bare identifiers or quoted strings.
521
521
522
-
StarRocks requires the **physical** base table name for these properties, not the logical view name that SQLMesh normally exposes. SQLMesh handles this automatically: when a reference matches a managed SQLMesh model, the logical name is resolved to its physical table name before the `CREATE MATERIALIZED VIEW` statement is issued. References that do not match any managed model are passed through unchanged.
522
+
StarRocks requires physical base table names in these properties. SQLMesh replaces references to managed models with physical table names and passes other references through unchanged. It sends the resulting names to StarRocks as a comma-separated string.
523
523
524
524
```sql
525
525
MODEL (
@@ -529,7 +529,6 @@ MODEL (
529
529
),
530
530
physical_properties (
531
531
refresh_scheme ='ASYNC',
532
-
-- SQLMesh resolves mydb.orders and mydb.order_items to their physical table names
SELECT order_id, SUM(amount) AS total FROMmydb.ordersGROUP BY order_id;
539
538
```
540
539
541
-
A single reference can be written as a bare identifier (`mydb.orders`) or as a quoted string. Multiple references can be provided as a quoted, comma-separated string (`'mydb.orders,mydb.order_items'`), a tuple, or an array. Tuple and array elements can be bare identifiers, quoted strings, or a mix of both:
540
+
Tuple and array elements can mix bare identifiers and quoted strings:
SQLMesh resolves each reference individually and passes the result to StarRocks as a comma-separated string of table names, regardless of the input form.
552
-
553
550
**Other properties:**
554
551
555
552
You can specify `partitioning`, `distribution`, `order by` and `properties` the same as normal table properties. But notice that only supported MV properties are useful, Refer to StarRocks' doc for MV creation.
0 commit comments