|
| 1 | +guid: 47c5164a-f094-4add-82f3-d806896f829f |
| 2 | +model: |
| 3 | + name: CS Tools ~ Worksheet Column Utilization |
| 4 | + description: Show the data lineage of Worksheets and how the columns are used in the ThoughtSpot system. |
| 5 | + model_tables: |
| 6 | + - name: TS_METADATA_COLUMN |
| 7 | + joins: |
| 8 | + - with: TS_METADATA_OBJECT |
| 9 | + referencing_join: TS_METADATA_COLUMN_to_TS_METADATA_OBJECT |
| 10 | + - name: TS_DEPENDENT_OBJECT |
| 11 | + joins: |
| 12 | + - with: TS_METADATA_COLUMN |
| 13 | + referencing_join: TS_DEPENDENT_OBJECT_to_TS_METADATA_COLUMN |
| 14 | + - with: TS_USER |
| 15 | + referencing_join: TS_DEPENDENT_OBJECT_to_TS_USER |
| 16 | + - name: TS_BI_SERVER |
| 17 | + joins: |
| 18 | + - with: TS_DEPENDENT_OBJECT |
| 19 | + referencing_join: TS_BI_SERVER_to_TS_DEPENDENT_OBJECT |
| 20 | + type: RIGHT_OUTER |
| 21 | + - with: TS_USER_1 |
| 22 | + referencing_join: TS_BI_SERVER_to_TS_USER |
| 23 | + - name: TS_COLUMN_SYNONYM |
| 24 | + joins: |
| 25 | + - with: TS_METADATA_COLUMN |
| 26 | + referencing_join: TS_COLUMN_SYNONYM_to_TS_METADATA_COLUMN |
| 27 | + - with: TS_METADATA_COLUMN_1 |
| 28 | + referencing_join: TS_COLUMN_SYNONYM_to_TS_METADATA_COLUMN |
| 29 | + - name: TS_METADATA_OBJECT |
| 30 | + joins: |
| 31 | + - with: TS_CLUSTER |
| 32 | + referencing_join: TS_METADATA_OBJECT_to_TS_CLUSTER |
| 33 | + - with: TS_DATA_SOURCE |
| 34 | + referencing_join: TS_METADATA_OBJECT_to_TS_DATA_SOURCE |
| 35 | + - with: TS_ORG |
| 36 | + referencing_join: TS_METADATA_OBJECT_to_TS_ORG |
| 37 | + - name: TS_ORG |
| 38 | + - name: TS_CLUSTER |
| 39 | + - name: TS_USER |
| 40 | + - name: TS_METADATA_OBJECT |
| 41 | + alias: TS_METADATA_OBJECT_1 |
| 42 | + joins: |
| 43 | + - with: TS_USER |
| 44 | + referencing_join: TS_METADATA_OBJECT_to_TS_USER |
| 45 | + - with: TS_USER_1 |
| 46 | + referencing_join: TS_METADATA_OBJECT_to_TS_USER |
| 47 | + - name: TS_METADATA_COLUMN |
| 48 | + alias: TS_METADATA_COLUMN_1 |
| 49 | + joins: |
| 50 | + - with: TS_METADATA_OBJECT_1 |
| 51 | + referencing_join: TS_METADATA_COLUMN_to_TS_METADATA_OBJECT |
| 52 | + - name: TS_DATA_SOURCE |
| 53 | + - name: TS_USER |
| 54 | + alias: TS_USER_1 |
| 55 | + formulas: |
| 56 | + - id: formula_Data Exports |
| 57 | + name: Data Exports |
| 58 | + expr: count_if ( [TS_BI_SERVER::User Action] in { 'data_export' , 'pinboard_print_view' , 'pinboard_print_filter' , 'tspublic_data_export' } , [TS_BI_SERVER::SK_DUMMY] ) |
| 59 | + - id: formula_Dependent Interaction Date |
| 60 | + name: Dependent Interaction Date |
| 61 | + expr: date ( [TS_BI_SERVER::Timestamp] ) |
| 62 | + - id: formula_Dependent Interactions |
| 63 | + name: Dependent Interactions |
| 64 | + expr: count_if ( [TS_DEPENDENT_OBJECT::Dependent GUID] = [TS_BI_SERVER::ANSWER_BOOK_GUID] , [TS_BI_SERVER::SK_DUMMY] ) |
| 65 | + - id: formula_Dependent Link |
| 66 | + name: Dependent Link |
| 67 | + expr: concat ( '{caption}' , [TS_DEPENDENT_OBJECT::Dependent] , '{/caption}' , [TS_CLUSTER::ThoughtSpot URL] , if ( [TS_DEPENDENT_OBJECT::Dependent Type] = 'question_answer_book' ) then '#/saved-answer/' else if ( [TS_DEPENDENT_OBJECT::Dependent Type] = 'pinboard_answer_book' ) then "#/pinboard/" else "#/data/tables/" , [TS_DEPENDENT_OBJECT::Dependent GUID] ) |
| 68 | + - id: 'formula_Filtered: Column Parent is Worksheet' |
| 69 | + name: 'Filtered: Column Parent is Worksheet' |
| 70 | + expr: '[TS_METADATA_OBJECT::Object Type] = ''logical_table'' and [TS_METADATA_OBJECT::Object Subtype] in { ''worksheet'' , ''model'' }' |
| 71 | + - id: formula_Has Synonyms |
| 72 | + name: Has Synonyms |
| 73 | + expr: count ( [TS_COLUMN_SYNONYM::Column Synonym] ) > 0 |
| 74 | + - id: formula_Worksheet Link |
| 75 | + name: Worksheet Link |
| 76 | + expr: concat ( '{caption}' , [TS_METADATA_OBJECT::Object] , '{/caption}' , [TS_CLUSTER::ThoughtSpot URL] , '#/data/tables/' , [TS_METADATA_OBJECT::Object GUID] ) |
| 77 | + - id: formula_fx Dependent Type |
| 78 | + name: fx Dependent Type |
| 79 | + expr: if ( [TS_DEPENDENT_OBJECT::Dependent Type] = 'question_answer_book' ) then 'answer' else if ( [TS_DEPENDENT_OBJECT::Dependent Type] = 'pinboard_answer_book' ) then 'liveboard' else if ( [TS_DEPENDENT_OBJECT::Dependent Subtype] = 'aggr_worksheet' ) then 'thoughtspot view' else null |
| 80 | + filters: |
| 81 | + - column: |
| 82 | + - (Hidden, Filtered) Column Parent is Worksheet |
| 83 | + oper: in |
| 84 | + values: |
| 85 | + - 'true' |
| 86 | + columns: |
| 87 | + - name: Is Additive |
| 88 | + description: Whether or not values from this column may be aggregated together. |
| 89 | + column_id: TS_METADATA_COLUMN::Is Additive |
| 90 | + properties: |
| 91 | + column_type: ATTRIBUTE |
| 92 | + index_type: DONT_INDEX |
| 93 | + synonyms: |
| 94 | + - Additive |
| 95 | + synonym_type: USER_DEFINED |
| 96 | + - name: (Hidden, Filtered) Column Parent is Worksheet |
| 97 | + description: This column is only used for the Worksheet Filter. |
| 98 | + formula_id: 'formula_Filtered: Column Parent is Worksheet' |
| 99 | + properties: |
| 100 | + column_type: ATTRIBUTE |
| 101 | + index_type: DONT_INDEX |
| 102 | + is_hidden: true |
| 103 | + - name: Format Pattern |
| 104 | + description: The display format for values within a column. |
| 105 | + column_id: TS_METADATA_COLUMN::Format Pattern |
| 106 | + properties: |
| 107 | + column_type: ATTRIBUTE |
| 108 | + index_type: DONT_INDEX |
| 109 | + - name: Org |
| 110 | + description: The organization name found in the ThoughtSpot UI, either in the switcher or on the Administrator panel. |
| 111 | + column_id: TS_ORG::Org |
| 112 | + properties: |
| 113 | + column_type: ATTRIBUTE |
| 114 | + synonyms: |
| 115 | + - Org Name |
| 116 | + synonym_type: USER_DEFINED |
| 117 | + - name: Dependent Type |
| 118 | + description: The type of Dependency, typically an Answer or Liveboard, includes all descendants of a Worksheet (Worksheet -> View -> Answer). |
| 119 | + formula_id: formula_fx Dependent Type |
| 120 | + properties: |
| 121 | + column_type: ATTRIBUTE |
| 122 | + - name: Suggestions Type |
| 123 | + description: How ThoughtSpot can use stored values for Search recommendation purposes. |
| 124 | + column_id: TS_METADATA_COLUMN::Suggestions Type |
| 125 | + properties: |
| 126 | + column_type: ATTRIBUTE |
| 127 | + synonyms: |
| 128 | + - Index Type |
| 129 | + synonym_type: USER_DEFINED |
| 130 | + - name: Default Aggregation |
| 131 | + description: The default aggregation policy for values within this column. |
| 132 | + column_id: TS_METADATA_COLUMN::Default Aggregation |
| 133 | + properties: |
| 134 | + column_type: ATTRIBUTE |
| 135 | + synonyms: |
| 136 | + - Aggregation |
| 137 | + synonym_type: USER_DEFINED |
| 138 | + - name: Currency Type |
| 139 | + description: The display format for monetary values within a column, overrides Format Pattern and does not perform conversion. |
| 140 | + column_id: TS_METADATA_COLUMN::Currency Type |
| 141 | + properties: |
| 142 | + column_type: ATTRIBUTE |
| 143 | + - name: Worksheet Link |
| 144 | + description: A direct URL to the Worksheet. |
| 145 | + formula_id: formula_Worksheet Link |
| 146 | + properties: |
| 147 | + column_type: ATTRIBUTE |
| 148 | + index_type: DONT_INDEX |
| 149 | + synonyms: |
| 150 | + - Worksheet URL |
| 151 | + synonym_type: USER_DEFINED |
| 152 | + - name: ThoughtSpot URL |
| 153 | + description: The web address of your ThoughtSpot platform. |
| 154 | + column_id: TS_CLUSTER::ThoughtSpot URL |
| 155 | + properties: |
| 156 | + column_type: ATTRIBUTE |
| 157 | + - name: Dependent Author Email |
| 158 | + description: The user's registered email. |
| 159 | + column_id: TS_USER::User Email |
| 160 | + properties: |
| 161 | + column_type: ATTRIBUTE |
| 162 | + - name: Dependent Author |
| 163 | + description: The user's display name. |
| 164 | + column_id: TS_USER::User |
| 165 | + properties: |
| 166 | + column_type: ATTRIBUTE |
| 167 | + synonyms: |
| 168 | + - Dependent Author Display Name |
| 169 | + synonym_type: USER_DEFINED |
| 170 | + - name: Dependent Description |
| 171 | + description: A user-driven field which details extra infomation about the object. |
| 172 | + column_id: TS_DEPENDENT_OBJECT::Dependent Description |
| 173 | + properties: |
| 174 | + column_type: ATTRIBUTE |
| 175 | + index_type: DONT_INDEX |
| 176 | + - name: Is Formula |
| 177 | + description: Whether or not the column is derived within ThoughtSpot. |
| 178 | + column_id: TS_METADATA_COLUMN::Is Formula |
| 179 | + properties: |
| 180 | + column_type: ATTRIBUTE |
| 181 | + index_type: DONT_INDEX |
| 182 | + - name: Worksheet |
| 183 | + description: An object which can be interacted with in the UI like a Table, Answer, or Liveboard. |
| 184 | + column_id: TS_METADATA_OBJECT::Object |
| 185 | + properties: |
| 186 | + column_type: ATTRIBUTE |
| 187 | + - name: Column |
| 188 | + description: A column can be interacted with in the UI in Search, Visualizations, and Liveboards. |
| 189 | + column_id: TS_METADATA_COLUMN::Column |
| 190 | + properties: |
| 191 | + column_type: ATTRIBUTE |
| 192 | + synonyms: |
| 193 | + - Column Name |
| 194 | + synonym_type: USER_DEFINED |
| 195 | + - name: Default Calendar |
| 196 | + description: The default calendar to align to when using date keywords. |
| 197 | + column_id: TS_METADATA_COLUMN::Default Calendar |
| 198 | + properties: |
| 199 | + column_type: ATTRIBUTE |
| 200 | + - name: Suggestions Priority |
| 201 | + description: The relative weight that this column in the suggestions list, higher numbers represent more weight. |
| 202 | + column_id: TS_METADATA_COLUMN::Suggestions Priority |
| 203 | + properties: |
| 204 | + column_type: ATTRIBUTE |
| 205 | + index_type: DONT_INDEX |
| 206 | + synonyms: |
| 207 | + - Index Priority |
| 208 | + synonym_type: USER_DEFINED |
| 209 | + - name: Data Type |
| 210 | + description: The inferred SQL data type from this column's data source. |
| 211 | + column_id: TS_METADATA_COLUMN::Data Type |
| 212 | + properties: |
| 213 | + column_type: ATTRIBUTE |
| 214 | + - name: Column Description |
| 215 | + description: A user-driven field which details extra infomation about the column. |
| 216 | + column_id: TS_METADATA_COLUMN::Column Description |
| 217 | + properties: |
| 218 | + column_type: ATTRIBUTE |
| 219 | + index_type: DONT_INDEX |
| 220 | + - name: Worksheet Is Sage Enabled |
| 221 | + description: Determines whether or not ThoughtSpot Sage has been enabled for this object. |
| 222 | + column_id: TS_METADATA_OBJECT::Is Sage Enabled |
| 223 | + properties: |
| 224 | + column_type: ATTRIBUTE |
| 225 | + index_type: DONT_INDEX |
| 226 | + - name: Worksheet Description |
| 227 | + description: A user-driven field which details extra infomation about the object. |
| 228 | + column_id: TS_METADATA_OBJECT::Object Description |
| 229 | + properties: |
| 230 | + column_type: ATTRIBUTE |
| 231 | + index_type: DONT_INDEX |
| 232 | + - name: Geo Config |
| 233 | + description: If set, allows the visualization to be plotted on a geographical chart. |
| 234 | + column_id: TS_METADATA_COLUMN::Geo Config |
| 235 | + properties: |
| 236 | + column_type: ATTRIBUTE |
| 237 | + synonyms: |
| 238 | + - Geo Setting |
| 239 | + synonym_type: USER_DEFINED |
| 240 | + - name: Is Hidden |
| 241 | + description: Whether or not the column can be seen by viewers and non-admins. |
| 242 | + column_id: TS_METADATA_COLUMN::Is Hidden |
| 243 | + properties: |
| 244 | + column_type: ATTRIBUTE |
| 245 | + index_type: DONT_INDEX |
| 246 | + synonyms: |
| 247 | + - Hidden |
| 248 | + synonym_type: USER_DEFINED |
| 249 | + - name: SpotIQ Enabled |
| 250 | + description: Whether or not the column may be used in Spot IQ analyses. |
| 251 | + column_id: TS_METADATA_COLUMN::SpotIQ Enabled |
| 252 | + properties: |
| 253 | + column_type: ATTRIBUTE |
| 254 | + synonyms: |
| 255 | + - SpotIQ Preference |
| 256 | + synonym_type: USER_DEFINED |
| 257 | + - name: Is Attributable |
| 258 | + description: Whether or not these columns represent a causal relationship when used between FACTs. |
| 259 | + column_id: TS_METADATA_COLUMN::Is Attributable |
| 260 | + properties: |
| 261 | + column_type: ATTRIBUTE |
| 262 | + synonyms: |
| 263 | + - Attribution Dimension |
| 264 | + synonym_type: USER_DEFINED |
| 265 | + - name: Column Type |
| 266 | + description: Either, Attribute - something that may be grouped by or Measure - something that may be aggregated. |
| 267 | + column_id: TS_METADATA_COLUMN::Column Type |
| 268 | + properties: |
| 269 | + column_type: ATTRIBUTE |
| 270 | + - name: Dependent |
| 271 | + description: An object which can be interacted with in the UI like a Table, Answer, or Liveboard. |
| 272 | + column_id: TS_DEPENDENT_OBJECT::Dependent |
| 273 | + properties: |
| 274 | + column_type: ATTRIBUTE |
| 275 | + - name: Dependent Link |
| 276 | + description: A direct URL to the Dependent. |
| 277 | + formula_id: formula_Dependent Link |
| 278 | + properties: |
| 279 | + column_type: ATTRIBUTE |
| 280 | + index_type: DONT_INDEX |
| 281 | + synonyms: |
| 282 | + - Dependent URL |
| 283 | + synonym_type: USER_DEFINED |
| 284 | + - name: Dependent Interactions |
| 285 | + description: The amount of times any User has Viewed, Edits, or Saved a Dependent. |
| 286 | + formula_id: formula_Dependent Interactions |
| 287 | + properties: |
| 288 | + column_type: MEASURE |
| 289 | + aggregation: SUM |
| 290 | + index_type: DONT_INDEX |
| 291 | + - name: Dependent Interaction Date |
| 292 | + description: The date of when any User has Viewed, Edits, or Saved a Dependent. |
| 293 | + formula_id: formula_Dependent Interaction Date |
| 294 | + properties: |
| 295 | + column_type: ATTRIBUTE |
| 296 | + index_type: DONT_INDEX |
| 297 | + - name: Data Exports |
| 298 | + description: The amount of times any User exported a PNG or CSV |
| 299 | + formula_id: formula_Data Exports |
| 300 | + properties: |
| 301 | + column_type: MEASURE |
| 302 | + aggregation: SUM |
| 303 | + index_type: DONT_INDEX |
| 304 | + - name: Synonym |
| 305 | + description: An alternate name for a column. |
| 306 | + column_id: TS_COLUMN_SYNONYM::Column Synonym |
| 307 | + properties: |
| 308 | + column_type: ATTRIBUTE |
| 309 | + - name: Has Synonyms |
| 310 | + description: Whether or not the Column has any Synonyms |
| 311 | + formula_id: formula_Has Synonyms |
| 312 | + properties: |
| 313 | + column_type: ATTRIBUTE |
| 314 | + index_type: DONT_INDEX |
| 315 | + - name: Data Source Type |
| 316 | + description: The type of data store your data lives in. |
| 317 | + column_id: TS_DATA_SOURCE::Data Source Type |
| 318 | + properties: |
| 319 | + column_type: ATTRIBUTE |
| 320 | + synonyms: |
| 321 | + - Connection Type |
| 322 | + synonym_type: USER_DEFINED |
| 323 | + - name: Data Source |
| 324 | + description: A data source which contains Tables which can be found with in the UI. |
| 325 | + column_id: TS_DATA_SOURCE::Data Source |
| 326 | + properties: |
| 327 | + column_type: ATTRIBUTE |
| 328 | + synonyms: |
| 329 | + - Connection |
| 330 | + - Embrace Connection |
| 331 | + synonym_type: USER_DEFINED |
| 332 | + - name: Dependent Created Date |
| 333 | + description: The datetime of when the object was initially created. |
| 334 | + column_id: TS_DEPENDENT_OBJECT::Dependent Created At |
| 335 | + properties: |
| 336 | + column_type: ATTRIBUTE |
| 337 | + index_type: DONT_INDEX |
| 338 | + - name: Dependent Last Modified Date |
| 339 | + description: The datetime of when the object was last edited and saved. |
| 340 | + column_id: TS_DEPENDENT_OBJECT::Dependent Modified At |
| 341 | + properties: |
| 342 | + column_type: ATTRIBUTE |
| 343 | + index_type: DONT_INDEX |
| 344 | + - name: Interaction User |
| 345 | + description: The user's display name. |
| 346 | + column_id: TS_USER_1::User |
| 347 | + properties: |
| 348 | + column_type: ATTRIBUTE |
| 349 | + synonyms: |
| 350 | + - Interaction User Display Name |
| 351 | + synonym_type: USER_DEFINED |
| 352 | + - name: Interaction User Email |
| 353 | + description: The user's registered email. |
| 354 | + column_id: TS_USER_1::User Email |
| 355 | + properties: |
| 356 | + column_type: ATTRIBUTE |
| 357 | + - name: Dependent Is Verified |
| 358 | + description: Determines whether or not this object has been Verified. |
| 359 | + column_id: TS_DEPENDENT_OBJECT::Dependent Is Verified |
| 360 | + properties: |
| 361 | + column_type: ATTRIBUTE |
| 362 | + properties: |
| 363 | + is_bypass_rls: false |
| 364 | + join_progressive: true |
| 365 | + spotter_config: |
| 366 | + is_spotter_enabled: false |
0 commit comments