You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creates a trusted employee contact dataset by improving the quality and
210
+
consistency of employee communication attributes. The model validates and
211
+
repairs email addresses and standardizes phone numbers into a common format.
212
+
The resulting dataset provides reliable contact information for internal
213
+
communications, identity matching, corporate directory services, and downstream
214
+
analytical models.
215
+
216
+
columns:
217
+
- name: employee_id
218
+
description: |
219
+
Primary key of the employee contact dimension. Inherited from the
220
+
staging layer and used to uniquely identify individual resource records.
221
+
tests:
222
+
- unique
223
+
- not_null
224
+
225
+
- name: email
226
+
description: |
227
+
The standardized corporate or personal email address of the employee.
228
+
**Transformation Logic:** Implements programmatic cleansing to resolve formatting anomalies:
229
+
- Null or empty strings, as well as entries completely missing the '@' delimiter, are forced to 'Unknown'.
230
+
- Structural duplication issues (e.g., multiple '@' signs) are resolved by isolating the first instance and stripping duplicate characters from the domain string.
231
+
- All valid entries are trimmed and cast to lowercase to maintain strict grouping consistency.
232
+
tests:
233
+
- not_null
234
+
235
+
- name: phone
236
+
description: |
237
+
The employee's phone number standardized into the corporate '+1 (XXX) XXX-XXXX' format.
238
+
**Transformation Logic:** Evaluates incoming string patterns against five distinct structural signatures to re-align components uniformly:
239
+
- Formats starting with a plus sign and an international code (e.g., '+1XXXXXXXXXX') are parsed and injected with standard spaces, brackets, and hyphens.
240
+
- Dotted strings ('XXX.XXX.XXXX') or continuous digit sequences ('XXXXXXXXXX') are sliced into area code, prefix, and line number groups before concatenation.
241
+
- Hyphen-separated values ('XXX-XXX-XXXX') are combined directly by preserving the tail positions.
242
+
- Already formatted parenthesized elements ('(XXX) XXX-XXXX') are prepended with the standard international country indicator '+1 '.
0 commit comments