Split Email directive

The SPLIT-EMAIL directive splits an email ID into an account and its domain.


split-email :column

The column is a column containing an email address.

Usage Notes

The SPLIT-EMAIL directive will parse email address into its constituent parts: account and domain.

After splitting the email address, the directive will create two new columns, appending to the original column name:

  • column_account

  • column_domain

If the email address cannot be parsed correctly, the additional columns will still be generated, but they would be set to null depending on the parts that could not be parsed.


Using this record as an example:

{ "name": "Root, Joltie", "email_address": "root@example.com", }

Applying this directive:

split-email :email_address

results in this record:

In case of any errors parsing: when the email address field in the record is null:

this would result in the record:

Using these records as an example, with a variety of email IDs:

running the directive results in these records:


Created in 2020 by Google Inc.