Skip to content

Commit

Permalink
feat: Update SDK version to support generating fake data (#218)
Browse files Browse the repository at this point in the history
Closes #215

---------

Co-authored-by: Edgar Ramírez-Mondragón <[email protected]>
  • Loading branch information
ReubenFrankel and edgarrmondragon committed Feb 5, 2024
1 parent f17188d commit e8fc892
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 8 deletions.
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

0 comments on commit e8fc892

Please sign in to comment.