taylor_van_anne
03/20/2025, 4:47 PMstr(fieldname)
.
Here is my settings
block in my config:
settings:
- name: stream_maps.public-organization_connected_apps.metadata
metadata
happens to be the name of the column I'm trying to use in my stream map.
Down stream, I set this up like so (executing from an Airflow environment):
env_vars["TAP_POSTGRES__POS_STREAM_MAPS_PUBLIC_ORGANIZATION_CONNECTED_APPS_METADATA"] = "str(metadata)"
And all of that works perfectly. But then I realized that the settings
block is in my top level tap-postgres
plugin config. This may cause an issue because I use several extractors that inherit from this top level config so that I can pull from multiple source databases. I'd like for the settings
block to be pulled down into the inheriting extractor to avoid any column/property naming collisions.
When I pull the settings
block into the inheriting extractor, my tasks fail. The traceback is deep, but I can provide it. Ultimately, the error message is:
KeyError: 'stream_maps.public-organization_connected_apps.metadata'
Is this a bug? Am I doing something wrong? Thank you!
---
β’ meltanolabs variant of tap-postgres
v0.1.1
β’ meltanolabs variant of target-snowflake
v0.15.1
β’ meltano version 3.6.0Edgar RamΓrez (Arch.dev)
03/20/2025, 4:51 PMI'd like for theIf you do this and then runblock to be pulled down into the inheriting extractor to avoid any column/property naming collisions.settings
meltano config <inheriting extractor> list
, do you see expected env var for the setting?taylor_van_anne
03/20/2025, 4:53 PMtaylor_van_anne
03/20/2025, 5:06 PMβ /project/.meltano_venv/lib/python3.9/site-packages/meltano/core/settings_sto β
β re.py:1172 in get_with_metadata β
β β
β 1169 β β β A tuple containing the got value and accompanying metadat β
β 1170 β β """ β
β 1171 β β if self.bulk: β
β β± 1172 β β β metadata = self.config_with_metadata[name] β
β 1173 β β β return metadata["value"], metadata β
β 1174 β β β
β 1175 β β return self.inherited_settings_service.get_with_metadata(name β
β°βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ―
KeyError: 'stream_maps.public-organization_connected_apps.metadata'