GitHub
01/29/2025, 4:08 AMtype, format, enum, etc) using Faker - possibly reusing/refactoring the current stream maps implementation. This is obviously already possible with stream maps today, but would require stubbing out each stream property individually - the aim is to streamline this process; reduce the amount of necessary config and assume sensible mock values. Another benefit would be for taps with statically defined schemas that would be able to run without any config or connection to the source as a result, allowing for quick onboarding/prototyping. This would also work for taps that perform dynamic discovery, although config would still be required (in most cases).
Spec
• New MOCK (or similar) capability, which exposes some SDK-native settings
capabilities:
- MOCK
# perhaps these could be declared per-stream, although some overlap with stream maps
settings:
- name: mock_enabled
kind: boolean
default: false
- name: mock_records
kind: integer
default: 10
• Underlying Faker instance seed and locale configurable with faker_config (as with stream maps)
config:
faker_config:
seed: 0
locale:
- en_US
- en_GB
Considerations
• Inference of Faker provider from just JSON Schema property `type`/`format` is fairly straightforward - it may be possible to resolve a more accurate provider in a more granular context when taking the property name into account (this would be more of a "best guess", however)
• With Meltano: warn if running meltano config <tap> test with mock_enabled: true, as this may otherwise indicate a false-positive
meltano/sdkGitHub
02/06/2025, 9:10 PM