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: Update SDK version to support generating fake data #218

Merged
merged 3 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/meltano-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
output_db: nested.db
target_table: users
install_extractor: false
- tap: tap-csv
mapping: fake
output_db: tap_csv.db
target_table: customers
install_extractor: false
steps:
- uses: actions/checkout@v4

Expand Down
11 changes: 11 additions & 0 deletions meltano.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,17 @@ plugins:
users:
id: id
fields: "[f for f in fields if f['key'] != 'age']"
- name: fake
config:
stream_maps:
customers:
id: id
first_name: first_name
cc: fake.credit_card_number() # add a new field with a fake credit card number
__else__: __NULL__
faker_config:
locale: [en_US]
seed: 123456
environments:
- name: dev
config:
Expand Down
30 changes: 23 additions & 7 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ documentation = "https://github.com/MeltanoLabs/meltano-map-transform#readme"

[tool.poetry.dependencies]
python = ">=3.8"
singer-sdk = "~=0.35.0"
singer-sdk = {version = "~=0.35.0", extras = ["faker"]}

[tool.poetry.dev-dependencies]
pytest = ">=7.4.4"
Expand Down