Hi, is it possible to rename the table with a pref...
# getting-started
b
Hi, is it possible to rename the table with a prefix/suffix or add prefix to table name in the destination ? We have data coming in from 2 distinct sources but they are of same business function so we want to store them in the same schema with different names.. Suffix/Prefix is okay
a
Sometimes your target plugin offers this. What are you using for your target? Snowflake? Postgres?
Oh, you want to alter the stream name right? So you can put tickets_a and tickets_b into the same schema?
b
yes
Source database is MySQL
so its
tap-mysql
b
Thanks @Andy Carter it was exactly what I was looking at
a
You will need to install separate mapper for that and put it between tap and target.
If your tap supports stream maps already with the meltano sdk then: https://sdk.meltano.com/en/latest/stream_maps.html#aliasing-a-stream-using-alias
But I think you will need to spell out all of your streams to do this, you can't say 'I need this prefix' to all
b
no, I dont think tap-mysql supports it.. its a legacy tap
b
awesome, thanks
u
no, I dont think tap-mysql supports it.. its a legacy tap
If your target is SDK based then you could configure it on the target side also.
But I think you will need to spell out all of your streams to do this, you can't say 'I need this prefix' to all
Theres this PR draft that was recently created to address https://github.com/meltano/sdk/issues/699