fix(starrocks): expose materialized views in sidebar
This commit is contained in:
4 files changed
+262
-24
No files matched your search
@@ -9,6 +9,7 @@ export interface DatabaseObjectCapabilities {
|
||||
}
|
||||
|
||||
const TABLE_VIEW_OBJECTS: SidebarObjectKind[] = ["TABLE", "VIEW"];
|
||||
const TABLE_VIEW_MV_OBJECTS: SidebarObjectKind[] = ["TABLE", "VIEW", "MATERIALIZED_VIEW"];
|
||||
|
||||
const ROUTINE_OBJECTS: SidebarObjectKind[] = ["TABLE", "VIEW", "PROCEDURE", "FUNCTION"];
|
||||
|
||||
@@ -41,8 +42,13 @@ const DATABASE_TYPE_OBJECTS = new Map<DatabaseType, SidebarObjectKind[]>([
|
||||
["cloudflare-d1", TABLE_VIEW_OBJECTS],
|
||||
["duckdb", TABLE_VIEW_OBJECTS],
|
||||
["clickhouse", TABLE_VIEW_OBJECTS],
|
||||
// Doris: backend listing path still uses the generic SHOW TABLES path (see
|
||||
// `list_tables_once` for `PoolKind::Mysql` in crates/dbx-core/src/schema.rs)
|
||||
// and lacks a MV classifier. Keep Doris on TABLE_VIEW_OBJECTS until a
|
||||
// Doris-specific MV listing/classification lands, otherwise the UI advertises
|
||||
// MV support that the backend cannot route.
|
||||
["doris", TABLE_VIEW_OBJECTS],
|
||||
["starrocks", TABLE_VIEW_OBJECTS],
|
||||
["starrocks", TABLE_VIEW_MV_OBJECTS],
|
||||
["hive", TABLE_VIEW_OBJECTS],
|
||||
["spark", TABLE_VIEW_OBJECTS],
|
||||
["trino", TABLE_VIEW_OBJECTS],
|
||||
|
||||
Reference in new issue
Block a user