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(mappers): Stream name can now be accessed in stream maps #2699

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

holly-evans
Copy link

@holly-evans holly-evans commented Oct 3, 2024

Description

Allow users to reference the stream name or alias in stream maps under a special key, similar to record and config:

{
    "stream_maps": {
        "*": {
            "source_table": "__stream_name__",
            "source_data": "record",
        }
    }
}

Add two tests for existing functionality of self and _ keys

Related Issues


📚 Documentation preview 📚: https://meltano-sdk--2699.org.readthedocs.build/en/2699/

Copy link

codspeed-hq bot commented Oct 3, 2024

CodSpeed Performance Report

Merging #2699 will not alter performance

Comparing holly-evans:issue-2283-use-stream-name-in-stream-map-context (2a46ecc) with main (9bf104e)

Summary

✅ 6 untouched benchmarks

Copy link

codecov bot commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.50%. Comparing base (9bf104e) to head (2a46ecc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2699   +/-   ##
=======================================
  Coverage   90.50%   90.50%           
=======================================
  Files          62       62           
  Lines        4994     4994           
  Branches      974      974           
=======================================
  Hits         4520     4520           
  Misses        328      328           
  Partials      146      146           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@edgarrmondragon edgarrmondragon changed the title feat(mappers): access stream name in stream map context feat(mappers): Stream name can now be accessed in stream maps Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Support using the stream name or alias in the context of a stream map
2 participants