|
| 1 | +DESCRIPTION > |
| 2 | + - `ossPackages_enriched_ds` contains all `ossPackages` metadata plus derived enrichment fields, materialized by `ossPackages_enriched.pipe` (daily COPY, replace mode). |
| 3 | + - Carries every column from the `ossPackages` datasource verbatim, so it can serve as a drop-in enriched replacement for package analytics. |
| 4 | + - `lifecycleLabel` is the categorical maintenance state of the package's primary repository, derived from repo + activity-snapshot signals: 'active', 'stable', 'declining', 'abandoned', or 'archived'. |
| 5 | + - `healthScore` is the composite 0–100 health score = `maintainerHealthScore` (≤40) + `securitySupplyChainScore` (≤35) + `developmentActivityScore` (≤25). |
| 6 | + - `healthLabel` buckets `healthScore`: 'excellent' (85+), 'healthy' (70–84), 'fair' (50–69), 'concerning' (30–49), 'critical' (<30). |
| 7 | + - `maintainerHealthScore`, `securitySupplyChainScore`, `developmentActivityScore` are the three health sub-totals. |
| 8 | + - `signalCoverageHealth` is a JSON object mapping each health sub-signal to 'available' | 'partial' | 'blocked', so the UI can flag which scores reflect real data vs. gaps. |
| 9 | + - `impact` (carried verbatim from `ossPackages`) is the criticality impact score and serves as the Impact total score. |
| 10 | + - All other fields mirror `ossPackages`; see `ossPackages.datasource` for per-field documentation. |
| 11 | + |
| 12 | +TAGS "OSS packages", "Enrichment" |
| 13 | + |
| 14 | +SCHEMA > |
| 15 | + `id` UInt64, |
| 16 | + `purl` String, |
| 17 | + `ecosystem` String, |
| 18 | + `namespace` Nullable(String), |
| 19 | + `name` String, |
| 20 | + `registryUrl` Nullable(String), |
| 21 | + `status` Nullable(String), |
| 22 | + `description` Nullable(String), |
| 23 | + `homepage` Nullable(String), |
| 24 | + `declaredRepositoryUrl` Nullable(String), |
| 25 | + `repositoryUrl` Nullable(String), |
| 26 | + `licenses` Array(String), |
| 27 | + `licensesRaw` Nullable(String), |
| 28 | + `keywords` Array(String), |
| 29 | + `distTagsLatest` Nullable(String), |
| 30 | + `distTagsNext` Nullable(String), |
| 31 | + `distTagsBeta` Nullable(String), |
| 32 | + `versionsCount` Nullable(UInt32), |
| 33 | + `latestVersion` Nullable(String), |
| 34 | + `firstReleaseAt` Nullable(DateTime64(3)), |
| 35 | + `latestReleaseAt` Nullable(DateTime64(3)), |
| 36 | + `dependentCount` Nullable(UInt32), |
| 37 | + `transitiveDependentCount` Nullable(UInt64), |
| 38 | + `dependentReposCount` Nullable(UInt32), |
| 39 | + `hasCriticalVulnerability` UInt8, |
| 40 | + `impact` Nullable(String), |
| 41 | + `isCritical` UInt8, |
| 42 | + `lastRankPassAt` Nullable(DateTime64(3)), |
| 43 | + `downloadsLast30d` Nullable(UInt64), |
| 44 | + `centralityScore` Nullable(String), |
| 45 | + `rankInEcosystem` Nullable(UInt32), |
| 46 | + `ingestionSource` Nullable(String), |
| 47 | + `lastSyncedAt` DateTime64(3), |
| 48 | + `createdAt` DateTime64(3), |
| 49 | + `lifecycleLabel` String, |
| 50 | + `healthScore` UInt8, |
| 51 | + `healthLabel` String, |
| 52 | + `maintainerHealthScore` UInt8, |
| 53 | + `securitySupplyChainScore` UInt8, |
| 54 | + `developmentActivityScore` UInt8, |
| 55 | + `signalCoverageHealth` String |
| 56 | + |
| 57 | +ENGINE MergeTree |
| 58 | +ENGINE_SORTING_KEY ecosystem, purl |
0 commit comments