Given a dataset with errors, how would you identify and rectify them for PulsePoint?
Use the supplied ingestion records and campaign catalog. Normalize campaign codes, replace NULL or negative numeric values with zero, replace missing countries with UNKNOWN, and reject records with missing or unknown campaigns, missing dates, or duplicate event IDs after retaining the earliest ingestion record.
ingestion_id ascending.| Column | Type | Description |
|---|---|---|
| ingestion_idPK | INT | Unique ingestion row identifier |
| event_id | VARCHAR(30) | Event identifier that may appear more than once |
| campaign_code | VARCHAR(40) | Raw campaign identifier |
| event_date | DATE | Date on which the impression event occurred |
| impressions | INT | Number of impressions recorded |
| spend | NUMERIC(10,2) | Recorded advertising spend |
| country_code | VARCHAR(5) | Two-letter country code |
| Column | Type | Description |
|---|---|---|
| campaign_codePK | VARCHAR(40) | Canonical campaign identifier |
| channel | VARCHAR(30) | Marketing channel |