Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Access stream name in __alias__ #2700

Closed
holly-evans opened this issue Oct 3, 2024 · 0 comments · Fixed by #2701
Closed

feat: Access stream name in __alias__ #2700

holly-evans opened this issue Oct 3, 2024 · 0 comments · Fixed by #2701
Milestone

Comments

@holly-evans
Copy link
Contributor

holly-evans commented Oct 3, 2024

Feature scope

Taps (catalog, state, stream maps, tests, etc.)

Description

Allow users to reference the stream name in stream maps __alias__ fields, under a special key:

{
    "stream_maps": {
        "*": {
            "__alias__": "'raw_' + __stream_name__"
        },
}
{
    "stream_maps": {
        "*_pii": {
            "__alias__": "__stream_name__[:-4]",
            "email_hash": "md5(email)",
            "__else__": "__NULL__",
            "__key_properties__": ["email_hash"],
        },      
    }
}

Related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants