(name: string)
| 99 | // cohort breakdown, or `has_profile`. Used to drop unknown filters/breakdowns |
| 100 | // instead of emitting invalid `SELECT cohort` / `SELECT temple_name` queries. |
| 101 | export function isKnownEventField(name: string): boolean { |
| 102 | if (name === 'has_profile') return true; |
| 103 | if (isAllCohortsBreakdown(name)) return true; |
| 104 | if (extractCohortId(name)) return true; |
| 105 | if (name.startsWith('properties.')) return true; |
| 106 | if (name.startsWith('profile.')) return true; |
| 107 | if (name.startsWith('group.')) return true; |
| 108 | const normalized = normalizeEventField(name); |
| 109 | if (normalized.startsWith('properties.')) return true; |
| 110 | if (EVENT_TOP_LEVEL_COLUMNS.has(normalized)) return true; |
| 111 | return false; |
| 112 | } |
| 113 | |
| 114 | export type CohortMetadata = { |
| 115 | id: string; |
no test coverage detected