swetha_mandanapu
06/06/2024, 10:20 PMViet Vu Danh
06/25/2024, 3:29 AMphone_number
in MySQL with type VARCHAR(20)
It's PII so I applied inline mapping hash, the length increased to 32 => it failed on record validations (max length > 20, which is taken from the source length).
⢠I would like to override the schema so it pass the validation
⢠I can workaround by mapping to a new field: phone_number_hash
and set null/drop original field phone_number
. However, there are some other cases too, which override schema would solve them.
Therefore I got some questions, it would be great if someone would help me to answer:
1/ Is it possible? Because looks like it's not. I found this issue and it's still open: https://github.com/meltano/meltano/issues/2424
2/ Where in the code that the schema
extra is applied to catalog discovery? I failed to find it in the sdk code.
3/ How can I apply the same logic of catalog discovery to the stream? Overwrite the SCHEMA
message, by modifying tap_base
?Slackbot
07/04/2024, 9:37 AMFeroze Ahmad
07/05/2024, 5:55 AMPedro Ceriotti
07/06/2024, 12:59 AMHaruno izumi
07/12/2024, 1:11 PMFrederic
07/17/2024, 8:07 AMFrederic
07/29/2024, 1:39 PMFrederic
07/29/2024, 8:40 PMhaleemur_ali
08/01/2024, 5:03 PMMax McKenzie
08/03/2024, 6:51 AMmeltano install ...
to reinstall it. But when i run the config test it errors on discover?
2024-08-03T06:43:05.516064Z [debug ] Creating DB engine for project at '/Users/xam/Development/etl-pipelines' with DB URI '<sqlite://Users/xam/Development/etl-pipelines/.meltano/meltano.db>'
2024-08-03T06:43:05.542581Z [debug ] Found plugin parent parent=tap-plausible plugin=tap-plausible source=LOCKFILE
2024-08-03T06:43:05.576936Z [debug ] Skipped installing extractor 'tap-plausible'
2024-08-03T06:43:05.577150Z [debug ] Skipped installing 1/1 plugins
2024-08-03T06:43:05.645618Z [debug ] Created configuration at /Users/xam/Development/etl-pipelines/.meltano/run/tap-plausible/tap.b684be6e-5652-4a71-847f-1310aca0342e.config.json
2024-08-03T06:43:05.645841Z [debug ] Could not find tap.properties.json in /Users/xam/Development/etl-pipelines/.meltano/extractors/tap-plausible/tap.properties.json, skipping.
2024-08-03T06:43:05.645943Z [debug ] Could not find tap.properties.cache_key in /Users/xam/Development/etl-pipelines/.meltano/extractors/tap-plausible/tap.properties.cache_key, skipping.
2024-08-03T06:43:05.646029Z [debug ] Could not find state.json in /Users/xam/Development/etl-pipelines/.meltano/extractors/tap-plausible/state.json, skipping.
2024-08-03T06:43:05.646745Z [debug ] Invoking: ['/Users/xam/Development/etl-pipelines/.meltano/extractors/tap-plausible/venv/bin/tap-airbyte', '--config', '/Users/xam/Development/etl-pipelines/.meltano/run/tap-plausible/tap.b684be6e-5652-4a71-847f-1310aca0342e.config.json', '--discover']
Traceback (most recent call last):
File "/Users/somedude/Development/etl-pipelines/.meltano/extractors/tap-plausible/venv/bin/tap-airbyte", line 8, in <module>
sys.exit(TapAirbyte.cli())
^^^^^^^^^^^^^^^^
i've really got no idea if i'm even doing this correctly. can i just edit plugins inside my project? do i need to go and release my own tap? do i have to pull this all locally somehow? Its pretty frustrating that Airbyte have missed this 1 setting đFrederic
08/06/2024, 2:25 PMmeltano config
. To configure a specific environment, please use the option --environment=<environment name>
.
Need help fixing this problem? Visit http://melta.no/ for troubleshooting steps, or to
join our friendly Slack community.
Plugin configuration is invalid
(Background on this error at: https://sqlalche.me/e/20/f405)
"
Could you advise please?
Thank you so much for your time
FredMax McKenzie
08/07/2024, 1:54 AMJens Christian Hillerup
08/09/2024, 6:08 PMtap-postgres
currently that doesn't seem to find my TAP_POSTGRES_SQLALCHEMY_URL
variable and barfs a KeyError because it had expected user
to be defined. Thanks in advance for any assistance!Haruno izumi
08/23/2024, 9:24 AMDaniel Luo
09/05/2024, 8:45 PMmeltano add --custom mapper column_mapper
mappers:
- name: column-mapper
namespace: column_mapper
pip_url: -e map/column-mapper
executable: column-mapper
And my project structure attached. When I run meltano run tap-mssql column-mapper target-snowflake --state-id-suffix dbo-test
, I get the following error:
Environment 'default' is active
Found unexpected mapper plugin name. plugin_name=column-mapper
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.
block violates set requirements: Expected unique mappings name not the mapper plugin name: column-mapper.
What am I doing wrong here?Slackbot
09/08/2024, 8:07 PMDaniel Luo
09/16/2024, 7:07 PMDaniel Luo
09/17/2024, 5:44 PM\xe2\x80\x90
, which should be a -
, but isn't. In the database, visually, it looks like a hyphen, but when copied out and searched with a regular hyphen, it doesn't match.
Exception has occurred: UnicodeDecodeError (note: full exception trace is shown but execution is paused at: _run_module_as_main)
'charmap' codec can't decode byte 0x90 in position 2548: character maps to <undefined>
File "C:\Users\daniell\.rye\py\cpython@3.12.4\Lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\git\dagster-hybrid\src\elt_projects\meltano\custom-plugins\map\column-mapper\.venv\Lib\site-packages\singer_sdk\_singerlib\encoding\_base.py", line 61, in _process_lines
for line in file_input:
File "C:\git\dagster-hybrid\src\elt_projects\meltano\custom-plugins\map\column-mapper\.venv\Lib\site-packages\singer_sdk\_singerlib\encoding\_base.py", line 48, in listen
self._process_lines(file_input or self.default_input)
File "C:\git\dagster-hybrid\src\elt_projects\meltano\custom-plugins\map\column-mapper\.venv\Lib\site-packages\singer_sdk\mapper_base.py", line 135, in invoke
mapper.listen(file_input)
File "C:\git\dagster-hybrid\src\elt_projects\meltano\custom-plugins\map\column-mapper\.venv\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\git\dagster-hybrid\src\elt_projects\meltano\custom-plugins\map\column-mapper\.venv\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\git\dagster-hybrid\src\elt_projects\meltano\custom-plugins\map\column-mapper\.venv\Lib\site-packages\singer_sdk\plugin_base.py", line 82, in invoke
return super().invoke(ctx)
^^^^^^^^^^^^^^^^^^^
File "C:\git\dagster-hybrid\src\elt_projects\meltano\custom-plugins\map\column-mapper\.venv\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\git\dagster-hybrid\src\elt_projects\meltano\custom-plugins\map\column-mapper\.venv\Lib\site-packages\click\core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\git\dagster-hybrid\src\elt_projects\meltano\custom-plugins\map\column-mapper\column_mapper\__main__.py", line 7, in <module>
ColumnMapperMapper.cli()
File "C:\Users\daniell\.rye\py\cpython@3.12.4\Lib\runpy.py", line 88, in _run_code
exec(code, run_globals)
File "C:\Users\daniell\.rye\py\cpython@3.12.4\Lib\runpy.py", line 198, in _run_module_as_main (Current frame)
return _run_code(code, main_globals, None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 2548: character maps to <undefined>
Jens Christian Hillerup
09/25/2024, 9:31 AMutility
in Meltano parlance, but would such a "heavy" operation be suited for the stream mapping API? If not, then what is the alternative? I suppose I could have the utility output something adhering to the Singer spec but what is it then, if not a tap? Is meltano run foo_utility target-postgres
a well-defined operation?Ayoub Fakir
10/25/2024, 9:15 AMjoshua_janicas
12/02/2024, 2:46 PMmykola_zavada
12/10/2024, 10:00 PMReuben (Matatika)
02/20/2025, 10:58 AMmapping
in the meltano.yml
for it to work with meltano run
mappers:
- name: mapper-fivetran
namespace: mapper_fivetran
variant: matatika
pip_url: -e /home/reuben/Documents/mappers/mapper-fivetran
mappings:
- name: fivetran
otherwise we get the error message block violates set requirements: Expected unique mappings name not the mapper plugin name: mapper-fivetran
. Would it be possible/does it makes sense to reference a mapper plugin with predefined behaviours directly like this?tim_schwartz
03/11/2025, 5:04 PMtim_schwartz
03/11/2025, 5:37 PMZahir Alward
03/23/2025, 8:08 AMZahir Alward
03/23/2025, 8:11 AMdef *process_record*(self, record: dict, context: dict) -> None:
<http://logger.info|logger.info>(f"Processing record: {record}")
logger.debug(f"Context in process_record: {context}")
logger.debug(f"Stream name from self: {self.stream_name}")
try:
if self.stream_schema is None:
self.stream_schema = self.schema
self.buffer.append(record)
logger.debug(f"Buffer size: {len(self.buffer)}")
if (len(self.buffer) >= self.max_buffer_size) or self.force_flush:
self.flush_buffer(context)
self.force_flush = False
except Exception as e:
logger.error(f"Error processing record: {e}")
raise
Tanner Wilcox
04/07/2025, 8:42 PMpoetry run scp get-file tanner password url /remote/path ./
I'm struggling to add this to my meltano project. Here's the utility section of my meltano.yml
utilities:
- name: dbt-postgres
variant: dbt-labs
pip_url: dbt-core dbt-postgres meltano-dbt-ext~=0.3.0
- name: scp-ext
pip_url: '../scp-ext/scp_ext'
executable: scp
I get this error:
[tanner@sato ubb-meltano]$ meltano lock --update --all
Utility 'scp-ext' is not known to Meltano. Check <https://hub.meltano.com/> for available plugins.
tim_schwartz
05/08/2025, 2:28 PM