Andy Carter
07/17/2024, 4:03 PMMY_DB$TableNameMY_DB\ableNameEdgar RamĂrez (Arch.dev)
07/17/2024, 5:16 PMT>>> from meltano.core.utils import expand_env_vars
>>> expand_env_vars("MY_DB$TableName", {"T": "\\"})
'MY_DB\tableName'T>>> expand_env_vars("MY_DB$TableName", {})
2024-07-17 11:10:06 [debug    ] Variable '$T' is not set in the provided env dictionary.
'MY_DBableName'>>> expand_env_vars("MY_DB$TableName", {}, if_missing=2)
2024-07-17 11:12:17 [debug    ] Variable '$T' is not set in the provided env dictionary.
'MY_DB${T}ableName'MY_DB\\$TableNameMY_DB$TableNameAndy Carter
07/17/2024, 5:55 PMEdgar RamĂrez (Arch.dev)
07/17/2024, 6:25 PMGiven I'm working with my own fork of the tap I can just hardcode the settings I need rather than expose through meltano config👍 fwiw this patch seems to work: https://gist.github.com/edgarrmondragon/a825520d22fc00a9f6911c209e23756e Just gotta find the time to add tests and make a PR 🙂
Edgar RamĂrez (Arch.dev)
07/17/2024, 8:38 PMEdgar RamĂrez (Arch.dev)
07/17/2024, 11:04 PM$Andy Carter
07/18/2024, 7:47 AM