-
Notifications
You must be signed in to change notification settings - Fork 71
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
__filter__ of stream map breaks tap-postgres #1821
Comments
@edgarrmondragon can you take a look at this? |
I can't reproduce this with a different tap. This config works as expected with config:
stream_maps:
incidents:
__filter__: id in config["allowed_ids"]
stream_map_config:
allowed_ids:
- "407956781" I'm gonna try to reproduce this with EDIT: I can reproduce this with the postgres extractor. |
@tharwan can you try select the top-level stream level too? i.e. extractors:
- name: tap-postgres
pip_url: git+https://github.com/MeltanoLabs/tap-postgres.git@5320d1fa47442466785f6821af3ebfbe3ebff327
config:
stream_maps:
public-time_series_meta:
__filter__: ts_id in config['allowed_id']
stream_map_config:
allowed_id:
- 2364
- 2363
select:
- public-time_series_meta # <-----
- public-time_series_meta.* |
In the meantime I've been able to work around this problem by using a manual catalog file: extractors:
- name: tap-postgres
pip_url: git+https://github.com/MeltanoLabs/tap-postgres.git@5320d1fa47442466785f6821af3ebfbe3ebff327
catalog: catalog.json # <---- handle selections in this file
config:
stream_maps:
public-time_series_meta:
__filter__: ts_id in config['allowed_id']
stream_map_config:
allowed_id:
- 2364
- 2363 For example {
"breadcrumb": [],
"metadata": {
"selected": true,
"inclusion": "available",
"table-key-properties": [
"id"
],
"forced-replication-method": "",
"schema-name": "public"
}
} |
Singer SDK Version
2.19.1
Is this a regression?
Python Version
3.10
Bug scope
Mapping (stream maps, flattening, etc.)
Operating System
MacOS
Description
my setup looks like this:
The catalog from the tap contains the following:
but when I run
meltano invoke tap postgres
I get:singer_sdk.exceptions.StreamMapConfigError: Invalid key properties for 'public-time_series_meta': [ts_id]. Property 'ts_id' was not detected in schema.
Running the same config in meltano-map-transformer works fine.
Code
-
The text was updated successfully, but these errors were encountered: