You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
loaders:
- name: target-postgresvariant: meltanolabspip_url: meltanolabs-target-postgresconfig:
host: 127.0.0.1port: 5432user: postgresdbname: postgresdatabase: postgresstream_maps:
mydatabase-bank_accounts:
created_at:
record['created_at'] if record.get('created_at') and '0000'not in record['created_at'] and '-00' not in record['created_at'] else'1970-01-01 00:00:00'updated_at:
record['updated_at'] if record.get('updated_at') and '0000'not in record['updated_at'] and '-00' not in record['updated_at'] else'1970-01-01 00:00:00'
But this doesn't work. I'm doing a tap mysql -> postgres. The source mysql db has a load of invalid postgres date / timestamps that I need to accomidate.
Disgustingly I have to put
stream_maps:
mydatabase-my_table_name:
created_at:
record['created_at'] if record.get('created_at') and '0000'
not in record['created_at'] and '-00' not in record['created_at'] else
'1970-01-01 00:00:00'
updated_at:
record['updated_at'] if record.get('updated_at') and '0000'
not in record['updated_at'] and '-00' not in record['updated_at'] else
'1970-01-01 00:00:00'
Manually for each and every table 😢 .
The text was updated successfully, but these errors were encountered:
That works, but the stream maps that's built in doesn't work.
Hey @gruckion. I don't understand the distinction you're making. In the linked comment, I'm using stream_maps as part of the target-postgres config, just like in the meltano.yml example you shared.
Am I missing something? In which situations does the glob syntax not work? Can you share an example?
Singer SDK Version
How do I find this?
Is this a regression?
Python Version
3.12
Bug scope
Mapping (stream maps, flattening, etc.)
Operating System
Mac OSX
Description
Expected: As per the documentation to be able to rename a field. Using
"*"
in theloaders
stream_maps
formeltanolabs-target-postgres
.https://sdk.meltano.com/en/latest/stream_maps.html#applying-a-mapping-across-two-or-more-streams
Code
But this doesn't work. I'm doing a tap mysql -> postgres. The source mysql db has a load of invalid postgres date / timestamps that I need to accomidate.
Disgustingly I have to put
Manually for each and every table 😢 .
The text was updated successfully, but these errors were encountered: