@@ -25,6 +25,7 @@ const pathTypeToNodeType: Record<EPathType, NavigationTreeNodeType | undefined>
2525 [ EPathType . EPathTypeColumnStore ] : 'directory' ,
2626
2727 [ EPathType . EPathTypeTable ] : 'table' ,
28+ [ EPathType . EPathTypeSysView ] : 'system_table' ,
2829
2930 [ EPathType . EPathTypeTableIndex ] : 'index' ,
3031
@@ -76,6 +77,7 @@ const pathTypeToEntityName: Record<EPathType, string | undefined> = {
7677
7778 [ EPathType . EPathTypeDir ] : 'Directory' ,
7879 [ EPathType . EPathTypeTable ] : 'Table' ,
80+ [ EPathType . EPathTypeSysView ] : 'System view' ,
7981 [ EPathType . EPathTypeTableIndex ] : 'Secondary Index' ,
8082 [ EPathType . EPathTypeColumnStore ] : 'Tablestore' ,
8183 [ EPathType . EPathTypeColumnTable ] : 'Column-oriented table' ,
@@ -115,6 +117,7 @@ export const mapDatabaseTypeToDBName = (type?: ETenantType) => type && databaseT
115117const pathTypeToIsTable : Record < EPathType , boolean > = {
116118 [ EPathType . EPathTypeTable ] : true ,
117119 [ EPathType . EPathTypeColumnTable ] : true ,
120+ [ EPathType . EPathTypeSysView ] : true ,
118121
119122 [ EPathType . EPathTypeExternalTable ] : true ,
120123
@@ -160,6 +163,7 @@ const pathTypeToIsColumn: Record<EPathType, boolean> = {
160163 [ EPathType . EPathTypeInvalid ] : false ,
161164 [ EPathType . EPathTypeDir ] : false ,
162165 [ EPathType . EPathTypeTable ] : false ,
166+ [ EPathType . EPathTypeSysView ] : false ,
163167 [ EPathType . EPathTypeSubDomain ] : false ,
164168 [ EPathType . EPathTypeTableIndex ] : false ,
165169 [ EPathType . EPathTypeExtSubDomain ] : false ,
@@ -189,6 +193,7 @@ const pathTypeToIsDatabase: Record<EPathType, boolean> = {
189193 [ EPathType . EPathTypeColumnStore ] : false ,
190194 [ EPathType . EPathTypeColumnTable ] : false ,
191195 [ EPathType . EPathTypeTable ] : false ,
196+ [ EPathType . EPathTypeSysView ] : false ,
192197 [ EPathType . EPathTypeTableIndex ] : false ,
193198 [ EPathType . EPathTypeCdcStream ] : false ,
194199 [ EPathType . EPathTypePersQueueGroup ] : false ,
@@ -240,6 +245,7 @@ const pathTypeToChildless: Record<EPathType, boolean> = {
240245 [ EPathType . EPathTypeColumnTable ] : false ,
241246 [ EPathType . EPathTypeDir ] : false ,
242247 [ EPathType . EPathTypeTable ] : false ,
248+ [ EPathType . EPathTypeSysView ] : false ,
243249 [ EPathType . EPathTypeSubDomain ] : false ,
244250 [ EPathType . EPathTypeTableIndex ] : false ,
245251 [ EPathType . EPathTypeExtSubDomain ] : false ,
@@ -253,3 +259,4 @@ export const isChildlessPathType = (type?: EPathType, subType?: EPathSubType) =>
253259export const isExternalTableType = ( type ?: EPathType ) => type === EPathType . EPathTypeExternalTable ;
254260export const isRowTableType = ( type ?: EPathType ) => type === EPathType . EPathTypeTable ;
255261export const isViewType = ( type ?: EPathType ) => type === EPathType . EPathTypeView ;
262+ export const isSystemViewType = ( type ?: EPathType ) => type === EPathType . EPathTypeSysView ;
0 commit comments